|
@@ -148,3 +148,86 @@ do { \
|
|
#define VCC_RCC_CSM_SHIFT 13
|
|
#define VCC_RCC_CSM_SHIFT 13
|
|
#define VCC_RCC_ES 0x00008000 /* capture start polarity */
|
|
#define VCC_RCC_ES 0x00008000 /* capture start polarity */
|
|
#define VCC_RCC_ES_NEG 0x00000000 /* - negative edge */
|
|
#define VCC_RCC_ES_NEG 0x00000000 /* - negative edge */
|
|
|
|
+#define VCC_RCC_ES_POS 0x00008000 /* - positive edge */
|
|
|
|
+#define VCC_RCC_IFI 0x00080000 /* inferlace field evaluation reverse */
|
|
|
|
+#define VCC_RCC_FDTS 0x00300000 /* interlace field start */
|
|
|
|
+#define VCC_RCC_FDTS_3_8 0x00000000 /* - 3/8 of horizontal entire cycle */
|
|
|
|
+#define VCC_RCC_FDTS_1_4 0x00100000 /* - 1/4 of horizontal entire cycle */
|
|
|
|
+#define VCC_RCC_FDTS_7_16 0x00200000 /* - 7/16 of horizontal entire cycle */
|
|
|
|
+#define VCC_RCC_FDTS_SHIFT 20
|
|
|
|
+#define VCC_RCC_MOV 0x00400000 /* test bit - always set to 1 */
|
|
|
|
+#define VCC_RCC_STP 0x00800000 /* request video capture stop */
|
|
|
|
+#define VCC_RCC_TO 0x01000000 /* input during top-field only */
|
|
|
|
+
|
|
|
|
+#define VCC_RIS_VSYNC 0x01000000 /* VSYNC interrupt */
|
|
|
|
+#define VCC_RIS_OV 0x02000000 /* overflow interrupt */
|
|
|
|
+#define VCC_RIS_BOTTOM 0x08000000 /* interlace bottom field */
|
|
|
|
+#define VCC_RIS_STARTED 0x10000000 /* capture started */
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * I2C
|
|
|
|
+ */
|
|
|
|
+#define MB93493_I2C_BSR 0x340 /* bus status */
|
|
|
|
+#define MB93493_I2C_BCR 0x344 /* bus control */
|
|
|
|
+#define MB93493_I2C_CCR 0x348 /* clock control */
|
|
|
|
+#define MB93493_I2C_ADR 0x34c /* address */
|
|
|
|
+#define MB93493_I2C_DTR 0x350 /* data */
|
|
|
|
+#define MB93493_I2C_BC2R 0x35c /* bus control 2 */
|
|
|
|
+
|
|
|
|
+#define __addr_MB93493_I2C(port,X) (__region_CS3 + MB93493_I2C_##X + ((port)*0x20))
|
|
|
|
+#define __get_MB93493_I2C(port,X) __get_MB93493(MB93493_I2C_##X + ((port)*0x20))
|
|
|
|
+#define __set_MB93493_I2C(port,X,V) __set_MB93493(MB93493_I2C_##X + ((port)*0x20), (V))
|
|
|
|
+
|
|
|
|
+#define I2C_BSR_BB (1 << 7)
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * audio controller (I2S) registers
|
|
|
|
+ */
|
|
|
|
+#define __get_MB93493_I2S(X) __get_MB93493(MB93493_I2S_##X)
|
|
|
|
+#define __set_MB93493_I2S(X,V) __set_MB93493(MB93493_I2S_##X, (V))
|
|
|
|
+
|
|
|
|
+#define MB93493_I2S_ALDR 0x300 /* L-channel data */
|
|
|
|
+#define MB93493_I2S_ARDR 0x304 /* R-channel data */
|
|
|
|
+#define MB93493_I2S_APDR 0x308 /* 16-bit packed data */
|
|
|
|
+#define MB93493_I2S_AISTR 0x310 /* status */
|
|
|
|
+#define MB93493_I2S_AICR 0x314 /* control */
|
|
|
|
+
|
|
|
|
+#define __addr_MB93493_I2S_ALDR(X) (__region_CS3 + MB93493_I2S_ALDR + (X))
|
|
|
|
+#define __addr_MB93493_I2S_ARDR(X) (__region_CS3 + MB93493_I2S_ARDR + (X))
|
|
|
|
+#define __addr_MB93493_I2S_APDR(X) (__region_CS3 + MB93493_I2S_APDR + (X))
|
|
|
|
+#define __addr_MB93493_I2S_ADR(X) (__region_CS3 + 0x320 + (X))
|
|
|
|
+
|
|
|
|
+#define I2S_AISTR_OTST 0x00000003 /* status of output data transfer */
|
|
|
|
+#define I2S_AISTR_OTR 0x00000010 /* output transfer request pending */
|
|
|
|
+#define I2S_AISTR_OUR 0x00000020 /* output FIFO underrun detected */
|
|
|
|
+#define I2S_AISTR_OOR 0x00000040 /* output FIFO overrun detected */
|
|
|
|
+#define I2S_AISTR_ODS 0x00000100 /* output DMA transfer size */
|
|
|
|
+#define I2S_AISTR_ODE 0x00000400 /* output DMA transfer request enable */
|
|
|
|
+#define I2S_AISTR_OTRIE 0x00001000 /* output transfer request interrupt enable */
|
|
|
|
+#define I2S_AISTR_OURIE 0x00002000 /* output FIFO underrun interrupt enable */
|
|
|
|
+#define I2S_AISTR_OORIE 0x00004000 /* output FIFO overrun interrupt enable */
|
|
|
|
+#define I2S_AISTR__OUT_MASK 0x00007570
|
|
|
|
+#define I2S_AISTR_ITST 0x00030000 /* status of input data transfer */
|
|
|
|
+#define I2S_AISTR_ITST_SHIFT 16
|
|
|
|
+#define I2S_AISTR_ITR 0x00100000 /* input transfer request pending */
|
|
|
|
+#define I2S_AISTR_IUR 0x00200000 /* input FIFO underrun detected */
|
|
|
|
+#define I2S_AISTR_IOR 0x00400000 /* input FIFO overrun detected */
|
|
|
|
+#define I2S_AISTR_IDS 0x01000000 /* input DMA transfer size */
|
|
|
|
+#define I2S_AISTR_IDE 0x04000000 /* input DMA transfer request enable */
|
|
|
|
+#define I2S_AISTR_ITRIE 0x10000000 /* input transfer request interrupt enable */
|
|
|
|
+#define I2S_AISTR_IURIE 0x20000000 /* input FIFO underrun interrupt enable */
|
|
|
|
+#define I2S_AISTR_IORIE 0x40000000 /* input FIFO overrun interrupt enable */
|
|
|
|
+#define I2S_AISTR__IN_MASK 0x75700000
|
|
|
|
+
|
|
|
|
+#define I2S_AICR_MI 0x00000001 /* mono input requested */
|
|
|
|
+#define I2S_AICR_AMI 0x00000002 /* relation between LRCKI/FS1 and SDI */
|
|
|
|
+#define I2S_AICR_LRI 0x00000004 /* function of LRCKI pin */
|
|
|
|
+#define I2S_AICR_SDMI 0x00000070 /* format of input audio data */
|
|
|
|
+#define I2S_AICR_SDMI_SHIFT 4
|
|
|
|
+#define I2S_AICR_CLI 0x00000080 /* input FIFO clearing control */
|
|
|
|
+#define I2S_AICR_IM 0x00000300 /* input state control */
|
|
|
|
+#define I2S_AICR_IM_SHIFT 8
|
|
|
|
+#define I2S_AICR__IN_MASK 0x000003f7
|
|
|
|
+#define I2S_AICR_MO 0x00001000 /* mono output requested */
|
|
|
|
+#define I2S_AICR_AMO 0x00002000 /* relation between LRCKO/FS0 and SDO */
|
|
|
|
+#define I2S_AICR_AMO_SHIFT 13
|