Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 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) |
| 9 | |
| 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) |
| 14 | |
| 15 | /* em2800 registers */ |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 16 | #define EM2800_R08_AUDIOSRC 0x08 |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 17 | |
| 18 | /* em28xx registers */ |
| 19 | |
Devin Heitmueller | 5c2231c | 2008-11-19 08:22:28 -0300 | [diff] [blame] | 20 | #define EM28XX_R00_CHIPCFG 0x00 |
| 21 | |
| 22 | /* em28xx Chip Configuration 0x00 */ |
| 23 | #define EM28XX_CHIPCFG_VENDOR_AUDIO 0x80 |
| 24 | #define EM28XX_CHIPCFG_I2S_VOLUME_CAPABLE 0x40 |
Devin Heitmueller | 54d79e3 | 2008-12-29 22:52:37 -0300 | [diff] [blame] | 25 | #define EM28XX_CHIPCFG_I2S_5_SAMPRATES 0x30 |
| 26 | #define EM28XX_CHIPCFG_I2S_3_SAMPRATES 0x20 |
Devin Heitmueller | 5c2231c | 2008-11-19 08:22:28 -0300 | [diff] [blame] | 27 | #define EM28XX_CHIPCFG_AC97 0x10 |
| 28 | #define EM28XX_CHIPCFG_AUDIOMASK 0x30 |
| 29 | |
Devin Heitmueller | d18e2fd | 2009-05-16 17:09:28 -0300 | [diff] [blame] | 30 | #define EM28XX_R01_CHIPCFG2 0x01 |
| 31 | |
| 32 | /* em28xx Chip Configuration 2 0x01 */ |
| 33 | #define EM28XX_CHIPCFG2_TS_PRESENT 0x10 |
| 34 | #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK 0x0c /* bits 3-2 */ |
| 35 | #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_1MF 0x00 |
| 36 | #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_2MF 0x04 |
| 37 | #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_4MF 0x08 |
| 38 | #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_8MF 0x0c |
| 39 | #define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK 0x03 /* bits 0-1 */ |
| 40 | #define EM28XX_CHIPCFG2_TS_PACKETSIZE_188 0x00 |
| 41 | #define EM28XX_CHIPCFG2_TS_PACKETSIZE_376 0x01 |
| 42 | #define EM28XX_CHIPCFG2_TS_PACKETSIZE_564 0x02 |
| 43 | #define EM28XX_CHIPCFG2_TS_PACKETSIZE_752 0x03 |
| 44 | |
| 45 | |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 46 | /* GPIO/GPO registers */ |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 47 | #define EM2880_R04_GPO 0x04 /* em2880-em2883 only */ |
| 48 | #define EM28XX_R08_GPIO 0x08 /* em2820 or upper */ |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 49 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 50 | #define EM28XX_R06_I2C_CLK 0x06 |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 51 | |
| 52 | /* em28xx I2C Clock Register (0x06) */ |
| 53 | #define EM28XX_I2C_CLK_ACK_LAST_READ 0x80 |
| 54 | #define EM28XX_I2C_CLK_WAIT_ENABLE 0x40 |
| 55 | #define EM28XX_I2C_EEPROM_ON_BOARD 0x08 |
| 56 | #define EM28XX_I2C_EEPROM_KEY_VALID 0x04 |
| 57 | #define EM2874_I2C_SECONDARY_BUS_SELECT 0x04 /* em2874 has two i2c busses */ |
| 58 | #define EM28XX_I2C_FREQ_1_5_MHZ 0x03 /* bus frequency (bits [1-0]) */ |
| 59 | #define EM28XX_I2C_FREQ_25_KHZ 0x02 |
| 60 | #define EM28XX_I2C_FREQ_400_KHZ 0x01 |
| 61 | #define EM28XX_I2C_FREQ_100_KHZ 0x00 |
| 62 | |
| 63 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 64 | #define EM28XX_R0A_CHIPID 0x0a |
| 65 | #define EM28XX_R0C_USBSUSP 0x0c /* */ |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 66 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 67 | #define EM28XX_R0E_AUDIOSRC 0x0e |
| 68 | #define EM28XX_R0F_XCLK 0x0f |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 69 | |
Devin Heitmueller | 5592768 | 2008-11-25 06:03:31 -0300 | [diff] [blame] | 70 | /* em28xx XCLK Register (0x0f) */ |
| 71 | #define EM28XX_XCLK_AUDIO_UNMUTE 0x80 /* otherwise audio muted */ |
| 72 | #define EM28XX_XCLK_I2S_MSB_TIMING 0x40 /* otherwise standard timing */ |
| 73 | #define EM28XX_XCLK_IR_RC5_MODE 0x20 /* otherwise NEC mode */ |
| 74 | #define EM28XX_XCLK_IR_NEC_CHK_PARITY 0x10 |
| 75 | #define EM28XX_XCLK_FREQUENCY_30MHZ 0x00 /* Freq. select (bits [3-0]) */ |
| 76 | #define EM28XX_XCLK_FREQUENCY_15MHZ 0x01 |
| 77 | #define EM28XX_XCLK_FREQUENCY_10MHZ 0x02 |
| 78 | #define EM28XX_XCLK_FREQUENCY_7_5MHZ 0x03 |
| 79 | #define EM28XX_XCLK_FREQUENCY_6MHZ 0x04 |
| 80 | #define EM28XX_XCLK_FREQUENCY_5MHZ 0x05 |
| 81 | #define EM28XX_XCLK_FREQUENCY_4_3MHZ 0x06 |
| 82 | #define EM28XX_XCLK_FREQUENCY_12MHZ 0x07 |
| 83 | #define EM28XX_XCLK_FREQUENCY_20MHZ 0x08 |
| 84 | #define EM28XX_XCLK_FREQUENCY_20MHZ_2 0x09 |
| 85 | #define EM28XX_XCLK_FREQUENCY_48MHZ 0x0a |
| 86 | #define EM28XX_XCLK_FREQUENCY_24MHZ 0x0b |
| 87 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 88 | #define EM28XX_R10_VINMODE 0x10 |
Devin Heitmueller | 206313d | 2009-08-31 23:23:03 -0300 | [diff] [blame] | 89 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 90 | #define EM28XX_R11_VINCTRL 0x11 |
Devin Heitmueller | 206313d | 2009-08-31 23:23:03 -0300 | [diff] [blame] | 91 | |
| 92 | /* em28xx Video Input Control Register 0x11 */ |
| 93 | #define EM28XX_VINCTRL_VBI_SLICED 0x80 |
| 94 | #define EM28XX_VINCTRL_VBI_RAW 0x40 |
| 95 | #define EM28XX_VINCTRL_VOUT_MODE_IN 0x20 /* HREF,VREF,VACT in output */ |
| 96 | #define EM28XX_VINCTRL_CCIR656_ENABLE 0x10 |
| 97 | #define EM28XX_VINCTRL_VBI_16BIT_RAW 0x08 /* otherwise 8-bit raw */ |
| 98 | #define EM28XX_VINCTRL_FID_ON_HREF 0x04 |
| 99 | #define EM28XX_VINCTRL_DUAL_EDGE_STROBE 0x02 |
| 100 | #define EM28XX_VINCTRL_INTERLACED 0x01 |
| 101 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 102 | #define EM28XX_R12_VINENABLE 0x12 /* */ |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 103 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 104 | #define EM28XX_R14_GAMMA 0x14 |
| 105 | #define EM28XX_R15_RGAIN 0x15 |
| 106 | #define EM28XX_R16_GGAIN 0x16 |
| 107 | #define EM28XX_R17_BGAIN 0x17 |
| 108 | #define EM28XX_R18_ROFFSET 0x18 |
| 109 | #define EM28XX_R19_GOFFSET 0x19 |
| 110 | #define EM28XX_R1A_BOFFSET 0x1a |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 111 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 112 | #define EM28XX_R1B_OFLOW 0x1b |
| 113 | #define EM28XX_R1C_HSTART 0x1c |
| 114 | #define EM28XX_R1D_VSTART 0x1d |
| 115 | #define EM28XX_R1E_CWIDTH 0x1e |
| 116 | #define EM28XX_R1F_CHEIGHT 0x1f |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 117 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 118 | #define EM28XX_R20_YGAIN 0x20 |
| 119 | #define EM28XX_R21_YOFFSET 0x21 |
| 120 | #define EM28XX_R22_UVGAIN 0x22 |
| 121 | #define EM28XX_R23_UOFFSET 0x23 |
| 122 | #define EM28XX_R24_VOFFSET 0x24 |
| 123 | #define EM28XX_R25_SHARPNESS 0x25 |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 124 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 125 | #define EM28XX_R26_COMPR 0x26 |
| 126 | #define EM28XX_R27_OUTFMT 0x27 |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 127 | |
Devin Heitmueller | 3fbf930 | 2008-12-29 23:34:37 -0300 | [diff] [blame] | 128 | /* em28xx Output Format Register (0x27) */ |
| 129 | #define EM28XX_OUTFMT_RGB_8_RGRG 0x00 |
| 130 | #define EM28XX_OUTFMT_RGB_8_GRGR 0x01 |
| 131 | #define EM28XX_OUTFMT_RGB_8_GBGB 0x02 |
| 132 | #define EM28XX_OUTFMT_RGB_8_BGBG 0x03 |
| 133 | #define EM28XX_OUTFMT_RGB_16_656 0x04 |
| 134 | #define EM28XX_OUTFMT_RGB_8_BAYER 0x08 /* Pattern in Reg 0x10[1-0] */ |
| 135 | #define EM28XX_OUTFMT_YUV211 0x10 |
| 136 | #define EM28XX_OUTFMT_YUV422_Y0UY1V 0x14 |
| 137 | #define EM28XX_OUTFMT_YUV422_Y1UY0V 0x15 |
| 138 | #define EM28XX_OUTFMT_YUV411 0x18 |
| 139 | |
| 140 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 141 | #define EM28XX_R28_XMIN 0x28 |
| 142 | #define EM28XX_R29_XMAX 0x29 |
| 143 | #define EM28XX_R2A_YMIN 0x2a |
| 144 | #define EM28XX_R2B_YMAX 0x2b |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 145 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 146 | #define EM28XX_R30_HSCALELOW 0x30 |
| 147 | #define EM28XX_R31_HSCALEHIGH 0x31 |
| 148 | #define EM28XX_R32_VSCALELOW 0x32 |
| 149 | #define EM28XX_R33_VSCALEHIGH 0x33 |
Devin Heitmueller | da52a55 | 2009-09-01 01:19:46 -0300 | [diff] [blame] | 150 | #define EM28XX_R34_VBI_START_H 0x34 |
| 151 | #define EM28XX_R35_VBI_START_V 0x35 |
| 152 | #define EM28XX_R36_VBI_WIDTH 0x36 |
| 153 | #define EM28XX_R37_VBI_HEIGHT 0x37 |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 154 | |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 155 | #define EM28XX_R40_AC97LSB 0x40 |
| 156 | #define EM28XX_R41_AC97MSB 0x41 |
| 157 | #define EM28XX_R42_AC97ADDR 0x42 |
| 158 | #define EM28XX_R43_AC97BUSY 0x43 |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 159 | |
Mauro Carvalho Chehab | a924a49 | 2008-11-12 08:41:29 -0300 | [diff] [blame] | 160 | #define EM28XX_R45_IR 0x45 |
| 161 | /* 0x45 bit 7 - parity bit |
| 162 | bits 6-0 - count |
| 163 | 0x46 IR brand |
| 164 | 0x47 IR data |
| 165 | */ |
| 166 | |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 167 | /* em2874 registers */ |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 168 | #define EM2874_R50_IR_CONFIG 0x50 |
| 169 | #define EM2874_R51_IR 0x51 |
Devin Heitmueller | ebef13d | 2008-11-12 02:05:24 -0300 | [diff] [blame] | 170 | #define EM2874_R5F_TS_ENABLE 0x5f |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 171 | #define EM2874_R80_GPIO 0x80 |
| 172 | |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 173 | /* em2874 IR config register (0x50) */ |
| 174 | #define EM2874_IR_NEC 0x00 |
| 175 | #define EM2874_IR_RC5 0x04 |
Mauro Carvalho Chehab | 5599678 | 2010-01-11 10:47:33 -0300 | [diff] [blame] | 176 | #define EM2874_IR_RC6_MODE_0 0x08 |
| 177 | #define EM2874_IR_RC6_MODE_6A 0x0b |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 178 | |
Devin Heitmueller | ebef13d | 2008-11-12 02:05:24 -0300 | [diff] [blame] | 179 | /* em2874 Transport Stream Enable Register (0x5f) */ |
| 180 | #define EM2874_TS1_CAPTURE_ENABLE (1 << 0) |
| 181 | #define EM2874_TS1_FILTER_ENABLE (1 << 1) |
| 182 | #define EM2874_TS1_NULL_DISCARD (1 << 2) |
| 183 | #define EM2874_TS2_CAPTURE_ENABLE (1 << 4) |
| 184 | #define EM2874_TS2_FILTER_ENABLE (1 << 5) |
| 185 | #define EM2874_TS2_NULL_DISCARD (1 << 6) |
| 186 | |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 187 | /* register settings */ |
| 188 | #define EM2800_AUDIO_SRC_TUNER 0x0d |
| 189 | #define EM2800_AUDIO_SRC_LINE 0x0c |
| 190 | #define EM28XX_AUDIO_SRC_TUNER 0xc0 |
| 191 | #define EM28XX_AUDIO_SRC_LINE 0x80 |
| 192 | |
| 193 | /* FIXME: Need to be populated with the other chip ID's */ |
| 194 | enum em28xx_chip_id { |
Mauro Carvalho Chehab | f57b17c3 | 2009-11-12 11:21:05 -0300 | [diff] [blame] | 195 | CHIP_ID_EM2800 = 7, |
Mauro Carvalho Chehab | d594317 | 2009-08-07 12:13:31 -0300 | [diff] [blame] | 196 | CHIP_ID_EM2710 = 17, |
| 197 | CHIP_ID_EM2820 = 18, /* Also used by some em2710 */ |
Mauro Carvalho Chehab | f09fb53 | 2008-11-16 10:40:21 -0300 | [diff] [blame] | 198 | CHIP_ID_EM2840 = 20, |
Devin Heitmueller | 67c96f6 | 2008-11-18 05:05:46 -0300 | [diff] [blame] | 199 | CHIP_ID_EM2750 = 33, |
Devin Heitmueller | a8a1f8c | 2008-06-10 12:35:42 -0300 | [diff] [blame] | 200 | CHIP_ID_EM2860 = 34, |
Devin Heitmueller | b1fa26c | 2008-12-16 23:15:33 -0300 | [diff] [blame] | 201 | CHIP_ID_EM2870 = 35, |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 202 | CHIP_ID_EM2883 = 36, |
Devin Heitmueller | 5caeba0 | 2008-11-12 02:04:48 -0300 | [diff] [blame] | 203 | CHIP_ID_EM2874 = 65, |
Antti Palosaari | bc02269 | 2011-04-07 16:04:48 -0300 | [diff] [blame] | 204 | CHIP_ID_EM28174 = 113, |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 205 | }; |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 206 | |
| 207 | /* |
| 208 | * Registers used by em202 and other AC97 chips |
| 209 | */ |
| 210 | |
| 211 | /* Standard AC97 registers */ |
| 212 | #define AC97_RESET 0x00 |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 213 | |
| 214 | /* Output volumes */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 215 | #define AC97_MASTER_VOL 0x02 |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 216 | #define AC97_LINE_LEVEL_VOL 0x04 /* Some devices use for headphones */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 217 | #define AC97_MASTER_MONO_VOL 0x06 |
| 218 | |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 219 | /* Input volumes */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 220 | #define AC97_PC_BEEP_VOL 0x0a |
| 221 | #define AC97_PHONE_VOL 0x0c |
| 222 | #define AC97_MIC_VOL 0x0e |
| 223 | #define AC97_LINEIN_VOL 0x10 |
| 224 | #define AC97_CD_VOL 0x12 |
| 225 | #define AC97_VIDEO_VOL 0x14 |
| 226 | #define AC97_AUX_VOL 0x16 |
| 227 | #define AC97_PCM_OUT_VOL 0x18 |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 228 | |
| 229 | /* capture registers */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 230 | #define AC97_RECORD_SELECT 0x1a |
| 231 | #define AC97_RECORD_GAIN 0x1c |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 232 | |
| 233 | /* control registers */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 234 | #define AC97_GENERAL_PURPOSE 0x20 |
| 235 | #define AC97_3D_CTRL 0x22 |
| 236 | #define AC97_AUD_INT_AND_PAG 0x24 |
| 237 | #define AC97_POWER_DOWN_CTRL 0x26 |
| 238 | #define AC97_EXT_AUD_ID 0x28 |
| 239 | #define AC97_EXT_AUD_CTRL 0x2a |
| 240 | |
| 241 | /* Supported rate varies for each AC97 device |
| 242 | if write an unsupported value, it will return the closest one |
| 243 | */ |
| 244 | #define AC97_PCM_OUT_FRONT_SRATE 0x2c |
| 245 | #define AC97_PCM_OUT_SURR_SRATE 0x2e |
| 246 | #define AC97_PCM_OUT_LFE_SRATE 0x30 |
| 247 | #define AC97_PCM_IN_SRATE 0x32 |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 248 | |
| 249 | /* For devices with more than 2 channels, extra output volumes */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 250 | #define AC97_LFE_MASTER_VOL 0x36 |
| 251 | #define AC97_SURR_MASTER_VOL 0x38 |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 252 | |
| 253 | /* Digital SPDIF output control */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 254 | #define AC97_SPDIF_OUT_CTRL 0x3a |
| 255 | |
Mauro Carvalho Chehab | 5faff78 | 2008-11-20 09:06:09 -0300 | [diff] [blame] | 256 | /* Vendor ID identifier */ |
Mauro Carvalho Chehab | 6fbcebf | 2008-11-17 22:30:09 -0300 | [diff] [blame] | 257 | #define AC97_VENDOR_ID1 0x7c |
| 258 | #define AC97_VENDOR_ID2 0x7e |
| 259 | |
| 260 | /* EMP202 vendor registers */ |
| 261 | #define EM202_EXT_MODEM_CTRL 0x3e |
| 262 | #define EM202_GPIO_CONF 0x4c |
| 263 | #define EM202_GPIO_POLARITY 0x4e |
| 264 | #define EM202_GPIO_STICKY 0x50 |
| 265 | #define EM202_GPIO_MASK 0x52 |
| 266 | #define EM202_GPIO_STATUS 0x54 |
| 267 | #define EM202_SPDIF_OUT_SEL 0x6a |
| 268 | #define EM202_ANTIPOP 0x72 |
| 269 | #define EM202_EAPD_GPIO_ACCESS 0x74 |