162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci/* 462306a36Sopenharmony_ci * em28xx-reg.h - Register definitions for em28xx driver 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#define EM_GPIO_0 ((unsigned char)BIT(0)) 862306a36Sopenharmony_ci#define EM_GPIO_1 ((unsigned char)BIT(1)) 962306a36Sopenharmony_ci#define EM_GPIO_2 ((unsigned char)BIT(2)) 1062306a36Sopenharmony_ci#define EM_GPIO_3 ((unsigned char)BIT(3)) 1162306a36Sopenharmony_ci#define EM_GPIO_4 ((unsigned char)BIT(4)) 1262306a36Sopenharmony_ci#define EM_GPIO_5 ((unsigned char)BIT(5)) 1362306a36Sopenharmony_ci#define EM_GPIO_6 ((unsigned char)BIT(6)) 1462306a36Sopenharmony_ci#define EM_GPIO_7 ((unsigned char)BIT(7)) 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#define EM_GPO_0 ((unsigned char)BIT(0)) 1762306a36Sopenharmony_ci#define EM_GPO_1 ((unsigned char)BIT(1)) 1862306a36Sopenharmony_ci#define EM_GPO_2 ((unsigned char)BIT(2)) 1962306a36Sopenharmony_ci#define EM_GPO_3 ((unsigned char)BIT(3)) 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci/* em28xx endpoints */ 2262306a36Sopenharmony_ci/* 0x82: (always ?) analog */ 2362306a36Sopenharmony_ci#define EM28XX_EP_AUDIO 0x83 2462306a36Sopenharmony_ci/* 0x84: digital or analog */ 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci/* em2800 registers */ 2762306a36Sopenharmony_ci#define EM2800_R08_AUDIOSRC 0x08 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* em28xx registers */ 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#define EM28XX_R00_CHIPCFG 0x00 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* em28xx Chip Configuration 0x00 */ 3462306a36Sopenharmony_ci#define EM2860_CHIPCFG_VENDOR_AUDIO 0x80 3562306a36Sopenharmony_ci#define EM2860_CHIPCFG_I2S_VOLUME_CAPABLE 0x40 3662306a36Sopenharmony_ci#define EM2820_CHIPCFG_I2S_3_SAMPRATES 0x30 3762306a36Sopenharmony_ci#define EM2860_CHIPCFG_I2S_5_SAMPRATES 0x30 3862306a36Sopenharmony_ci#define EM2820_CHIPCFG_I2S_1_SAMPRATE 0x20 3962306a36Sopenharmony_ci#define EM2860_CHIPCFG_I2S_3_SAMPRATES 0x20 4062306a36Sopenharmony_ci#define EM28XX_CHIPCFG_AC97 0x10 4162306a36Sopenharmony_ci#define EM28XX_CHIPCFG_AUDIOMASK 0x30 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci#define EM28XX_R01_CHIPCFG2 0x01 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci/* em28xx Chip Configuration 2 0x01 */ 4662306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PRESENT 0x10 4762306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK 0x0c /* bits 3-2 */ 4862306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_1MF 0x00 4962306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_2MF 0x04 5062306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_4MF 0x08 5162306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_8MF 0x0c 5262306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK 0x03 /* bits 0-1 */ 5362306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PACKETSIZE_188 0x00 5462306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PACKETSIZE_376 0x01 5562306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PACKETSIZE_564 0x02 5662306a36Sopenharmony_ci#define EM28XX_CHIPCFG2_TS_PACKETSIZE_752 0x03 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci/* GPIO/GPO registers */ 5962306a36Sopenharmony_ci#define EM2880_R04_GPO 0x04 /* em2880-em2883 only */ 6062306a36Sopenharmony_ci#define EM2820_R08_GPIO_CTRL 0x08 /* em2820-em2873/83 only */ 6162306a36Sopenharmony_ci#define EM2820_R09_GPIO_STATE 0x09 /* em2820-em2873/83 only */ 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci#define EM28XX_R06_I2C_CLK 0x06 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci/* em28xx I2C Clock Register (0x06) */ 6662306a36Sopenharmony_ci#define EM28XX_I2C_CLK_ACK_LAST_READ 0x80 6762306a36Sopenharmony_ci#define EM28XX_I2C_CLK_WAIT_ENABLE 0x40 6862306a36Sopenharmony_ci#define EM28XX_I2C_EEPROM_ON_BOARD 0x08 6962306a36Sopenharmony_ci#define EM28XX_I2C_EEPROM_KEY_VALID 0x04 7062306a36Sopenharmony_ci#define EM2874_I2C_SECONDARY_BUS_SELECT 0x04 /* em2874 has two i2c buses */ 7162306a36Sopenharmony_ci#define EM28XX_I2C_FREQ_1_5_MHZ 0x03 /* bus frequency (bits [1-0]) */ 7262306a36Sopenharmony_ci#define EM28XX_I2C_FREQ_25_KHZ 0x02 7362306a36Sopenharmony_ci#define EM28XX_I2C_FREQ_400_KHZ 0x01 7462306a36Sopenharmony_ci#define EM28XX_I2C_FREQ_100_KHZ 0x00 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci#define EM28XX_R0A_CHIPID 0x0a 7762306a36Sopenharmony_ci#define EM28XX_R0C_USBSUSP 0x0c 7862306a36Sopenharmony_ci#define EM28XX_R0C_USBSUSP_SNAPSHOT 0x20 /* 1=button pressed, needs reset */ 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci#define EM28XX_R0E_AUDIOSRC 0x0e 8162306a36Sopenharmony_ci#define EM28XX_R0F_XCLK 0x0f 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci/* em28xx XCLK Register (0x0f) */ 8462306a36Sopenharmony_ci#define EM28XX_XCLK_AUDIO_UNMUTE 0x80 /* otherwise audio muted */ 8562306a36Sopenharmony_ci#define EM28XX_XCLK_I2S_MSB_TIMING 0x40 /* otherwise standard timing */ 8662306a36Sopenharmony_ci#define EM28XX_XCLK_IR_RC5_MODE 0x20 /* otherwise NEC mode */ 8762306a36Sopenharmony_ci#define EM28XX_XCLK_IR_NEC_CHK_PARITY 0x10 8862306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_30MHZ 0x00 /* Freq. select (bits [3-0]) */ 8962306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_15MHZ 0x01 9062306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_10MHZ 0x02 9162306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_7_5MHZ 0x03 9262306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_6MHZ 0x04 9362306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_5MHZ 0x05 9462306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_4_3MHZ 0x06 9562306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_12MHZ 0x07 9662306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_20MHZ 0x08 9762306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_20MHZ_2 0x09 9862306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_48MHZ 0x0a 9962306a36Sopenharmony_ci#define EM28XX_XCLK_FREQUENCY_24MHZ 0x0b 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ci#define EM28XX_R10_VINMODE 0x10 10262306a36Sopenharmony_ci /* used by all non-camera devices: */ 10362306a36Sopenharmony_ci#define EM28XX_VINMODE_YUV422_CbYCrY 0x10 10462306a36Sopenharmony_ci /* used by camera devices: */ 10562306a36Sopenharmony_ci#define EM28XX_VINMODE_YUV422_YUYV 0x08 10662306a36Sopenharmony_ci#define EM28XX_VINMODE_YUV422_YVYU 0x09 10762306a36Sopenharmony_ci#define EM28XX_VINMODE_YUV422_UYVY 0x0a 10862306a36Sopenharmony_ci#define EM28XX_VINMODE_YUV422_VYUY 0x0b 10962306a36Sopenharmony_ci#define EM28XX_VINMODE_RGB8_BGGR 0x0c 11062306a36Sopenharmony_ci#define EM28XX_VINMODE_RGB8_GRBG 0x0d 11162306a36Sopenharmony_ci#define EM28XX_VINMODE_RGB8_GBRG 0x0e 11262306a36Sopenharmony_ci#define EM28XX_VINMODE_RGB8_RGGB 0x0f 11362306a36Sopenharmony_ci /* 11462306a36Sopenharmony_ci * apparently: 11562306a36Sopenharmony_ci * bit 0: swap component 1+2 with 3+4 11662306a36Sopenharmony_ci * => e.g.: YUYV => YVYU, BGGR => GRBG 11762306a36Sopenharmony_ci * bit 1: swap component 1 with 2 and 3 with 4 11862306a36Sopenharmony_ci * => e.g.: YUYV => UYVY, BGGR => GBRG 11962306a36Sopenharmony_ci */ 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci#define EM28XX_R11_VINCTRL 0x11 12262306a36Sopenharmony_ci 12362306a36Sopenharmony_ci/* em28xx Video Input Control Register 0x11 */ 12462306a36Sopenharmony_ci#define EM28XX_VINCTRL_VBI_SLICED 0x80 12562306a36Sopenharmony_ci#define EM28XX_VINCTRL_VBI_RAW 0x40 12662306a36Sopenharmony_ci#define EM28XX_VINCTRL_VOUT_MODE_IN 0x20 /* HREF,VREF,VACT in output */ 12762306a36Sopenharmony_ci#define EM28XX_VINCTRL_CCIR656_ENABLE 0x10 12862306a36Sopenharmony_ci#define EM28XX_VINCTRL_VBI_16BIT_RAW 0x08 /* otherwise 8-bit raw */ 12962306a36Sopenharmony_ci#define EM28XX_VINCTRL_FID_ON_HREF 0x04 13062306a36Sopenharmony_ci#define EM28XX_VINCTRL_DUAL_EDGE_STROBE 0x02 13162306a36Sopenharmony_ci#define EM28XX_VINCTRL_INTERLACED 0x01 13262306a36Sopenharmony_ci 13362306a36Sopenharmony_ci#define EM28XX_R12_VINENABLE 0x12 /* */ 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_ci#define EM28XX_R14_GAMMA 0x14 13662306a36Sopenharmony_ci#define EM28XX_R15_RGAIN 0x15 13762306a36Sopenharmony_ci#define EM28XX_R16_GGAIN 0x16 13862306a36Sopenharmony_ci#define EM28XX_R17_BGAIN 0x17 13962306a36Sopenharmony_ci#define EM28XX_R18_ROFFSET 0x18 14062306a36Sopenharmony_ci#define EM28XX_R19_GOFFSET 0x19 14162306a36Sopenharmony_ci#define EM28XX_R1A_BOFFSET 0x1a 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci#define EM28XX_R1B_OFLOW 0x1b 14462306a36Sopenharmony_ci#define EM28XX_R1C_HSTART 0x1c 14562306a36Sopenharmony_ci#define EM28XX_R1D_VSTART 0x1d 14662306a36Sopenharmony_ci#define EM28XX_R1E_CWIDTH 0x1e 14762306a36Sopenharmony_ci#define EM28XX_R1F_CHEIGHT 0x1f 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ci#define EM28XX_R20_YGAIN 0x20 /* contrast [0:4] */ 15062306a36Sopenharmony_ci#define CONTRAST_DEFAULT 0x10 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ci#define EM28XX_R21_YOFFSET 0x21 /* brightness */ /* signed */ 15362306a36Sopenharmony_ci#define BRIGHTNESS_DEFAULT 0x00 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ci#define EM28XX_R22_UVGAIN 0x22 /* saturation [0:4] */ 15662306a36Sopenharmony_ci#define SATURATION_DEFAULT 0x10 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci#define EM28XX_R23_UOFFSET 0x23 /* blue balance */ /* signed */ 15962306a36Sopenharmony_ci#define BLUE_BALANCE_DEFAULT 0x00 16062306a36Sopenharmony_ci 16162306a36Sopenharmony_ci#define EM28XX_R24_VOFFSET 0x24 /* red balance */ /* signed */ 16262306a36Sopenharmony_ci#define RED_BALANCE_DEFAULT 0x00 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ci#define EM28XX_R25_SHARPNESS 0x25 /* sharpness [0:4] */ 16562306a36Sopenharmony_ci#define SHARPNESS_DEFAULT 0x00 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci#define EM28XX_R26_COMPR 0x26 16862306a36Sopenharmony_ci#define EM28XX_R27_OUTFMT 0x27 16962306a36Sopenharmony_ci 17062306a36Sopenharmony_ci/* em28xx Output Format Register (0x27) */ 17162306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_8_RGRG 0x00 17262306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_8_GRGR 0x01 17362306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_8_GBGB 0x02 17462306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_8_BGBG 0x03 17562306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_16_656 0x04 17662306a36Sopenharmony_ci#define EM28XX_OUTFMT_RGB_8_BAYER 0x08 /* Pattern in Reg 0x10[1-0] */ 17762306a36Sopenharmony_ci#define EM28XX_OUTFMT_YUV211 0x10 17862306a36Sopenharmony_ci#define EM28XX_OUTFMT_YUV422_Y0UY1V 0x14 17962306a36Sopenharmony_ci#define EM28XX_OUTFMT_YUV422_Y1UY0V 0x15 18062306a36Sopenharmony_ci#define EM28XX_OUTFMT_YUV411 0x18 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_ci#define EM28XX_R28_XMIN 0x28 18362306a36Sopenharmony_ci#define EM28XX_R29_XMAX 0x29 18462306a36Sopenharmony_ci#define EM28XX_R2A_YMIN 0x2a 18562306a36Sopenharmony_ci#define EM28XX_R2B_YMAX 0x2b 18662306a36Sopenharmony_ci 18762306a36Sopenharmony_ci#define EM28XX_R30_HSCALELOW 0x30 18862306a36Sopenharmony_ci#define EM28XX_R31_HSCALEHIGH 0x31 18962306a36Sopenharmony_ci#define EM28XX_R32_VSCALELOW 0x32 19062306a36Sopenharmony_ci#define EM28XX_R33_VSCALEHIGH 0x33 19162306a36Sopenharmony_ci#define EM28XX_HVSCALE_MAX 0x3fff /* => 20% */ 19262306a36Sopenharmony_ci 19362306a36Sopenharmony_ci#define EM28XX_R34_VBI_START_H 0x34 19462306a36Sopenharmony_ci#define EM28XX_R35_VBI_START_V 0x35 19562306a36Sopenharmony_ci/* 19662306a36Sopenharmony_ci * NOTE: the EM276x (and EM25xx, EM277x/8x ?) (camera bridges) use these 19762306a36Sopenharmony_ci * registers for a different unknown purpose. 19862306a36Sopenharmony_ci * => register 0x34 is set to capture width / 16 19962306a36Sopenharmony_ci * => register 0x35 is set to capture height / 16 20062306a36Sopenharmony_ci */ 20162306a36Sopenharmony_ci 20262306a36Sopenharmony_ci#define EM28XX_R36_VBI_WIDTH 0x36 20362306a36Sopenharmony_ci#define EM28XX_R37_VBI_HEIGHT 0x37 20462306a36Sopenharmony_ci 20562306a36Sopenharmony_ci#define EM28XX_R40_AC97LSB 0x40 20662306a36Sopenharmony_ci#define EM28XX_R41_AC97MSB 0x41 20762306a36Sopenharmony_ci#define EM28XX_R42_AC97ADDR 0x42 20862306a36Sopenharmony_ci#define EM28XX_R43_AC97BUSY 0x43 20962306a36Sopenharmony_ci 21062306a36Sopenharmony_ci#define EM28XX_R45_IR 0x45 21162306a36Sopenharmony_ci /* 21262306a36Sopenharmony_ci * 0x45 bit 7 - parity bit 21362306a36Sopenharmony_ci * bits 6-0 - count 21462306a36Sopenharmony_ci * 0x46 IR brand 21562306a36Sopenharmony_ci * 0x47 IR data 21662306a36Sopenharmony_ci */ 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci/* em2874 registers */ 21962306a36Sopenharmony_ci#define EM2874_R50_IR_CONFIG 0x50 22062306a36Sopenharmony_ci#define EM2874_R51_IR 0x51 22162306a36Sopenharmony_ci#define EM2874_R5D_TS1_PKT_SIZE 0x5d 22262306a36Sopenharmony_ci#define EM2874_R5E_TS2_PKT_SIZE 0x5e 22362306a36Sopenharmony_ci /* 22462306a36Sopenharmony_ci * For both TS1 and TS2, In isochronous mode: 22562306a36Sopenharmony_ci * 0x01 188 bytes 22662306a36Sopenharmony_ci * 0x02 376 bytes 22762306a36Sopenharmony_ci * 0x03 564 bytes 22862306a36Sopenharmony_ci * 0x04 752 bytes 22962306a36Sopenharmony_ci * 0x05 940 bytes 23062306a36Sopenharmony_ci * In bulk mode: 23162306a36Sopenharmony_ci * 0x01..0xff total packet count in 188-byte 23262306a36Sopenharmony_ci */ 23362306a36Sopenharmony_ci 23462306a36Sopenharmony_ci#define EM2874_R5F_TS_ENABLE 0x5f 23562306a36Sopenharmony_ci 23662306a36Sopenharmony_ci/* em2874/174/84, em25xx, em276x/7x/8x GPIO registers */ 23762306a36Sopenharmony_ci/* 23862306a36Sopenharmony_ci * NOTE: not all ports are bonded out; 23962306a36Sopenharmony_ci * Some ports are multiplexed with special function I/O 24062306a36Sopenharmony_ci */ 24162306a36Sopenharmony_ci#define EM2874_R80_GPIO_P0_CTRL 0x80 24262306a36Sopenharmony_ci#define EM2874_R81_GPIO_P1_CTRL 0x81 24362306a36Sopenharmony_ci#define EM2874_R82_GPIO_P2_CTRL 0x82 24462306a36Sopenharmony_ci#define EM2874_R83_GPIO_P3_CTRL 0x83 24562306a36Sopenharmony_ci#define EM2874_R84_GPIO_P0_STATE 0x84 24662306a36Sopenharmony_ci#define EM2874_R85_GPIO_P1_STATE 0x85 24762306a36Sopenharmony_ci#define EM2874_R86_GPIO_P2_STATE 0x86 24862306a36Sopenharmony_ci#define EM2874_R87_GPIO_P3_STATE 0x87 24962306a36Sopenharmony_ci 25062306a36Sopenharmony_ci/* em2874 IR config register (0x50) */ 25162306a36Sopenharmony_ci#define EM2874_IR_NEC 0x00 25262306a36Sopenharmony_ci#define EM2874_IR_NEC_NO_PARITY 0x01 25362306a36Sopenharmony_ci#define EM2874_IR_RC5 0x04 25462306a36Sopenharmony_ci#define EM2874_IR_RC6_MODE_0 0x08 25562306a36Sopenharmony_ci#define EM2874_IR_RC6_MODE_6A 0x0b 25662306a36Sopenharmony_ci 25762306a36Sopenharmony_ci/* em2874 Transport Stream Enable Register (0x5f) */ 25862306a36Sopenharmony_ci#define EM2874_TS1_CAPTURE_ENABLE ((unsigned char)BIT(0)) 25962306a36Sopenharmony_ci#define EM2874_TS1_FILTER_ENABLE ((unsigned char)BIT(1)) 26062306a36Sopenharmony_ci#define EM2874_TS1_NULL_DISCARD ((unsigned char)BIT(2)) 26162306a36Sopenharmony_ci#define EM2874_TS2_CAPTURE_ENABLE ((unsigned char)BIT(4)) 26262306a36Sopenharmony_ci#define EM2874_TS2_FILTER_ENABLE ((unsigned char)BIT(5)) 26362306a36Sopenharmony_ci#define EM2874_TS2_NULL_DISCARD ((unsigned char)BIT(6)) 26462306a36Sopenharmony_ci 26562306a36Sopenharmony_ci/* register settings */ 26662306a36Sopenharmony_ci#define EM2800_AUDIO_SRC_TUNER 0x0d 26762306a36Sopenharmony_ci#define EM2800_AUDIO_SRC_LINE 0x0c 26862306a36Sopenharmony_ci#define EM28XX_AUDIO_SRC_TUNER 0xc0 26962306a36Sopenharmony_ci#define EM28XX_AUDIO_SRC_LINE 0x80 27062306a36Sopenharmony_ci 27162306a36Sopenharmony_ci/* FIXME: Need to be populated with the other chip ID's */ 27262306a36Sopenharmony_cienum em28xx_chip_id { 27362306a36Sopenharmony_ci CHIP_ID_EM2800 = 7, 27462306a36Sopenharmony_ci CHIP_ID_EM2710 = 17, 27562306a36Sopenharmony_ci CHIP_ID_EM2820 = 18, /* Also used by some em2710 */ 27662306a36Sopenharmony_ci CHIP_ID_EM2840 = 20, 27762306a36Sopenharmony_ci CHIP_ID_EM2750 = 33, 27862306a36Sopenharmony_ci CHIP_ID_EM2860 = 34, 27962306a36Sopenharmony_ci CHIP_ID_EM2870 = 35, 28062306a36Sopenharmony_ci CHIP_ID_EM2883 = 36, 28162306a36Sopenharmony_ci CHIP_ID_EM2765 = 54, 28262306a36Sopenharmony_ci CHIP_ID_EM2874 = 65, 28362306a36Sopenharmony_ci CHIP_ID_EM2884 = 68, 28462306a36Sopenharmony_ci CHIP_ID_EM28174 = 113, 28562306a36Sopenharmony_ci CHIP_ID_EM28178 = 114, 28662306a36Sopenharmony_ci}; 28762306a36Sopenharmony_ci 28862306a36Sopenharmony_ci/* 28962306a36Sopenharmony_ci * Registers used by em202 29062306a36Sopenharmony_ci */ 29162306a36Sopenharmony_ci 29262306a36Sopenharmony_ci/* EMP202 vendor registers */ 29362306a36Sopenharmony_ci#define EM202_EXT_MODEM_CTRL 0x3e 29462306a36Sopenharmony_ci#define EM202_GPIO_CONF 0x4c 29562306a36Sopenharmony_ci#define EM202_GPIO_POLARITY 0x4e 29662306a36Sopenharmony_ci#define EM202_GPIO_STICKY 0x50 29762306a36Sopenharmony_ci#define EM202_GPIO_MASK 0x52 29862306a36Sopenharmony_ci#define EM202_GPIO_STATUS 0x54 29962306a36Sopenharmony_ci#define EM202_SPDIF_OUT_SEL 0x6a 30062306a36Sopenharmony_ci#define EM202_ANTIPOP 0x72 30162306a36Sopenharmony_ci#define EM202_EAPD_GPIO_ACCESS 0x74 302