Go to the documentation of this file. 1 #define EM_GPIO_0 (1 << 0)
2 #define EM_GPIO_1 (1 << 1)
3 #define EM_GPIO_2 (1 << 2)
4 #define EM_GPIO_3 (1 << 3)
5 #define EM_GPIO_4 (1 << 4)
6 #define EM_GPIO_5 (1 << 5)
7 #define EM_GPIO_6 (1 << 6)
8 #define EM_GPIO_7 (1 << 7)
10 #define EM_GPO_0 (1 << 0)
11 #define EM_GPO_1 (1 << 1)
12 #define EM_GPO_2 (1 << 2)
13 #define EM_GPO_3 (1 << 3)
16 #define EM28XX_EP_ANALOG 0x82
17 #define EM28XX_EP_AUDIO 0x83
18 #define EM28XX_EP_DIGITAL 0x84
21 #define EM2800_R08_AUDIOSRC 0x08
25 #define EM28XX_R00_CHIPCFG 0x00
28 #define EM28XX_CHIPCFG_VENDOR_AUDIO 0x80
29 #define EM28XX_CHIPCFG_I2S_VOLUME_CAPABLE 0x40
30 #define EM28XX_CHIPCFG_I2S_5_SAMPRATES 0x30
31 #define EM28XX_CHIPCFG_I2S_3_SAMPRATES 0x20
32 #define EM28XX_CHIPCFG_AC97 0x10
33 #define EM28XX_CHIPCFG_AUDIOMASK 0x30
35 #define EM28XX_R01_CHIPCFG2 0x01
38 #define EM28XX_CHIPCFG2_TS_PRESENT 0x10
39 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK 0x0c
40 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_1MF 0x00
41 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_2MF 0x04
42 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_4MF 0x08
43 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_8MF 0x0c
44 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK 0x03
45 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_188 0x00
46 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_376 0x01
47 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_564 0x02
48 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_752 0x03
52 #define EM2880_R04_GPO 0x04
53 #define EM28XX_R08_GPIO 0x08
55 #define EM28XX_R06_I2C_CLK 0x06
58 #define EM28XX_I2C_CLK_ACK_LAST_READ 0x80
59 #define EM28XX_I2C_CLK_WAIT_ENABLE 0x40
60 #define EM28XX_I2C_EEPROM_ON_BOARD 0x08
61 #define EM28XX_I2C_EEPROM_KEY_VALID 0x04
62 #define EM2874_I2C_SECONDARY_BUS_SELECT 0x04
63 #define EM28XX_I2C_FREQ_1_5_MHZ 0x03
64 #define EM28XX_I2C_FREQ_25_KHZ 0x02
65 #define EM28XX_I2C_FREQ_400_KHZ 0x01
66 #define EM28XX_I2C_FREQ_100_KHZ 0x00
69 #define EM28XX_R0A_CHIPID 0x0a
70 #define EM28XX_R0C_USBSUSP 0x0c
72 #define EM28XX_R0E_AUDIOSRC 0x0e
73 #define EM28XX_R0F_XCLK 0x0f
76 #define EM28XX_XCLK_AUDIO_UNMUTE 0x80
77 #define EM28XX_XCLK_I2S_MSB_TIMING 0x40
78 #define EM28XX_XCLK_IR_RC5_MODE 0x20
79 #define EM28XX_XCLK_IR_NEC_CHK_PARITY 0x10
80 #define EM28XX_XCLK_FREQUENCY_30MHZ 0x00
81 #define EM28XX_XCLK_FREQUENCY_15MHZ 0x01
82 #define EM28XX_XCLK_FREQUENCY_10MHZ 0x02
83 #define EM28XX_XCLK_FREQUENCY_7_5MHZ 0x03
84 #define EM28XX_XCLK_FREQUENCY_6MHZ 0x04
85 #define EM28XX_XCLK_FREQUENCY_5MHZ 0x05
86 #define EM28XX_XCLK_FREQUENCY_4_3MHZ 0x06
87 #define EM28XX_XCLK_FREQUENCY_12MHZ 0x07
88 #define EM28XX_XCLK_FREQUENCY_20MHZ 0x08
89 #define EM28XX_XCLK_FREQUENCY_20MHZ_2 0x09
90 #define EM28XX_XCLK_FREQUENCY_48MHZ 0x0a
91 #define EM28XX_XCLK_FREQUENCY_24MHZ 0x0b
93 #define EM28XX_R10_VINMODE 0x10
95 #define EM28XX_R11_VINCTRL 0x11
98 #define EM28XX_VINCTRL_VBI_SLICED 0x80
99 #define EM28XX_VINCTRL_VBI_RAW 0x40
100 #define EM28XX_VINCTRL_VOUT_MODE_IN 0x20
101 #define EM28XX_VINCTRL_CCIR656_ENABLE 0x10
102 #define EM28XX_VINCTRL_VBI_16BIT_RAW 0x08
103 #define EM28XX_VINCTRL_FID_ON_HREF 0x04
104 #define EM28XX_VINCTRL_DUAL_EDGE_STROBE 0x02
105 #define EM28XX_VINCTRL_INTERLACED 0x01
107 #define EM28XX_R12_VINENABLE 0x12
109 #define EM28XX_R14_GAMMA 0x14
110 #define EM28XX_R15_RGAIN 0x15
111 #define EM28XX_R16_GGAIN 0x16
112 #define EM28XX_R17_BGAIN 0x17
113 #define EM28XX_R18_ROFFSET 0x18
114 #define EM28XX_R19_GOFFSET 0x19
115 #define EM28XX_R1A_BOFFSET 0x1a
117 #define EM28XX_R1B_OFLOW 0x1b
118 #define EM28XX_R1C_HSTART 0x1c
119 #define EM28XX_R1D_VSTART 0x1d
120 #define EM28XX_R1E_CWIDTH 0x1e
121 #define EM28XX_R1F_CHEIGHT 0x1f
123 #define EM28XX_R20_YGAIN 0x20
124 #define EM28XX_R21_YOFFSET 0x21
125 #define EM28XX_R22_UVGAIN 0x22
126 #define EM28XX_R23_UOFFSET 0x23
127 #define EM28XX_R24_VOFFSET 0x24
128 #define EM28XX_R25_SHARPNESS 0x25
130 #define EM28XX_R26_COMPR 0x26
131 #define EM28XX_R27_OUTFMT 0x27
134 #define EM28XX_OUTFMT_RGB_8_RGRG 0x00
135 #define EM28XX_OUTFMT_RGB_8_GRGR 0x01
136 #define EM28XX_OUTFMT_RGB_8_GBGB 0x02
137 #define EM28XX_OUTFMT_RGB_8_BGBG 0x03
138 #define EM28XX_OUTFMT_RGB_16_656 0x04
139 #define EM28XX_OUTFMT_RGB_8_BAYER 0x08
140 #define EM28XX_OUTFMT_YUV211 0x10
141 #define EM28XX_OUTFMT_YUV422_Y0UY1V 0x14
142 #define EM28XX_OUTFMT_YUV422_Y1UY0V 0x15
143 #define EM28XX_OUTFMT_YUV411 0x18
146 #define EM28XX_R28_XMIN 0x28
147 #define EM28XX_R29_XMAX 0x29
148 #define EM28XX_R2A_YMIN 0x2a
149 #define EM28XX_R2B_YMAX 0x2b
151 #define EM28XX_R30_HSCALELOW 0x30
152 #define EM28XX_R31_HSCALEHIGH 0x31
153 #define EM28XX_R32_VSCALELOW 0x32
154 #define EM28XX_R33_VSCALEHIGH 0x33
155 #define EM28XX_R34_VBI_START_H 0x34
156 #define EM28XX_R35_VBI_START_V 0x35
157 #define EM28XX_R36_VBI_WIDTH 0x36
158 #define EM28XX_R37_VBI_HEIGHT 0x37
160 #define EM28XX_R40_AC97LSB 0x40
161 #define EM28XX_R41_AC97MSB 0x41
162 #define EM28XX_R42_AC97ADDR 0x42
163 #define EM28XX_R43_AC97BUSY 0x43
165 #define EM28XX_R45_IR 0x45
173 #define EM2874_R50_IR_CONFIG 0x50
174 #define EM2874_R51_IR 0x51
175 #define EM2874_R5F_TS_ENABLE 0x5f
176 #define EM2874_R80_GPIO 0x80
179 #define EM2874_IR_NEC 0x00
180 #define EM2874_IR_RC5 0x04
181 #define EM2874_IR_RC6_MODE_0 0x08
182 #define EM2874_IR_RC6_MODE_6A 0x0b
185 #define EM2874_TS1_CAPTURE_ENABLE (1 << 0)
186 #define EM2874_TS1_FILTER_ENABLE (1 << 1)
187 #define EM2874_TS1_NULL_DISCARD (1 << 2)
188 #define EM2874_TS2_CAPTURE_ENABLE (1 << 4)
189 #define EM2874_TS2_FILTER_ENABLE (1 << 5)
190 #define EM2874_TS2_NULL_DISCARD (1 << 6)
193 #define EM2800_AUDIO_SRC_TUNER 0x0d
194 #define EM2800_AUDIO_SRC_LINE 0x0c
195 #define EM28XX_AUDIO_SRC_TUNER 0xc0
196 #define EM28XX_AUDIO_SRC_LINE 0x80
218 #define EM202_EXT_MODEM_CTRL 0x3e
219 #define EM202_GPIO_CONF 0x4c
220 #define EM202_GPIO_POLARITY 0x4e
221 #define EM202_GPIO_STICKY 0x50
222 #define EM202_GPIO_MASK 0x52
223 #define EM202_GPIO_STATUS 0x54
224 #define EM202_SPDIF_OUT_SEL 0x6a
225 #define EM202_ANTIPOP 0x72
226 #define EM202_EAPD_GPIO_ACCESS 0x74