18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Registers of Silicon Image SiI8620 Mobile HD Transmitter 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2015, Samsung Electronics Co., Ltd. 68c2ecf20Sopenharmony_ci * Andrzej Hajda <a.hajda@samsung.com> 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Based on MHL driver for Android devices. 98c2ecf20Sopenharmony_ci * Copyright (C) 2013-2014 Silicon Image, Inc. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef __SIL_SII8620_H__ 138c2ecf20Sopenharmony_ci#define __SIL_SII8620_H__ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* Vendor ID Low byte, default value: 0x01 */ 168c2ecf20Sopenharmony_ci#define REG_VND_IDL 0x0000 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* Vendor ID High byte, default value: 0x00 */ 198c2ecf20Sopenharmony_ci#define REG_VND_IDH 0x0001 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* Device ID Low byte, default value: 0x60 */ 228c2ecf20Sopenharmony_ci#define REG_DEV_IDL 0x0002 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* Device ID High byte, default value: 0x86 */ 258c2ecf20Sopenharmony_ci#define REG_DEV_IDH 0x0003 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci/* Device Revision, default value: 0x10 */ 288c2ecf20Sopenharmony_ci#define REG_DEV_REV 0x0004 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci/* OTP DBYTE510, default value: 0x00 */ 318c2ecf20Sopenharmony_ci#define REG_OTP_DBYTE510 0x0006 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* System Control #1, default value: 0x00 */ 348c2ecf20Sopenharmony_ci#define REG_SYS_CTRL1 0x0008 358c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_OTPVMUTEOVR_SET BIT(7) 368c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_VSYNCPIN BIT(6) 378c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_OTPADROPOVR_SET BIT(5) 388c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_BLOCK_DDC_BY_HPD BIT(4) 398c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_OTP2XVOVR_EN BIT(3) 408c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_OTP2XAOVR_EN BIT(2) 418c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_TX_CTRL_HDMI BIT(1) 428c2ecf20Sopenharmony_ci#define BIT_SYS_CTRL1_OTPAMUTEOVR_SET BIT(0) 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* System Control DPD, default value: 0x90 */ 458c2ecf20Sopenharmony_ci#define REG_DPD 0x000b 468c2ecf20Sopenharmony_ci#define BIT_DPD_PWRON_PLL BIT(7) 478c2ecf20Sopenharmony_ci#define BIT_DPD_PDNTX12 BIT(6) 488c2ecf20Sopenharmony_ci#define BIT_DPD_PDNRX12 BIT(5) 498c2ecf20Sopenharmony_ci#define BIT_DPD_OSC_EN BIT(4) 508c2ecf20Sopenharmony_ci#define BIT_DPD_PWRON_HSIC BIT(3) 518c2ecf20Sopenharmony_ci#define BIT_DPD_PDIDCK_N BIT(2) 528c2ecf20Sopenharmony_ci#define BIT_DPD_PD_MHL_CLK_N BIT(1) 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/* Dual link Control, default value: 0x00 */ 558c2ecf20Sopenharmony_ci#define REG_DCTL 0x000d 568c2ecf20Sopenharmony_ci#define BIT_DCTL_TDM_LCLK_PHASE BIT(7) 578c2ecf20Sopenharmony_ci#define BIT_DCTL_HSIC_CLK_PHASE BIT(6) 588c2ecf20Sopenharmony_ci#define BIT_DCTL_CTS_TCK_PHASE BIT(5) 598c2ecf20Sopenharmony_ci#define BIT_DCTL_EXT_DDC_SEL BIT(4) 608c2ecf20Sopenharmony_ci#define BIT_DCTL_TRANSCODE BIT(3) 618c2ecf20Sopenharmony_ci#define BIT_DCTL_HSIC_RX_STROBE_PHASE BIT(2) 628c2ecf20Sopenharmony_ci#define BIT_DCTL_HSIC_TX_BIST_START_SEL BIT(1) 638c2ecf20Sopenharmony_ci#define BIT_DCTL_TCLKNX_PHASE BIT(0) 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci/* PWD Software Reset, default value: 0x20 */ 668c2ecf20Sopenharmony_ci#define REG_PWD_SRST 0x000e 678c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_COC_DOC_RST BIT(7) 688c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_CBUS_RST_SW BIT(6) 698c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_CBUS_RST_SW_EN BIT(5) 708c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_MHLFIFO_RST BIT(4) 718c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_CBUS_RST BIT(3) 728c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_SW_RST_AUTO BIT(2) 738c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_HDCP2X_SW_RST BIT(1) 748c2ecf20Sopenharmony_ci#define BIT_PWD_SRST_SW_RST BIT(0) 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci/* AKSV_1, default value: 0x00 */ 778c2ecf20Sopenharmony_ci#define REG_AKSV_1 0x001d 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci/* Video H Resolution #1, default value: 0x00 */ 808c2ecf20Sopenharmony_ci#define REG_H_RESL 0x003a 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/* Video Mode, default value: 0x00 */ 838c2ecf20Sopenharmony_ci#define REG_VID_MODE 0x004a 848c2ecf20Sopenharmony_ci#define BIT_VID_MODE_M1080P BIT(6) 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci/* Video Input Mode, default value: 0xc0 */ 878c2ecf20Sopenharmony_ci#define REG_VID_OVRRD 0x0051 888c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_PP_AUTO_DISABLE BIT(7) 898c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_M1080P_OVRRD BIT(6) 908c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_MINIVSYNC_ON BIT(5) 918c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_3DCONV_EN_FRAME_PACK BIT(4) 928c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_ENABLE_AUTO_PATH_EN BIT(3) 938c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_ENRGB2YCBCR_OVRRD BIT(2) 948c2ecf20Sopenharmony_ci#define BIT_VID_OVRRD_ENDOWNSAMPLE_OVRRD BIT(0) 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci/* I2C Address reassignment, default value: 0x00 */ 978c2ecf20Sopenharmony_ci#define REG_PAGE_MHLSPEC_ADDR 0x0057 988c2ecf20Sopenharmony_ci#define REG_PAGE7_ADDR 0x0058 998c2ecf20Sopenharmony_ci#define REG_PAGE8_ADDR 0x005c 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci/* Fast Interrupt Status, default value: 0x00 */ 1028c2ecf20Sopenharmony_ci#define REG_FAST_INTR_STAT 0x005f 1038c2ecf20Sopenharmony_ci#define LEN_FAST_INTR_STAT 7 1048c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_TIMR 8 1058c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_INT2 9 1068c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_DDC 10 1078c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_SCDT 11 1088c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_INFR 13 1098c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_EDID 14 1108c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_HDCP 15 1118c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_MSC 16 1128c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_MERR 17 1138c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_G2WB 18 1148c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_G2WB_ERR 19 1158c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_DISC 28 1168c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_BLOCK 30 1178c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_LTRN 31 1188c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_HDCP2 32 1198c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_TDM 42 1208c2ecf20Sopenharmony_ci#define BIT_FAST_INTR_STAT_COC 51 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci/* GPIO Control, default value: 0x15 */ 1238c2ecf20Sopenharmony_ci#define REG_GPIO_CTRL1 0x006e 1248c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_I_8 BIT(5) 1258c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_OEN_8 BIT(4) 1268c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_I_7 BIT(3) 1278c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_OEN_7 BIT(2) 1288c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_I_6 BIT(1) 1298c2ecf20Sopenharmony_ci#define BIT_CTRL1_GPIO_OEN_6 BIT(0) 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci/* Interrupt Control, default value: 0x06 */ 1328c2ecf20Sopenharmony_ci#define REG_INT_CTRL 0x006f 1338c2ecf20Sopenharmony_ci#define BIT_INT_CTRL_SOFTWARE_WP BIT(7) 1348c2ecf20Sopenharmony_ci#define BIT_INT_CTRL_INTR_OD BIT(2) 1358c2ecf20Sopenharmony_ci#define BIT_INT_CTRL_INTR_POLARITY BIT(1) 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci/* Interrupt State, default value: 0x00 */ 1388c2ecf20Sopenharmony_ci#define REG_INTR_STATE 0x0070 1398c2ecf20Sopenharmony_ci#define BIT_INTR_STATE_INTR_STATE BIT(0) 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci/* Interrupt Source #1, default value: 0x00 */ 1428c2ecf20Sopenharmony_ci#define REG_INTR1 0x0071 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_ci/* Interrupt Source #2, default value: 0x00 */ 1458c2ecf20Sopenharmony_ci#define REG_INTR2 0x0072 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ci/* Interrupt Source #3, default value: 0x01 */ 1488c2ecf20Sopenharmony_ci#define REG_INTR3 0x0073 1498c2ecf20Sopenharmony_ci#define BIT_DDC_CMD_DONE BIT(3) 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci/* Interrupt Source #5, default value: 0x00 */ 1528c2ecf20Sopenharmony_ci#define REG_INTR5 0x0074 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci/* Interrupt #1 Mask, default value: 0x00 */ 1558c2ecf20Sopenharmony_ci#define REG_INTR1_MASK 0x0075 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_ci/* Interrupt #2 Mask, default value: 0x00 */ 1588c2ecf20Sopenharmony_ci#define REG_INTR2_MASK 0x0076 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci/* Interrupt #3 Mask, default value: 0x00 */ 1618c2ecf20Sopenharmony_ci#define REG_INTR3_MASK 0x0077 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci/* Interrupt #5 Mask, default value: 0x00 */ 1648c2ecf20Sopenharmony_ci#define REG_INTR5_MASK 0x0078 1658c2ecf20Sopenharmony_ci#define BIT_INTR_SCDT_CHANGE BIT(0) 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ci/* Hot Plug Connection Control, default value: 0x45 */ 1688c2ecf20Sopenharmony_ci#define REG_HPD_CTRL 0x0079 1698c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_HPD_DS_SIGNAL BIT(7) 1708c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_HPD_OUT_OD_EN BIT(6) 1718c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_HPD_HIGH BIT(5) 1728c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_HPD_OUT_OVR_EN BIT(4) 1738c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_GPIO_I_1 BIT(3) 1748c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_GPIO_OEN_1 BIT(2) 1758c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_GPIO_I_0 BIT(1) 1768c2ecf20Sopenharmony_ci#define BIT_HPD_CTRL_GPIO_OEN_0 BIT(0) 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ci/* GPIO Control, default value: 0x55 */ 1798c2ecf20Sopenharmony_ci#define REG_GPIO_CTRL 0x007a 1808c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_I_5 BIT(7) 1818c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_OEN_5 BIT(6) 1828c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_I_4 BIT(5) 1838c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_OEN_4 BIT(4) 1848c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_I_3 BIT(3) 1858c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_OEN_3 BIT(2) 1868c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_I_2 BIT(1) 1878c2ecf20Sopenharmony_ci#define BIT_CTRL_GPIO_OEN_2 BIT(0) 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci/* Interrupt Source 7, default value: 0x00 */ 1908c2ecf20Sopenharmony_ci#define REG_INTR7 0x007b 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci/* Interrupt Source 8, default value: 0x00 */ 1938c2ecf20Sopenharmony_ci#define REG_INTR8 0x007c 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci/* Interrupt #7 Mask, default value: 0x00 */ 1968c2ecf20Sopenharmony_ci#define REG_INTR7_MASK 0x007d 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ci/* Interrupt #8 Mask, default value: 0x00 */ 1998c2ecf20Sopenharmony_ci#define REG_INTR8_MASK 0x007e 2008c2ecf20Sopenharmony_ci#define BIT_CEA_NEW_VSI BIT(2) 2018c2ecf20Sopenharmony_ci#define BIT_CEA_NEW_AVI BIT(1) 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci/* IEEE, default value: 0x10 */ 2048c2ecf20Sopenharmony_ci#define REG_TMDS_CCTRL 0x0080 2058c2ecf20Sopenharmony_ci#define BIT_TMDS_CCTRL_TMDS_OE BIT(4) 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_ci/* TMDS Control #4, default value: 0x02 */ 2088c2ecf20Sopenharmony_ci#define REG_TMDS_CTRL4 0x0085 2098c2ecf20Sopenharmony_ci#define BIT_TMDS_CTRL4_SCDT_CKDT_SEL BIT(1) 2108c2ecf20Sopenharmony_ci#define BIT_TMDS_CTRL4_TX_EN_BY_SCDT BIT(0) 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci/* BIST CNTL, default value: 0x00 */ 2138c2ecf20Sopenharmony_ci#define REG_BIST_CTRL 0x00bb 2148c2ecf20Sopenharmony_ci#define BIT_RXBIST_VGB_EN BIT(7) 2158c2ecf20Sopenharmony_ci#define BIT_TXBIST_VGB_EN BIT(6) 2168c2ecf20Sopenharmony_ci#define BIT_BIST_START_SEL BIT(5) 2178c2ecf20Sopenharmony_ci#define BIT_BIST_START_BIT BIT(4) 2188c2ecf20Sopenharmony_ci#define BIT_BIST_ALWAYS_ON BIT(3) 2198c2ecf20Sopenharmony_ci#define BIT_BIST_TRANS BIT(2) 2208c2ecf20Sopenharmony_ci#define BIT_BIST_RESET BIT(1) 2218c2ecf20Sopenharmony_ci#define BIT_BIST_EN BIT(0) 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci/* BIST DURATION0, default value: 0x00 */ 2248c2ecf20Sopenharmony_ci#define REG_BIST_TEST_SEL 0x00bd 2258c2ecf20Sopenharmony_ci#define MSK_BIST_TEST_SEL_BIST_PATT_SEL 0x0f 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci/* BIST VIDEO_MODE, default value: 0x00 */ 2288c2ecf20Sopenharmony_ci#define REG_BIST_VIDEO_MODE 0x00be 2298c2ecf20Sopenharmony_ci#define MSK_BIST_VIDEO_MODE_BIST_VIDEO_MODE_3_0 0x0f 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci/* BIST DURATION0, default value: 0x00 */ 2328c2ecf20Sopenharmony_ci#define REG_BIST_DURATION_0 0x00bf 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ci/* BIST DURATION1, default value: 0x00 */ 2358c2ecf20Sopenharmony_ci#define REG_BIST_DURATION_1 0x00c0 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ci/* BIST DURATION2, default value: 0x00 */ 2388c2ecf20Sopenharmony_ci#define REG_BIST_DURATION_2 0x00c1 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_ci/* BIST 8BIT_PATTERN, default value: 0x00 */ 2418c2ecf20Sopenharmony_ci#define REG_BIST_8BIT_PATTERN 0x00c2 2428c2ecf20Sopenharmony_ci 2438c2ecf20Sopenharmony_ci/* LM DDC, default value: 0x80 */ 2448c2ecf20Sopenharmony_ci#define REG_LM_DDC 0x00c7 2458c2ecf20Sopenharmony_ci#define BIT_LM_DDC_SW_TPI_EN_DISABLED BIT(7) 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ci#define BIT_LM_DDC_VIDEO_MUTE_EN BIT(5) 2488c2ecf20Sopenharmony_ci#define BIT_LM_DDC_DDC_TPI_SW BIT(2) 2498c2ecf20Sopenharmony_ci#define BIT_LM_DDC_DDC_GRANT BIT(1) 2508c2ecf20Sopenharmony_ci#define BIT_LM_DDC_DDC_GPU_REQUEST BIT(0) 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci/* DDC I2C Manual, default value: 0x03 */ 2538c2ecf20Sopenharmony_ci#define REG_DDC_MANUAL 0x00ec 2548c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_MAN_DDC BIT(7) 2558c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_VP_SEL BIT(6) 2568c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_DSDA BIT(5) 2578c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_DSCL BIT(4) 2588c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_GCP_HW_CTL_EN BIT(3) 2598c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_DDCM_ABORT_WP BIT(2) 2608c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_IO_DSDA BIT(1) 2618c2ecf20Sopenharmony_ci#define BIT_DDC_MANUAL_IO_DSCL BIT(0) 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_ci/* DDC I2C Target Slave Address, default value: 0x00 */ 2648c2ecf20Sopenharmony_ci#define REG_DDC_ADDR 0x00ed 2658c2ecf20Sopenharmony_ci#define MSK_DDC_ADDR_DDC_ADDR 0xfe 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_ci/* DDC I2C Target Segment Address, default value: 0x00 */ 2688c2ecf20Sopenharmony_ci#define REG_DDC_SEGM 0x00ee 2698c2ecf20Sopenharmony_ci 2708c2ecf20Sopenharmony_ci/* DDC I2C Target Offset Address, default value: 0x00 */ 2718c2ecf20Sopenharmony_ci#define REG_DDC_OFFSET 0x00ef 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci/* DDC I2C Data In count #1, default value: 0x00 */ 2748c2ecf20Sopenharmony_ci#define REG_DDC_DIN_CNT1 0x00f0 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci/* DDC I2C Data In count #2, default value: 0x00 */ 2778c2ecf20Sopenharmony_ci#define REG_DDC_DIN_CNT2 0x00f1 2788c2ecf20Sopenharmony_ci#define MSK_DDC_DIN_CNT2_DDC_DIN_CNT_9_8 0x03 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci/* DDC I2C Status, default value: 0x04 */ 2818c2ecf20Sopenharmony_ci#define REG_DDC_STATUS 0x00f2 2828c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_BUS_LOW BIT(6) 2838c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_NO_ACK BIT(5) 2848c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_I2C_IN_PROG BIT(4) 2858c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_FIFO_FULL BIT(3) 2868c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_FIFO_EMPTY BIT(2) 2878c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_FIFO_READ_IN_SUE BIT(1) 2888c2ecf20Sopenharmony_ci#define BIT_DDC_STATUS_DDC_FIFO_WRITE_IN_USE BIT(0) 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_ci/* DDC I2C Command, default value: 0x70 */ 2918c2ecf20Sopenharmony_ci#define REG_DDC_CMD 0x00f3 2928c2ecf20Sopenharmony_ci#define BIT_DDC_CMD_HDCP_DDC_EN BIT(6) 2938c2ecf20Sopenharmony_ci#define BIT_DDC_CMD_SDA_DEL_EN BIT(5) 2948c2ecf20Sopenharmony_ci#define BIT_DDC_CMD_DDC_FLT_EN BIT(4) 2958c2ecf20Sopenharmony_ci 2968c2ecf20Sopenharmony_ci#define MSK_DDC_CMD_DDC_CMD 0x0f 2978c2ecf20Sopenharmony_ci#define VAL_DDC_CMD_ENH_DDC_READ_NO_ACK 0x04 2988c2ecf20Sopenharmony_ci#define VAL_DDC_CMD_DDC_CMD_CLEAR_FIFO 0x09 2998c2ecf20Sopenharmony_ci#define VAL_DDC_CMD_DDC_CMD_ABORT 0x0f 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci/* DDC I2C FIFO Data In/Out, default value: 0x00 */ 3028c2ecf20Sopenharmony_ci#define REG_DDC_DATA 0x00f4 3038c2ecf20Sopenharmony_ci 3048c2ecf20Sopenharmony_ci/* DDC I2C Data Out Counter, default value: 0x00 */ 3058c2ecf20Sopenharmony_ci#define REG_DDC_DOUT_CNT 0x00f5 3068c2ecf20Sopenharmony_ci#define BIT_DDC_DOUT_CNT_DDC_DELAY_CNT_8 BIT(7) 3078c2ecf20Sopenharmony_ci#define MSK_DDC_DOUT_CNT_DDC_DATA_OUT_CNT 0x1f 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci/* DDC I2C Delay Count, default value: 0x14 */ 3108c2ecf20Sopenharmony_ci#define REG_DDC_DELAY_CNT 0x00f6 3118c2ecf20Sopenharmony_ci 3128c2ecf20Sopenharmony_ci/* Test Control, default value: 0x80 */ 3138c2ecf20Sopenharmony_ci#define REG_TEST_TXCTRL 0x00f7 3148c2ecf20Sopenharmony_ci#define BIT_TEST_TXCTRL_RCLK_REF_SEL BIT(7) 3158c2ecf20Sopenharmony_ci#define BIT_TEST_TXCTRL_PCLK_REF_SEL BIT(6) 3168c2ecf20Sopenharmony_ci#define MSK_TEST_TXCTRL_BYPASS_PLL_CLK 0x3c 3178c2ecf20Sopenharmony_ci#define BIT_TEST_TXCTRL_HDMI_MODE BIT(1) 3188c2ecf20Sopenharmony_ci#define BIT_TEST_TXCTRL_TST_PLLCK BIT(0) 3198c2ecf20Sopenharmony_ci 3208c2ecf20Sopenharmony_ci/* CBUS Address, default value: 0x00 */ 3218c2ecf20Sopenharmony_ci#define REG_PAGE_CBUS_ADDR 0x00f8 3228c2ecf20Sopenharmony_ci 3238c2ecf20Sopenharmony_ci/* I2C Device Address re-assignment */ 3248c2ecf20Sopenharmony_ci#define REG_PAGE1_ADDR 0x00fc 3258c2ecf20Sopenharmony_ci#define REG_PAGE2_ADDR 0x00fd 3268c2ecf20Sopenharmony_ci#define REG_PAGE3_ADDR 0x00fe 3278c2ecf20Sopenharmony_ci#define REG_HW_TPI_ADDR 0x00ff 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_ci/* USBT CTRL0, default value: 0x00 */ 3308c2ecf20Sopenharmony_ci#define REG_UTSRST 0x0100 3318c2ecf20Sopenharmony_ci#define BIT_UTSRST_FC_SRST BIT(5) 3328c2ecf20Sopenharmony_ci#define BIT_UTSRST_KEEPER_SRST BIT(4) 3338c2ecf20Sopenharmony_ci#define BIT_UTSRST_HTX_SRST BIT(3) 3348c2ecf20Sopenharmony_ci#define BIT_UTSRST_TRX_SRST BIT(2) 3358c2ecf20Sopenharmony_ci#define BIT_UTSRST_TTX_SRST BIT(1) 3368c2ecf20Sopenharmony_ci#define BIT_UTSRST_HRX_SRST BIT(0) 3378c2ecf20Sopenharmony_ci 3388c2ecf20Sopenharmony_ci/* HSIC RX Control3, default value: 0x07 */ 3398c2ecf20Sopenharmony_ci#define REG_HRXCTRL3 0x0104 3408c2ecf20Sopenharmony_ci#define MSK_HRXCTRL3_HRX_AFFCTRL 0xf0 3418c2ecf20Sopenharmony_ci#define BIT_HRXCTRL3_HRX_OUT_EN BIT(2) 3428c2ecf20Sopenharmony_ci#define BIT_HRXCTRL3_STATUS_EN BIT(1) 3438c2ecf20Sopenharmony_ci#define BIT_HRXCTRL3_HRX_STAY_RESET BIT(0) 3448c2ecf20Sopenharmony_ci 3458c2ecf20Sopenharmony_ci/* HSIC RX INT Registers */ 3468c2ecf20Sopenharmony_ci#define REG_HRXINTL 0x0111 3478c2ecf20Sopenharmony_ci#define REG_HRXINTH 0x0112 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ci/* TDM TX NUMBITS, default value: 0x0c */ 3508c2ecf20Sopenharmony_ci#define REG_TTXNUMB 0x0116 3518c2ecf20Sopenharmony_ci#define MSK_TTXNUMB_TTX_AFFCTRL_3_0 0xf0 3528c2ecf20Sopenharmony_ci#define BIT_TTXNUMB_TTX_COM1_AT_SYNC_WAIT BIT(3) 3538c2ecf20Sopenharmony_ci#define MSK_TTXNUMB_TTX_NUMBPS 0x07 3548c2ecf20Sopenharmony_ci 3558c2ecf20Sopenharmony_ci/* TDM TX NUMSPISYM, default value: 0x04 */ 3568c2ecf20Sopenharmony_ci#define REG_TTXSPINUMS 0x0117 3578c2ecf20Sopenharmony_ci 3588c2ecf20Sopenharmony_ci/* TDM TX NUMHSICSYM, default value: 0x14 */ 3598c2ecf20Sopenharmony_ci#define REG_TTXHSICNUMS 0x0118 3608c2ecf20Sopenharmony_ci 3618c2ecf20Sopenharmony_ci/* TDM TX NUMTOTSYM, default value: 0x18 */ 3628c2ecf20Sopenharmony_ci#define REG_TTXTOTNUMS 0x0119 3638c2ecf20Sopenharmony_ci 3648c2ecf20Sopenharmony_ci/* TDM TX INT Low, default value: 0x00 */ 3658c2ecf20Sopenharmony_ci#define REG_TTXINTL 0x0136 3668c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR7 BIT(7) 3678c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR6 BIT(6) 3688c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR5 BIT(5) 3698c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR4 BIT(4) 3708c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR3 BIT(3) 3718c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR2 BIT(2) 3728c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR1 BIT(1) 3738c2ecf20Sopenharmony_ci#define BIT_TTXINTL_TTX_INTR0 BIT(0) 3748c2ecf20Sopenharmony_ci 3758c2ecf20Sopenharmony_ci/* TDM TX INT High, default value: 0x00 */ 3768c2ecf20Sopenharmony_ci#define REG_TTXINTH 0x0137 3778c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR15 BIT(7) 3788c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR14 BIT(6) 3798c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR13 BIT(5) 3808c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR12 BIT(4) 3818c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR11 BIT(3) 3828c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR10 BIT(2) 3838c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR9 BIT(1) 3848c2ecf20Sopenharmony_ci#define BIT_TTXINTH_TTX_INTR8 BIT(0) 3858c2ecf20Sopenharmony_ci 3868c2ecf20Sopenharmony_ci/* TDM RX Control, default value: 0x1c */ 3878c2ecf20Sopenharmony_ci#define REG_TRXCTRL 0x013b 3888c2ecf20Sopenharmony_ci#define BIT_TRXCTRL_TRX_CLR_WVALLOW BIT(4) 3898c2ecf20Sopenharmony_ci#define BIT_TRXCTRL_TRX_FROM_SE_COC BIT(3) 3908c2ecf20Sopenharmony_ci#define MSK_TRXCTRL_TRX_NUMBPS_2_0 0x07 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_ci/* TDM RX NUMSPISYM, default value: 0x04 */ 3938c2ecf20Sopenharmony_ci#define REG_TRXSPINUMS 0x013c 3948c2ecf20Sopenharmony_ci 3958c2ecf20Sopenharmony_ci/* TDM RX NUMHSICSYM, default value: 0x14 */ 3968c2ecf20Sopenharmony_ci#define REG_TRXHSICNUMS 0x013d 3978c2ecf20Sopenharmony_ci 3988c2ecf20Sopenharmony_ci/* TDM RX NUMTOTSYM, default value: 0x18 */ 3998c2ecf20Sopenharmony_ci#define REG_TRXTOTNUMS 0x013e 4008c2ecf20Sopenharmony_ci 4018c2ecf20Sopenharmony_ci/* TDM RX Status 2nd, default value: 0x00 */ 4028c2ecf20Sopenharmony_ci#define REG_TRXSTA2 0x015c 4038c2ecf20Sopenharmony_ci#define MSK_TDM_SYNCHRONIZED 0xc0 4048c2ecf20Sopenharmony_ci#define VAL_TDM_SYNCHRONIZED 0x80 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_ci/* TDM RX INT Low, default value: 0x00 */ 4078c2ecf20Sopenharmony_ci#define REG_TRXINTL 0x0163 4088c2ecf20Sopenharmony_ci 4098c2ecf20Sopenharmony_ci/* TDM RX INT High, default value: 0x00 */ 4108c2ecf20Sopenharmony_ci#define REG_TRXINTH 0x0164 4118c2ecf20Sopenharmony_ci#define BIT_TDM_INTR_SYNC_DATA BIT(0) 4128c2ecf20Sopenharmony_ci#define BIT_TDM_INTR_SYNC_WAIT BIT(1) 4138c2ecf20Sopenharmony_ci 4148c2ecf20Sopenharmony_ci/* TDM RX INTMASK High, default value: 0x00 */ 4158c2ecf20Sopenharmony_ci#define REG_TRXINTMH 0x0166 4168c2ecf20Sopenharmony_ci 4178c2ecf20Sopenharmony_ci/* HSIC TX CRTL, default value: 0x00 */ 4188c2ecf20Sopenharmony_ci#define REG_HTXCTRL 0x0169 4198c2ecf20Sopenharmony_ci#define BIT_HTXCTRL_HTX_ALLSBE_SOP BIT(4) 4208c2ecf20Sopenharmony_ci#define BIT_HTXCTRL_HTX_RGDINV_USB BIT(3) 4218c2ecf20Sopenharmony_ci#define BIT_HTXCTRL_HTX_RSPTDM_BUSY BIT(2) 4228c2ecf20Sopenharmony_ci#define BIT_HTXCTRL_HTX_DRVCONN1 BIT(1) 4238c2ecf20Sopenharmony_ci#define BIT_HTXCTRL_HTX_DRVRST1 BIT(0) 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci/* HSIC TX INT Low, default value: 0x00 */ 4268c2ecf20Sopenharmony_ci#define REG_HTXINTL 0x017d 4278c2ecf20Sopenharmony_ci 4288c2ecf20Sopenharmony_ci/* HSIC TX INT High, default value: 0x00 */ 4298c2ecf20Sopenharmony_ci#define REG_HTXINTH 0x017e 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_ci/* HSIC Keeper, default value: 0x00 */ 4328c2ecf20Sopenharmony_ci#define REG_KEEPER 0x0181 4338c2ecf20Sopenharmony_ci#define MSK_KEEPER_MODE 0x03 4348c2ecf20Sopenharmony_ci#define VAL_KEEPER_MODE_HOST 0 4358c2ecf20Sopenharmony_ci#define VAL_KEEPER_MODE_DEVICE 2 4368c2ecf20Sopenharmony_ci 4378c2ecf20Sopenharmony_ci/* HSIC Flow Control General, default value: 0x02 */ 4388c2ecf20Sopenharmony_ci#define REG_FCGC 0x0183 4398c2ecf20Sopenharmony_ci#define BIT_FCGC_HSIC_HOSTMODE BIT(1) 4408c2ecf20Sopenharmony_ci#define BIT_FCGC_HSIC_ENABLE BIT(0) 4418c2ecf20Sopenharmony_ci 4428c2ecf20Sopenharmony_ci/* HSIC Flow Control CTR13, default value: 0xfc */ 4438c2ecf20Sopenharmony_ci#define REG_FCCTR13 0x0191 4448c2ecf20Sopenharmony_ci 4458c2ecf20Sopenharmony_ci/* HSIC Flow Control CTR14, default value: 0xff */ 4468c2ecf20Sopenharmony_ci#define REG_FCCTR14 0x0192 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci/* HSIC Flow Control CTR15, default value: 0xff */ 4498c2ecf20Sopenharmony_ci#define REG_FCCTR15 0x0193 4508c2ecf20Sopenharmony_ci 4518c2ecf20Sopenharmony_ci/* HSIC Flow Control CTR50, default value: 0x03 */ 4528c2ecf20Sopenharmony_ci#define REG_FCCTR50 0x01b6 4538c2ecf20Sopenharmony_ci 4548c2ecf20Sopenharmony_ci/* HSIC Flow Control INTR0, default value: 0x00 */ 4558c2ecf20Sopenharmony_ci#define REG_FCINTR0 0x01ec 4568c2ecf20Sopenharmony_ci#define REG_FCINTR1 0x01ed 4578c2ecf20Sopenharmony_ci#define REG_FCINTR2 0x01ee 4588c2ecf20Sopenharmony_ci#define REG_FCINTR3 0x01ef 4598c2ecf20Sopenharmony_ci#define REG_FCINTR4 0x01f0 4608c2ecf20Sopenharmony_ci#define REG_FCINTR5 0x01f1 4618c2ecf20Sopenharmony_ci#define REG_FCINTR6 0x01f2 4628c2ecf20Sopenharmony_ci#define REG_FCINTR7 0x01f3 4638c2ecf20Sopenharmony_ci 4648c2ecf20Sopenharmony_ci/* TDM Low Latency, default value: 0x20 */ 4658c2ecf20Sopenharmony_ci#define REG_TDMLLCTL 0x01fc 4668c2ecf20Sopenharmony_ci#define MSK_TDMLLCTL_TRX_LL_SEL_MANUAL 0xc0 4678c2ecf20Sopenharmony_ci#define MSK_TDMLLCTL_TRX_LL_SEL_MODE 0x30 4688c2ecf20Sopenharmony_ci#define MSK_TDMLLCTL_TTX_LL_SEL_MANUAL 0x0c 4698c2ecf20Sopenharmony_ci#define BIT_TDMLLCTL_TTX_LL_TIE_LOW BIT(1) 4708c2ecf20Sopenharmony_ci#define BIT_TDMLLCTL_TTX_LL_SEL_MODE BIT(0) 4718c2ecf20Sopenharmony_ci 4728c2ecf20Sopenharmony_ci/* TMDS 0 Clock Control, default value: 0x10 */ 4738c2ecf20Sopenharmony_ci#define REG_TMDS0_CCTRL1 0x0210 4748c2ecf20Sopenharmony_ci#define MSK_TMDS0_CCTRL1_TEST_SEL 0xc0 4758c2ecf20Sopenharmony_ci#define MSK_TMDS0_CCTRL1_CLK1X_CTL 0x30 4768c2ecf20Sopenharmony_ci 4778c2ecf20Sopenharmony_ci/* TMDS Clock Enable, default value: 0x00 */ 4788c2ecf20Sopenharmony_ci#define REG_TMDS_CLK_EN 0x0211 4798c2ecf20Sopenharmony_ci#define BIT_TMDS_CLK_EN_CLK_EN BIT(0) 4808c2ecf20Sopenharmony_ci 4818c2ecf20Sopenharmony_ci/* TMDS Channel Enable, default value: 0x00 */ 4828c2ecf20Sopenharmony_ci#define REG_TMDS_CH_EN 0x0212 4838c2ecf20Sopenharmony_ci#define BIT_TMDS_CH_EN_CH0_EN BIT(4) 4848c2ecf20Sopenharmony_ci#define BIT_TMDS_CH_EN_CH12_EN BIT(0) 4858c2ecf20Sopenharmony_ci 4868c2ecf20Sopenharmony_ci/* BGR_BIAS, default value: 0x07 */ 4878c2ecf20Sopenharmony_ci#define REG_BGR_BIAS 0x0215 4888c2ecf20Sopenharmony_ci#define BIT_BGR_BIAS_BGR_EN BIT(7) 4898c2ecf20Sopenharmony_ci#define MSK_BGR_BIAS_BIAS_BGR_D 0x0f 4908c2ecf20Sopenharmony_ci 4918c2ecf20Sopenharmony_ci/* TMDS 0 Digital I2C BW, default value: 0x0a */ 4928c2ecf20Sopenharmony_ci#define REG_ALICE0_BW_I2C 0x0231 4938c2ecf20Sopenharmony_ci 4948c2ecf20Sopenharmony_ci/* TMDS 0 Digital Zone Control, default value: 0xe0 */ 4958c2ecf20Sopenharmony_ci#define REG_ALICE0_ZONE_CTRL 0x024c 4968c2ecf20Sopenharmony_ci#define BIT_ALICE0_ZONE_CTRL_ICRST_N BIT(7) 4978c2ecf20Sopenharmony_ci#define BIT_ALICE0_ZONE_CTRL_USE_INT_DIV20 BIT(6) 4988c2ecf20Sopenharmony_ci#define MSK_ALICE0_ZONE_CTRL_SZONE_I2C 0x30 4998c2ecf20Sopenharmony_ci#define MSK_ALICE0_ZONE_CTRL_ZONE_CTRL 0x0f 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_ci/* TMDS 0 Digital PLL Mode Control, default value: 0x00 */ 5028c2ecf20Sopenharmony_ci#define REG_ALICE0_MODE_CTRL 0x024d 5038c2ecf20Sopenharmony_ci#define MSK_ALICE0_MODE_CTRL_PLL_MODE_I2C 0x0c 5048c2ecf20Sopenharmony_ci#define MSK_ALICE0_MODE_CTRL_DIV20_CTRL 0x03 5058c2ecf20Sopenharmony_ci 5068c2ecf20Sopenharmony_ci/* MHL Tx Control 6th, default value: 0xa0 */ 5078c2ecf20Sopenharmony_ci#define REG_MHLTX_CTL6 0x0285 5088c2ecf20Sopenharmony_ci#define MSK_MHLTX_CTL6_EMI_SEL 0xe0 5098c2ecf20Sopenharmony_ci#define MSK_MHLTX_CTL6_TX_CLK_SHAPE_9_8 0x03 5108c2ecf20Sopenharmony_ci 5118c2ecf20Sopenharmony_ci/* Packet Filter0, default value: 0x00 */ 5128c2ecf20Sopenharmony_ci#define REG_PKT_FILTER_0 0x0290 5138c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT BIT(7) 5148c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_CEA_CP_PKT BIT(6) 5158c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_MPEG_PKT BIT(5) 5168c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_SPIF_PKT BIT(4) 5178c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_AIF_PKT BIT(3) 5188c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_AVI_PKT BIT(2) 5198c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_CTS_PKT BIT(1) 5208c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_0_DROP_GCP_PKT BIT(0) 5218c2ecf20Sopenharmony_ci 5228c2ecf20Sopenharmony_ci/* Packet Filter1, default value: 0x00 */ 5238c2ecf20Sopenharmony_ci#define REG_PKT_FILTER_1 0x0291 5248c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS BIT(7) 5258c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_AVI_OVERRIDE_DIS BIT(6) 5268c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_DROP_AUDIO_PKT BIT(3) 5278c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_DROP_GEN2_PKT BIT(2) 5288c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_DROP_GEN_PKT BIT(1) 5298c2ecf20Sopenharmony_ci#define BIT_PKT_FILTER_1_DROP_VSIF_PKT BIT(0) 5308c2ecf20Sopenharmony_ci 5318c2ecf20Sopenharmony_ci/* TMDS Clock Status, default value: 0x10 */ 5328c2ecf20Sopenharmony_ci#define REG_TMDS_CSTAT_P3 0x02a0 5338c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_RX_HDMI_CP_CLR_MUTE BIT(7) 5348c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_RX_HDMI_CP_SET_MUTE BIT(6) 5358c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_RX_HDMI_CP_NEW_CP BIT(5) 5368c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_CLR_AVI BIT(3) 5378c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_SCDT_CLR_AVI_DIS BIT(2) 5388c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_SCDT BIT(1) 5398c2ecf20Sopenharmony_ci#define BIT_TMDS_CSTAT_P3_CKDT BIT(0) 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_ci/* RX_HDMI Control, default value: 0x10 */ 5428c2ecf20Sopenharmony_ci#define REG_RX_HDMI_CTRL0 0x02a1 5438c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_BYP_DVIFILT_SYNC BIT(5) 5448c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_HDMI_MODE_EN_ITSELF_CLR BIT(4) 5458c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_HDMI_MODE_SW_VALUE BIT(3) 5468c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_HDMI_MODE_OVERWRITE BIT(2) 5478c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_RX_HDMI_HDMI_MODE_EN BIT(1) 5488c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL0_RX_HDMI_HDMI_MODE BIT(0) 5498c2ecf20Sopenharmony_ci 5508c2ecf20Sopenharmony_ci/* RX_HDMI Control, default value: 0x38 */ 5518c2ecf20Sopenharmony_ci#define REG_RX_HDMI_CTRL2 0x02a3 5528c2ecf20Sopenharmony_ci#define MSK_RX_HDMI_CTRL2_IDLE_CNT 0xf0 5538c2ecf20Sopenharmony_ci#define VAL_RX_HDMI_CTRL2_IDLE_CNT(n) ((n) << 4) 5548c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL2_USE_AV_MUTE BIT(3) 5558c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CTRL2_VSI_MON_SEL_VSI BIT(0) 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_ci/* RX_HDMI Control, default value: 0x0f */ 5588c2ecf20Sopenharmony_ci#define REG_RX_HDMI_CTRL3 0x02a4 5598c2ecf20Sopenharmony_ci#define MSK_RX_HDMI_CTRL3_PP_MODE_CLK_EN 0x0f 5608c2ecf20Sopenharmony_ci 5618c2ecf20Sopenharmony_ci/* rx_hdmi Clear Buffer, default value: 0x00 */ 5628c2ecf20Sopenharmony_ci#define REG_RX_HDMI_CLR_BUFFER 0x02ac 5638c2ecf20Sopenharmony_ci#define MSK_RX_HDMI_CLR_BUFFER_AIF4VSI_CMP 0xc0 5648c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_USE_AIF4VSI BIT(5) 5658c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_VSI_CLR_W_AVI BIT(4) 5668c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_VSI_IEEE_ID_CHK_EN BIT(3) 5678c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_SWAP_VSI_IEEE_ID BIT(2) 5688c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_AIF_CLR_EN BIT(1) 5698c2ecf20Sopenharmony_ci#define BIT_RX_HDMI_CLR_BUFFER_VSI_CLR_EN BIT(0) 5708c2ecf20Sopenharmony_ci 5718c2ecf20Sopenharmony_ci/* RX_HDMI VSI Header1, default value: 0x00 */ 5728c2ecf20Sopenharmony_ci#define REG_RX_HDMI_MON_PKT_HEADER1 0x02b8 5738c2ecf20Sopenharmony_ci 5748c2ecf20Sopenharmony_ci/* RX_HDMI VSI MHL Monitor, default value: 0x3c */ 5758c2ecf20Sopenharmony_ci#define REG_RX_HDMI_VSIF_MHL_MON 0x02d7 5768c2ecf20Sopenharmony_ci 5778c2ecf20Sopenharmony_ci#define MSK_RX_HDMI_VSIF_MHL_MON_RX_HDMI_MHL_3D_FORMAT 0x3c 5788c2ecf20Sopenharmony_ci#define MSK_RX_HDMI_VSIF_MHL_MON_RX_HDMI_MHL_VID_FORMAT 0x03 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_ci/* Interrupt Source 9, default value: 0x00 */ 5818c2ecf20Sopenharmony_ci#define REG_INTR9 0x02e0 5828c2ecf20Sopenharmony_ci#define BIT_INTR9_EDID_ERROR BIT(6) 5838c2ecf20Sopenharmony_ci#define BIT_INTR9_EDID_DONE BIT(5) 5848c2ecf20Sopenharmony_ci#define BIT_INTR9_DEVCAP_DONE BIT(4) 5858c2ecf20Sopenharmony_ci 5868c2ecf20Sopenharmony_ci/* Interrupt 9 Mask, default value: 0x00 */ 5878c2ecf20Sopenharmony_ci#define REG_INTR9_MASK 0x02e1 5888c2ecf20Sopenharmony_ci 5898c2ecf20Sopenharmony_ci/* TPI CBUS Start, default value: 0x00 */ 5908c2ecf20Sopenharmony_ci#define REG_TPI_CBUS_START 0x02e2 5918c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_RCP_REQ_START BIT(7) 5928c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_RCPK_REPLY_START BIT(6) 5938c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_RCPE_REPLY_START BIT(5) 5948c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_PUT_LINK_MODE_START BIT(4) 5958c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_PUT_DCAPCHG_START BIT(3) 5968c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_PUT_DCAPRDY_START BIT(2) 5978c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_GET_EDID_START_0 BIT(1) 5988c2ecf20Sopenharmony_ci#define BIT_TPI_CBUS_START_GET_DEVCAP_START BIT(0) 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_ci/* EDID Control, default value: 0x10 */ 6018c2ecf20Sopenharmony_ci#define REG_EDID_CTRL 0x02e3 6028c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_EDID_PRIME_VALID BIT(7) 6038c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_XDEVCAP_EN BIT(6) 6048c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_DEVCAP_SELECT_DEVCAP BIT(5) 6058c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_EDID_FIFO_ADDR_AUTO BIT(4) 6068c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_EDID_FIFO_ACCESS_ALWAYS_EN BIT(3) 6078c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_EDID_FIFO_BLOCK_SEL BIT(2) 6088c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_INVALID_BKSV BIT(1) 6098c2ecf20Sopenharmony_ci#define BIT_EDID_CTRL_EDID_MODE_EN BIT(0) 6108c2ecf20Sopenharmony_ci 6118c2ecf20Sopenharmony_ci/* EDID FIFO Addr, default value: 0x00 */ 6128c2ecf20Sopenharmony_ci#define REG_EDID_FIFO_ADDR 0x02e9 6138c2ecf20Sopenharmony_ci 6148c2ecf20Sopenharmony_ci/* EDID FIFO Write Data, default value: 0x00 */ 6158c2ecf20Sopenharmony_ci#define REG_EDID_FIFO_WR_DATA 0x02ea 6168c2ecf20Sopenharmony_ci 6178c2ecf20Sopenharmony_ci/* EDID/DEVCAP FIFO Internal Addr, default value: 0x00 */ 6188c2ecf20Sopenharmony_ci#define REG_EDID_FIFO_ADDR_MON 0x02eb 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_ci/* EDID FIFO Read Data, default value: 0x00 */ 6218c2ecf20Sopenharmony_ci#define REG_EDID_FIFO_RD_DATA 0x02ec 6228c2ecf20Sopenharmony_ci 6238c2ecf20Sopenharmony_ci/* EDID DDC Segment Pointer, default value: 0x00 */ 6248c2ecf20Sopenharmony_ci#define REG_EDID_START_EXT 0x02ed 6258c2ecf20Sopenharmony_ci 6268c2ecf20Sopenharmony_ci/* TX IP BIST CNTL and Status, default value: 0x00 */ 6278c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_CNTLSTA 0x02f2 6288c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_QUARTER_CLK_SEL BIT(6) 6298c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_DONE BIT(5) 6308c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_ON BIT(4) 6318c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_RUN BIT(3) 6328c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXCLK_HALF_SEL BIT(2) 6338c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_EN BIT(1) 6348c2ecf20Sopenharmony_ci#define BIT_TX_IP_BIST_CNTLSTA_TXBIST_SEL BIT(0) 6358c2ecf20Sopenharmony_ci 6368c2ecf20Sopenharmony_ci/* TX IP BIST INST LOW, default value: 0x00 */ 6378c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_INST_LOW 0x02f3 6388c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_INST_HIGH 0x02f4 6398c2ecf20Sopenharmony_ci 6408c2ecf20Sopenharmony_ci/* TX IP BIST PATTERN LOW, default value: 0x00 */ 6418c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_PAT_LOW 0x02f5 6428c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_PAT_HIGH 0x02f6 6438c2ecf20Sopenharmony_ci 6448c2ecf20Sopenharmony_ci/* TX IP BIST CONFIGURE LOW, default value: 0x00 */ 6458c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_CONF_LOW 0x02f7 6468c2ecf20Sopenharmony_ci#define REG_TX_IP_BIST_CONF_HIGH 0x02f8 6478c2ecf20Sopenharmony_ci 6488c2ecf20Sopenharmony_ci/* E-MSC General Control, default value: 0x80 */ 6498c2ecf20Sopenharmony_ci#define REG_GENCTL 0x0300 6508c2ecf20Sopenharmony_ci#define BIT_GENCTL_SPEC_TRANS_DIS BIT(7) 6518c2ecf20Sopenharmony_ci#define BIT_GENCTL_DIS_XMIT_ERR_STATE BIT(6) 6528c2ecf20Sopenharmony_ci#define BIT_GENCTL_SPI_MISO_EDGE BIT(5) 6538c2ecf20Sopenharmony_ci#define BIT_GENCTL_SPI_MOSI_EDGE BIT(4) 6548c2ecf20Sopenharmony_ci#define BIT_GENCTL_CLR_EMSC_RFIFO BIT(3) 6558c2ecf20Sopenharmony_ci#define BIT_GENCTL_CLR_EMSC_XFIFO BIT(2) 6568c2ecf20Sopenharmony_ci#define BIT_GENCTL_START_TRAIN_SEQ BIT(1) 6578c2ecf20Sopenharmony_ci#define BIT_GENCTL_EMSC_EN BIT(0) 6588c2ecf20Sopenharmony_ci 6598c2ecf20Sopenharmony_ci/* E-MSC Comma ErrorCNT, default value: 0x03 */ 6608c2ecf20Sopenharmony_ci#define REG_COMMECNT 0x0305 6618c2ecf20Sopenharmony_ci#define BIT_COMMECNT_I2C_TO_EMSC_EN BIT(7) 6628c2ecf20Sopenharmony_ci#define MSK_COMMECNT_COMMA_CHAR_ERR_CNT 0x0f 6638c2ecf20Sopenharmony_ci 6648c2ecf20Sopenharmony_ci/* E-MSC RFIFO ByteCnt, default value: 0x00 */ 6658c2ecf20Sopenharmony_ci#define REG_EMSCRFIFOBCNTL 0x031a 6668c2ecf20Sopenharmony_ci#define REG_EMSCRFIFOBCNTH 0x031b 6678c2ecf20Sopenharmony_ci 6688c2ecf20Sopenharmony_ci/* SPI Burst Cnt Status, default value: 0x00 */ 6698c2ecf20Sopenharmony_ci#define REG_SPIBURSTCNT 0x031e 6708c2ecf20Sopenharmony_ci 6718c2ecf20Sopenharmony_ci/* SPI Burst Status and SWRST, default value: 0x00 */ 6728c2ecf20Sopenharmony_ci#define REG_SPIBURSTSTAT 0x0322 6738c2ecf20Sopenharmony_ci#define BIT_SPIBURSTSTAT_SPI_HDCPRST BIT(7) 6748c2ecf20Sopenharmony_ci#define BIT_SPIBURSTSTAT_SPI_CBUSRST BIT(6) 6758c2ecf20Sopenharmony_ci#define BIT_SPIBURSTSTAT_SPI_SRST BIT(5) 6768c2ecf20Sopenharmony_ci#define BIT_SPIBURSTSTAT_EMSC_NORMAL_MODE BIT(0) 6778c2ecf20Sopenharmony_ci 6788c2ecf20Sopenharmony_ci/* E-MSC 1st Interrupt, default value: 0x00 */ 6798c2ecf20Sopenharmony_ci#define REG_EMSCINTR 0x0323 6808c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_XFIFO_EMPTY BIT(7) 6818c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_XMIT_ACK_TOUT BIT(6) 6828c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_RFIFO_READ_ERR BIT(5) 6838c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_XFIFO_WRITE_ERR BIT(4) 6848c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_COMMA_CHAR_ERR BIT(3) 6858c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_XMIT_DONE BIT(2) 6868c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_EMSC_XMIT_GNT_TOUT BIT(1) 6878c2ecf20Sopenharmony_ci#define BIT_EMSCINTR_SPI_DVLD BIT(0) 6888c2ecf20Sopenharmony_ci 6898c2ecf20Sopenharmony_ci/* E-MSC Interrupt Mask, default value: 0x00 */ 6908c2ecf20Sopenharmony_ci#define REG_EMSCINTRMASK 0x0324 6918c2ecf20Sopenharmony_ci 6928c2ecf20Sopenharmony_ci/* I2C E-MSC XMIT FIFO Write Port, default value: 0x00 */ 6938c2ecf20Sopenharmony_ci#define REG_EMSC_XMIT_WRITE_PORT 0x032a 6948c2ecf20Sopenharmony_ci 6958c2ecf20Sopenharmony_ci/* I2C E-MSC RCV FIFO Write Port, default value: 0x00 */ 6968c2ecf20Sopenharmony_ci#define REG_EMSC_RCV_READ_PORT 0x032b 6978c2ecf20Sopenharmony_ci 6988c2ecf20Sopenharmony_ci/* E-MSC 2nd Interrupt, default value: 0x00 */ 6998c2ecf20Sopenharmony_ci#define REG_EMSCINTR1 0x032c 7008c2ecf20Sopenharmony_ci#define BIT_EMSCINTR1_EMSC_TRAINING_COMMA_ERR BIT(0) 7018c2ecf20Sopenharmony_ci 7028c2ecf20Sopenharmony_ci/* E-MSC Interrupt Mask, default value: 0x00 */ 7038c2ecf20Sopenharmony_ci#define REG_EMSCINTRMASK1 0x032d 7048c2ecf20Sopenharmony_ci#define BIT_EMSCINTRMASK1_EMSC_INTRMASK1_0 BIT(0) 7058c2ecf20Sopenharmony_ci 7068c2ecf20Sopenharmony_ci/* MHL Top Ctl, default value: 0x00 */ 7078c2ecf20Sopenharmony_ci#define REG_MHL_TOP_CTL 0x0330 7088c2ecf20Sopenharmony_ci#define BIT_MHL_TOP_CTL_MHL3_DOC_SEL BIT(7) 7098c2ecf20Sopenharmony_ci#define BIT_MHL_TOP_CTL_MHL_PP_SEL BIT(6) 7108c2ecf20Sopenharmony_ci#define MSK_MHL_TOP_CTL_IF_TIMING_CTL 0x03 7118c2ecf20Sopenharmony_ci 7128c2ecf20Sopenharmony_ci/* MHL DataPath 1st Ctl, default value: 0xbc */ 7138c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL0 0x0331 7148c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL0_DP_OE BIT(7) 7158c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL0_TX_OE_OVR BIT(6) 7168c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL0_TX_OE 0x3f 7178c2ecf20Sopenharmony_ci 7188c2ecf20Sopenharmony_ci/* MHL DataPath 2nd Ctl, default value: 0xbb */ 7198c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL1 0x0332 7208c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL1_CK_SWING_CTL 0xf0 7218c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL1_DT_SWING_CTL 0x0f 7228c2ecf20Sopenharmony_ci 7238c2ecf20Sopenharmony_ci/* MHL DataPath 3rd Ctl, default value: 0x2f */ 7248c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL2 0x0333 7258c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL2_CLK_BYPASS_EN BIT(7) 7268c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL2_DAMP_TERM_SEL 0x30 7278c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL2_CK_TERM_SEL 0x0c 7288c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL2_DT_TERM_SEL 0x03 7298c2ecf20Sopenharmony_ci 7308c2ecf20Sopenharmony_ci/* MHL DataPath 4th Ctl, default value: 0x48 */ 7318c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL3 0x0334 7328c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL3_DT_DRV_VNBC_CTL 0xf0 7338c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL3_DT_DRV_VNB_CTL 0x0f 7348c2ecf20Sopenharmony_ci 7358c2ecf20Sopenharmony_ci/* MHL DataPath 5th Ctl, default value: 0x48 */ 7368c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL4 0x0335 7378c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL4_CK_DRV_VNBC_CTL 0xf0 7388c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL4_CK_DRV_VNB_CTL 0x0f 7398c2ecf20Sopenharmony_ci 7408c2ecf20Sopenharmony_ci/* MHL DataPath 6th Ctl, default value: 0x3f */ 7418c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL5 0x0336 7428c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL5_RSEN_EN_OVR BIT(7) 7438c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL5_RSEN_EN BIT(6) 7448c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL5_DAMP_TERM_VGS_CTL 0x30 7458c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL5_CK_TERM_VGS_CTL 0x0c 7468c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL5_DT_TERM_VGS_CTL 0x03 7478c2ecf20Sopenharmony_ci 7488c2ecf20Sopenharmony_ci/* MHL PLL 1st Ctl, default value: 0x05 */ 7498c2ecf20Sopenharmony_ci#define REG_MHL_PLL_CTL0 0x0337 7508c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL0_AUD_CLK_EN BIT(7) 7518c2ecf20Sopenharmony_ci 7528c2ecf20Sopenharmony_ci#define MSK_MHL_PLL_CTL0_AUD_CLK_RATIO 0x70 7538c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_10 0x70 7548c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_6 0x60 7558c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_4 0x50 7568c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_2 0x40 7578c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_5 0x30 7588c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_3 0x20 7598c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_2_PRIME 0x10 7608c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_AUD_CLK_RATIO_5_1 0x00 7618c2ecf20Sopenharmony_ci 7628c2ecf20Sopenharmony_ci#define MSK_MHL_PLL_CTL0_HDMI_CLK_RATIO 0x0c 7638c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_HDMI_CLK_RATIO_4X 0x0c 7648c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_HDMI_CLK_RATIO_2X 0x08 7658c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_HDMI_CLK_RATIO_1X 0x04 7668c2ecf20Sopenharmony_ci#define VAL_MHL_PLL_CTL0_HDMI_CLK_RATIO_HALF_X 0x00 7678c2ecf20Sopenharmony_ci 7688c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL0_CRYSTAL_CLK_SEL BIT(1) 7698c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL0_ZONE_MASK_OE BIT(0) 7708c2ecf20Sopenharmony_ci 7718c2ecf20Sopenharmony_ci/* MHL PLL 3rd Ctl, default value: 0x80 */ 7728c2ecf20Sopenharmony_ci#define REG_MHL_PLL_CTL2 0x0339 7738c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL2_CLKDETECT_EN BIT(7) 7748c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL2_MEAS_FVCO BIT(3) 7758c2ecf20Sopenharmony_ci#define BIT_MHL_PLL_CTL2_PLL_FAST_LOCK BIT(2) 7768c2ecf20Sopenharmony_ci#define MSK_MHL_PLL_CTL2_PLL_LF_SEL 0x03 7778c2ecf20Sopenharmony_ci 7788c2ecf20Sopenharmony_ci/* MHL CBUS 1st Ctl, default value: 0x12 */ 7798c2ecf20Sopenharmony_ci#define REG_MHL_CBUS_CTL0 0x0340 7808c2ecf20Sopenharmony_ci#define BIT_MHL_CBUS_CTL0_CBUS_RGND_TEST_MODE BIT(7) 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_ci#define MSK_MHL_CBUS_CTL0_CBUS_RGND_VTH_CTL 0x30 7838c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_RGND_VBIAS_734 0x00 7848c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_RGND_VBIAS_747 0x10 7858c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_RGND_VBIAS_740 0x20 7868c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_RGND_VBIAS_754 0x30 7878c2ecf20Sopenharmony_ci 7888c2ecf20Sopenharmony_ci#define MSK_MHL_CBUS_CTL0_CBUS_RES_TEST_SEL 0x0c 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_ci#define MSK_MHL_CBUS_CTL0_CBUS_DRV_SEL 0x03 7918c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_DRV_SEL_WEAKEST 0x00 7928c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_DRV_SEL_WEAK 0x01 7938c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_DRV_SEL_STRONG 0x02 7948c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL0_CBUS_DRV_SEL_STRONGEST 0x03 7958c2ecf20Sopenharmony_ci 7968c2ecf20Sopenharmony_ci/* MHL CBUS 2nd Ctl, default value: 0x03 */ 7978c2ecf20Sopenharmony_ci#define REG_MHL_CBUS_CTL1 0x0341 7988c2ecf20Sopenharmony_ci#define MSK_MHL_CBUS_CTL1_CBUS_RGND_RES_CTL 0x07 7998c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL1_0888_OHM 0x00 8008c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL1_1115_OHM 0x04 8018c2ecf20Sopenharmony_ci#define VAL_MHL_CBUS_CTL1_1378_OHM 0x07 8028c2ecf20Sopenharmony_ci 8038c2ecf20Sopenharmony_ci/* MHL CoC 1st Ctl, default value: 0xc3 */ 8048c2ecf20Sopenharmony_ci#define REG_MHL_COC_CTL0 0x0342 8058c2ecf20Sopenharmony_ci#define BIT_MHL_COC_CTL0_COC_BIAS_EN BIT(7) 8068c2ecf20Sopenharmony_ci#define MSK_MHL_COC_CTL0_COC_BIAS_CTL 0x70 8078c2ecf20Sopenharmony_ci#define MSK_MHL_COC_CTL0_COC_TERM_CTL 0x07 8088c2ecf20Sopenharmony_ci 8098c2ecf20Sopenharmony_ci/* MHL CoC 2nd Ctl, default value: 0x87 */ 8108c2ecf20Sopenharmony_ci#define REG_MHL_COC_CTL1 0x0343 8118c2ecf20Sopenharmony_ci#define BIT_MHL_COC_CTL1_COC_EN BIT(7) 8128c2ecf20Sopenharmony_ci#define MSK_MHL_COC_CTL1_COC_DRV_CTL 0x3f 8138c2ecf20Sopenharmony_ci 8148c2ecf20Sopenharmony_ci/* MHL CoC 4th Ctl, default value: 0x00 */ 8158c2ecf20Sopenharmony_ci#define REG_MHL_COC_CTL3 0x0345 8168c2ecf20Sopenharmony_ci#define BIT_MHL_COC_CTL3_COC_AECHO_EN BIT(0) 8178c2ecf20Sopenharmony_ci 8188c2ecf20Sopenharmony_ci/* MHL CoC 5th Ctl, default value: 0x28 */ 8198c2ecf20Sopenharmony_ci#define REG_MHL_COC_CTL4 0x0346 8208c2ecf20Sopenharmony_ci#define MSK_MHL_COC_CTL4_COC_IF_CTL 0xf0 8218c2ecf20Sopenharmony_ci#define MSK_MHL_COC_CTL4_COC_SLEW_CTL 0x0f 8228c2ecf20Sopenharmony_ci 8238c2ecf20Sopenharmony_ci/* MHL CoC 6th Ctl, default value: 0x0d */ 8248c2ecf20Sopenharmony_ci#define REG_MHL_COC_CTL5 0x0347 8258c2ecf20Sopenharmony_ci 8268c2ecf20Sopenharmony_ci/* MHL DoC 1st Ctl, default value: 0x18 */ 8278c2ecf20Sopenharmony_ci#define REG_MHL_DOC_CTL0 0x0349 8288c2ecf20Sopenharmony_ci#define BIT_MHL_DOC_CTL0_DOC_RXDATA_EN BIT(7) 8298c2ecf20Sopenharmony_ci#define MSK_MHL_DOC_CTL0_DOC_DM_TERM 0x38 8308c2ecf20Sopenharmony_ci#define MSK_MHL_DOC_CTL0_DOC_OPMODE 0x06 8318c2ecf20Sopenharmony_ci#define BIT_MHL_DOC_CTL0_DOC_RXBIAS_EN BIT(0) 8328c2ecf20Sopenharmony_ci 8338c2ecf20Sopenharmony_ci/* MHL DataPath 7th Ctl, default value: 0x2a */ 8348c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL6 0x0350 8358c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DP_TAP2_SGN BIT(5) 8368c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DP_TAP2_EN BIT(4) 8378c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DP_TAP1_SGN BIT(3) 8388c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DP_TAP1_EN BIT(2) 8398c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DT_PREDRV_FEEDCAP_EN BIT(1) 8408c2ecf20Sopenharmony_ci#define BIT_MHL_DP_CTL6_DP_PRE_POST_SEL BIT(0) 8418c2ecf20Sopenharmony_ci 8428c2ecf20Sopenharmony_ci/* MHL DataPath 8th Ctl, default value: 0x06 */ 8438c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL7 0x0351 8448c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL7_DT_DRV_VBIAS_CASCTL 0xf0 8458c2ecf20Sopenharmony_ci#define MSK_MHL_DP_CTL7_DT_DRV_IREF_CTL 0x0f 8468c2ecf20Sopenharmony_ci 8478c2ecf20Sopenharmony_ci#define REG_MHL_DP_CTL8 0x0352 8488c2ecf20Sopenharmony_ci 8498c2ecf20Sopenharmony_ci/* Tx Zone Ctl1, default value: 0x00 */ 8508c2ecf20Sopenharmony_ci#define REG_TX_ZONE_CTL1 0x0361 8518c2ecf20Sopenharmony_ci#define VAL_TX_ZONE_CTL1_TX_ZONE_CTRL_MODE 0x08 8528c2ecf20Sopenharmony_ci 8538c2ecf20Sopenharmony_ci/* MHL3 Tx Zone Ctl, default value: 0x00 */ 8548c2ecf20Sopenharmony_ci#define REG_MHL3_TX_ZONE_CTL 0x0364 8558c2ecf20Sopenharmony_ci#define BIT_MHL3_TX_ZONE_CTL_MHL2_INTPLT_ZONE_MANU_EN BIT(7) 8568c2ecf20Sopenharmony_ci#define MSK_MHL3_TX_ZONE_CTL_MHL3_TX_ZONE 0x03 8578c2ecf20Sopenharmony_ci 8588c2ecf20Sopenharmony_ci#define MSK_TX_ZONE_CTL3_TX_ZONE 0x03 8598c2ecf20Sopenharmony_ci#define VAL_TX_ZONE_CTL3_TX_ZONE_6GBPS 0x00 8608c2ecf20Sopenharmony_ci#define VAL_TX_ZONE_CTL3_TX_ZONE_3GBPS 0x01 8618c2ecf20Sopenharmony_ci#define VAL_TX_ZONE_CTL3_TX_ZONE_1_5GBPS 0x02 8628c2ecf20Sopenharmony_ci 8638c2ecf20Sopenharmony_ci/* HDCP Polling Control and Status, default value: 0x70 */ 8648c2ecf20Sopenharmony_ci#define REG_HDCP2X_POLL_CS 0x0391 8658c2ecf20Sopenharmony_ci 8668c2ecf20Sopenharmony_ci#define BIT_HDCP2X_POLL_CS_HDCP2X_MSG_SZ_CLR_OPTION BIT(6) 8678c2ecf20Sopenharmony_ci#define BIT_HDCP2X_POLL_CS_HDCP2X_RPT_READY_CLR_OPTION BIT(5) 8688c2ecf20Sopenharmony_ci#define BIT_HDCP2X_POLL_CS_HDCP2X_REAUTH_REQ_CLR_OPTION BIT(4) 8698c2ecf20Sopenharmony_ci#define MSK_HDCP2X_POLL_CS_ 0x0c 8708c2ecf20Sopenharmony_ci#define BIT_HDCP2X_POLL_CS_HDCP2X_DIS_POLL_GNT BIT(1) 8718c2ecf20Sopenharmony_ci#define BIT_HDCP2X_POLL_CS_HDCP2X_DIS_POLL_EN BIT(0) 8728c2ecf20Sopenharmony_ci 8738c2ecf20Sopenharmony_ci/* HDCP Interrupt 0, default value: 0x00 */ 8748c2ecf20Sopenharmony_ci#define REG_HDCP2X_INTR0 0x0398 8758c2ecf20Sopenharmony_ci 8768c2ecf20Sopenharmony_ci/* HDCP Interrupt 0 Mask, default value: 0x00 */ 8778c2ecf20Sopenharmony_ci#define REG_HDCP2X_INTR0_MASK 0x0399 8788c2ecf20Sopenharmony_ci 8798c2ecf20Sopenharmony_ci/* HDCP General Control 0, default value: 0x02 */ 8808c2ecf20Sopenharmony_ci#define REG_HDCP2X_CTRL_0 0x03a0 8818c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_ENCRYPT_EN BIT(7) 8828c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_POLINT_SEL BIT(6) 8838c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_POLINT_OVR BIT(5) 8848c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_PRECOMPUTE BIT(4) 8858c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_HDMIMODE BIT(3) 8868c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_REPEATER BIT(2) 8878c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_HDCPTX BIT(1) 8888c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_0_HDCP2X_EN BIT(0) 8898c2ecf20Sopenharmony_ci 8908c2ecf20Sopenharmony_ci/* HDCP General Control 1, default value: 0x08 */ 8918c2ecf20Sopenharmony_ci#define REG_HDCP2X_CTRL_1 0x03a1 8928c2ecf20Sopenharmony_ci#define MSK_HDCP2X_CTRL_1_HDCP2X_REAUTH_MSK_3_0 0xf0 8938c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_1_HDCP2X_HPD_SW BIT(3) 8948c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_1_HDCP2X_HPD_OVR BIT(2) 8958c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_1_HDCP2X_CTL3MSK BIT(1) 8968c2ecf20Sopenharmony_ci#define BIT_HDCP2X_CTRL_1_HDCP2X_REAUTH_SW BIT(0) 8978c2ecf20Sopenharmony_ci 8988c2ecf20Sopenharmony_ci/* HDCP Misc Control, default value: 0x00 */ 8998c2ecf20Sopenharmony_ci#define REG_HDCP2X_MISC_CTRL 0x03a5 9008c2ecf20Sopenharmony_ci#define BIT_HDCP2X_MISC_CTRL_HDCP2X_RPT_SMNG_XFER_START BIT(4) 9018c2ecf20Sopenharmony_ci#define BIT_HDCP2X_MISC_CTRL_HDCP2X_RPT_SMNG_WR_START BIT(3) 9028c2ecf20Sopenharmony_ci#define BIT_HDCP2X_MISC_CTRL_HDCP2X_RPT_SMNG_WR BIT(2) 9038c2ecf20Sopenharmony_ci#define BIT_HDCP2X_MISC_CTRL_HDCP2X_RPT_RCVID_RD_START BIT(1) 9048c2ecf20Sopenharmony_ci#define BIT_HDCP2X_MISC_CTRL_HDCP2X_RPT_RCVID_RD BIT(0) 9058c2ecf20Sopenharmony_ci 9068c2ecf20Sopenharmony_ci/* HDCP RPT SMNG K, default value: 0x00 */ 9078c2ecf20Sopenharmony_ci#define REG_HDCP2X_RPT_SMNG_K 0x03a6 9088c2ecf20Sopenharmony_ci 9098c2ecf20Sopenharmony_ci/* HDCP RPT SMNG In, default value: 0x00 */ 9108c2ecf20Sopenharmony_ci#define REG_HDCP2X_RPT_SMNG_IN 0x03a7 9118c2ecf20Sopenharmony_ci 9128c2ecf20Sopenharmony_ci/* HDCP Auth Status, default value: 0x00 */ 9138c2ecf20Sopenharmony_ci#define REG_HDCP2X_AUTH_STAT 0x03aa 9148c2ecf20Sopenharmony_ci 9158c2ecf20Sopenharmony_ci/* HDCP RPT RCVID Out, default value: 0x00 */ 9168c2ecf20Sopenharmony_ci#define REG_HDCP2X_RPT_RCVID_OUT 0x03ac 9178c2ecf20Sopenharmony_ci 9188c2ecf20Sopenharmony_ci/* HDCP TP1, default value: 0x62 */ 9198c2ecf20Sopenharmony_ci#define REG_HDCP2X_TP1 0x03b4 9208c2ecf20Sopenharmony_ci 9218c2ecf20Sopenharmony_ci/* HDCP GP Out 0, default value: 0x00 */ 9228c2ecf20Sopenharmony_ci#define REG_HDCP2X_GP_OUT0 0x03c7 9238c2ecf20Sopenharmony_ci 9248c2ecf20Sopenharmony_ci/* HDCP Repeater RCVR ID 0, default value: 0x00 */ 9258c2ecf20Sopenharmony_ci#define REG_HDCP2X_RPT_RCVR_ID0 0x03d1 9268c2ecf20Sopenharmony_ci 9278c2ecf20Sopenharmony_ci/* HDCP DDCM Status, default value: 0x00 */ 9288c2ecf20Sopenharmony_ci#define REG_HDCP2X_DDCM_STS 0x03d8 9298c2ecf20Sopenharmony_ci#define MSK_HDCP2X_DDCM_STS_HDCP2X_DDCM_ERR_STS_3_0 0xf0 9308c2ecf20Sopenharmony_ci#define MSK_HDCP2X_DDCM_STS_HDCP2X_DDCM_CTL_CS_3_0 0x0f 9318c2ecf20Sopenharmony_ci 9328c2ecf20Sopenharmony_ci/* HDMI2MHL3 Control, default value: 0x0a */ 9338c2ecf20Sopenharmony_ci#define REG_M3_CTRL 0x03e0 9348c2ecf20Sopenharmony_ci#define BIT_M3_CTRL_H2M_SWRST BIT(4) 9358c2ecf20Sopenharmony_ci#define BIT_M3_CTRL_SW_MHL3_SEL BIT(3) 9368c2ecf20Sopenharmony_ci#define BIT_M3_CTRL_M3AV_EN BIT(2) 9378c2ecf20Sopenharmony_ci#define BIT_M3_CTRL_ENC_TMDS BIT(1) 9388c2ecf20Sopenharmony_ci#define BIT_M3_CTRL_MHL3_MASTER_EN BIT(0) 9398c2ecf20Sopenharmony_ci 9408c2ecf20Sopenharmony_ci#define VAL_M3_CTRL_MHL1_2_VALUE (BIT_M3_CTRL_SW_MHL3_SEL \ 9418c2ecf20Sopenharmony_ci | BIT_M3_CTRL_ENC_TMDS) 9428c2ecf20Sopenharmony_ci#define VAL_M3_CTRL_MHL3_VALUE (BIT_M3_CTRL_SW_MHL3_SEL \ 9438c2ecf20Sopenharmony_ci | BIT_M3_CTRL_M3AV_EN \ 9448c2ecf20Sopenharmony_ci | BIT_M3_CTRL_ENC_TMDS \ 9458c2ecf20Sopenharmony_ci | BIT_M3_CTRL_MHL3_MASTER_EN) 9468c2ecf20Sopenharmony_ci 9478c2ecf20Sopenharmony_ci/* HDMI2MHL3 Port0 Control, default value: 0x04 */ 9488c2ecf20Sopenharmony_ci#define REG_M3_P0CTRL 0x03e1 9498c2ecf20Sopenharmony_ci#define BIT_M3_P0CTRL_MHL3_P0_HDCP_ENC_EN BIT(4) 9508c2ecf20Sopenharmony_ci#define BIT_M3_P0CTRL_MHL3_P0_UNLIMIT_EN BIT(3) 9518c2ecf20Sopenharmony_ci#define BIT_M3_P0CTRL_MHL3_P0_HDCP_EN BIT(2) 9528c2ecf20Sopenharmony_ci#define BIT_M3_P0CTRL_MHL3_P0_PIXEL_MODE_PACKED BIT(1) 9538c2ecf20Sopenharmony_ci#define BIT_M3_P0CTRL_MHL3_P0_PORT_EN BIT(0) 9548c2ecf20Sopenharmony_ci 9558c2ecf20Sopenharmony_ci#define REG_M3_POSTM 0x03e2 9568c2ecf20Sopenharmony_ci#define MSK_M3_POSTM_RRP_DECODE 0xf8 9578c2ecf20Sopenharmony_ci#define MSK_M3_POSTM_MHL3_P0_STM_ID 0x07 9588c2ecf20Sopenharmony_ci 9598c2ecf20Sopenharmony_ci/* HDMI2MHL3 Scramble Control, default value: 0x41 */ 9608c2ecf20Sopenharmony_ci#define REG_M3_SCTRL 0x03e6 9618c2ecf20Sopenharmony_ci#define MSK_M3_SCTRL_MHL3_SR_LENGTH 0xf0 9628c2ecf20Sopenharmony_ci#define BIT_M3_SCTRL_MHL3_SCRAMBLER_EN BIT(0) 9638c2ecf20Sopenharmony_ci 9648c2ecf20Sopenharmony_ci/* HSIC Div Ctl, default value: 0x05 */ 9658c2ecf20Sopenharmony_ci#define REG_DIV_CTL_MAIN 0x03f2 9668c2ecf20Sopenharmony_ci#define MSK_DIV_CTL_MAIN_PRE_DIV_CTL_MAIN 0x1c 9678c2ecf20Sopenharmony_ci#define MSK_DIV_CTL_MAIN_FB_DIV_CTL_MAIN 0x03 9688c2ecf20Sopenharmony_ci 9698c2ecf20Sopenharmony_ci/* MHL Capability 1st Byte, default value: 0x00 */ 9708c2ecf20Sopenharmony_ci#define REG_MHL_DEVCAP_0 0x0400 9718c2ecf20Sopenharmony_ci 9728c2ecf20Sopenharmony_ci/* MHL Interrupt 1st Byte, default value: 0x00 */ 9738c2ecf20Sopenharmony_ci#define REG_MHL_INT_0 0x0420 9748c2ecf20Sopenharmony_ci 9758c2ecf20Sopenharmony_ci/* Device Status 1st byte, default value: 0x00 */ 9768c2ecf20Sopenharmony_ci#define REG_MHL_STAT_0 0x0430 9778c2ecf20Sopenharmony_ci 9788c2ecf20Sopenharmony_ci/* CBUS Scratch Pad 1st Byte, default value: 0x00 */ 9798c2ecf20Sopenharmony_ci#define REG_MHL_SCRPAD_0 0x0440 9808c2ecf20Sopenharmony_ci 9818c2ecf20Sopenharmony_ci/* MHL Extended Capability 1st Byte, default value: 0x00 */ 9828c2ecf20Sopenharmony_ci#define REG_MHL_EXTDEVCAP_0 0x0480 9838c2ecf20Sopenharmony_ci 9848c2ecf20Sopenharmony_ci/* Device Extended Status 1st byte, default value: 0x00 */ 9858c2ecf20Sopenharmony_ci#define REG_MHL_EXTSTAT_0 0x0490 9868c2ecf20Sopenharmony_ci 9878c2ecf20Sopenharmony_ci/* TPI DTD Byte2, default value: 0x00 */ 9888c2ecf20Sopenharmony_ci#define REG_TPI_DTD_B2 0x0602 9898c2ecf20Sopenharmony_ci 9908c2ecf20Sopenharmony_ci#define VAL_TPI_QUAN_RANGE_LIMITED 0x01 9918c2ecf20Sopenharmony_ci#define VAL_TPI_QUAN_RANGE_FULL 0x02 9928c2ecf20Sopenharmony_ci#define VAL_TPI_FORMAT_RGB 0x00 9938c2ecf20Sopenharmony_ci#define VAL_TPI_FORMAT_YCBCR444 0x01 9948c2ecf20Sopenharmony_ci#define VAL_TPI_FORMAT_YCBCR422 0x02 9958c2ecf20Sopenharmony_ci#define VAL_TPI_FORMAT_INTERNAL_RGB 0x03 9968c2ecf20Sopenharmony_ci#define VAL_TPI_FORMAT(_fmt, _qr) \ 9978c2ecf20Sopenharmony_ci (VAL_TPI_FORMAT_##_fmt | (VAL_TPI_QUAN_RANGE_##_qr << 2)) 9988c2ecf20Sopenharmony_ci 9998c2ecf20Sopenharmony_ci/* Input Format, default value: 0x00 */ 10008c2ecf20Sopenharmony_ci#define REG_TPI_INPUT 0x0609 10018c2ecf20Sopenharmony_ci#define BIT_TPI_INPUT_EXTENDEDBITMODE BIT(7) 10028c2ecf20Sopenharmony_ci#define BIT_TPI_INPUT_ENDITHER BIT(6) 10038c2ecf20Sopenharmony_ci#define MSK_TPI_INPUT_INPUT_QUAN_RANGE 0x0c 10048c2ecf20Sopenharmony_ci#define MSK_TPI_INPUT_INPUT_FORMAT 0x03 10058c2ecf20Sopenharmony_ci 10068c2ecf20Sopenharmony_ci/* Output Format, default value: 0x00 */ 10078c2ecf20Sopenharmony_ci#define REG_TPI_OUTPUT 0x060a 10088c2ecf20Sopenharmony_ci#define BIT_TPI_OUTPUT_CSCMODE709 BIT(4) 10098c2ecf20Sopenharmony_ci#define MSK_TPI_OUTPUT_OUTPUT_QUAN_RANGE 0x0c 10108c2ecf20Sopenharmony_ci#define MSK_TPI_OUTPUT_OUTPUT_FORMAT 0x03 10118c2ecf20Sopenharmony_ci 10128c2ecf20Sopenharmony_ci/* TPI AVI Check Sum, default value: 0x00 */ 10138c2ecf20Sopenharmony_ci#define REG_TPI_AVI_CHSUM 0x060c 10148c2ecf20Sopenharmony_ci 10158c2ecf20Sopenharmony_ci/* TPI System Control, default value: 0x00 */ 10168c2ecf20Sopenharmony_ci#define REG_TPI_SC 0x061a 10178c2ecf20Sopenharmony_ci#define BIT_TPI_SC_TPI_UPDATE_FLG BIT(7) 10188c2ecf20Sopenharmony_ci#define BIT_TPI_SC_TPI_REAUTH_CTL BIT(6) 10198c2ecf20Sopenharmony_ci#define BIT_TPI_SC_TPI_OUTPUT_MODE_1 BIT(5) 10208c2ecf20Sopenharmony_ci#define BIT_TPI_SC_REG_TMDS_OE_POWER_DOWN BIT(4) 10218c2ecf20Sopenharmony_ci#define BIT_TPI_SC_TPI_AV_MUTE BIT(3) 10228c2ecf20Sopenharmony_ci#define BIT_TPI_SC_DDC_GPU_REQUEST BIT(2) 10238c2ecf20Sopenharmony_ci#define BIT_TPI_SC_DDC_TPI_SW BIT(1) 10248c2ecf20Sopenharmony_ci#define BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI BIT(0) 10258c2ecf20Sopenharmony_ci 10268c2ecf20Sopenharmony_ci/* TPI COPP Query Data, default value: 0x00 */ 10278c2ecf20Sopenharmony_ci#define REG_TPI_COPP_DATA1 0x0629 10288c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_GPROT BIT(7) 10298c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_LPROT BIT(6) 10308c2ecf20Sopenharmony_ci#define MSK_TPI_COPP_DATA1_COPP_LINK_STATUS 0x30 10318c2ecf20Sopenharmony_ci#define VAL_TPI_COPP_LINK_STATUS_NORMAL 0x00 10328c2ecf20Sopenharmony_ci#define VAL_TPI_COPP_LINK_STATUS_LINK_LOST 0x10 10338c2ecf20Sopenharmony_ci#define VAL_TPI_COPP_LINK_STATUS_RENEGOTIATION_REQ 0x20 10348c2ecf20Sopenharmony_ci#define VAL_TPI_COPP_LINK_STATUS_LINK_SUSPENDED 0x30 10358c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_HDCP_REP BIT(3) 10368c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_CONNTYPE_0 BIT(2) 10378c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_PROTYPE BIT(1) 10388c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA1_COPP_CONNTYPE_1 BIT(0) 10398c2ecf20Sopenharmony_ci 10408c2ecf20Sopenharmony_ci/* TPI COPP Control Data, default value: 0x00 */ 10418c2ecf20Sopenharmony_ci#define REG_TPI_COPP_DATA2 0x062a 10428c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_INTR_ENCRYPTION BIT(5) 10438c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_KSV_FORWARD BIT(4) 10448c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_INTERM_RI_CHECK_EN BIT(3) 10458c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_DOUBLE_RI_CHECK BIT(2) 10468c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_DDC_SHORT_RI_RD BIT(1) 10478c2ecf20Sopenharmony_ci#define BIT_TPI_COPP_DATA2_COPP_PROTLEVEL BIT(0) 10488c2ecf20Sopenharmony_ci 10498c2ecf20Sopenharmony_ci/* TPI Interrupt Enable, default value: 0x00 */ 10508c2ecf20Sopenharmony_ci#define REG_TPI_INTR_EN 0x063c 10518c2ecf20Sopenharmony_ci 10528c2ecf20Sopenharmony_ci/* TPI Interrupt Status Low Byte, default value: 0x00 */ 10538c2ecf20Sopenharmony_ci#define REG_TPI_INTR_ST0 0x063d 10548c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_TPI_AUTH_CHNGE_STAT BIT(7) 10558c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_TPI_V_RDY_STAT BIT(6) 10568c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_TPI_COPP_CHNGE_STAT BIT(5) 10578c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_KSV_FIFO_FIRST_STAT BIT(3) 10588c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_READ_BKSV_BCAPS_DONE_STAT BIT(2) 10598c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_READ_BKSV_BCAPS_ERR_STAT BIT(1) 10608c2ecf20Sopenharmony_ci#define BIT_TPI_INTR_ST0_READ_BKSV_ERR_STAT BIT(0) 10618c2ecf20Sopenharmony_ci 10628c2ecf20Sopenharmony_ci/* TPI DS BCAPS Status, default value: 0x00 */ 10638c2ecf20Sopenharmony_ci#define REG_TPI_DS_BCAPS 0x0644 10648c2ecf20Sopenharmony_ci 10658c2ecf20Sopenharmony_ci/* TPI BStatus1, default value: 0x00 */ 10668c2ecf20Sopenharmony_ci#define REG_TPI_BSTATUS1 0x0645 10678c2ecf20Sopenharmony_ci#define BIT_TPI_BSTATUS1_DS_DEV_EXCEED BIT(7) 10688c2ecf20Sopenharmony_ci#define MSK_TPI_BSTATUS1_DS_DEV_CNT 0x7f 10698c2ecf20Sopenharmony_ci 10708c2ecf20Sopenharmony_ci/* TPI BStatus2, default value: 0x10 */ 10718c2ecf20Sopenharmony_ci#define REG_TPI_BSTATUS2 0x0646 10728c2ecf20Sopenharmony_ci#define MSK_TPI_BSTATUS2_DS_BSTATUS 0xe0 10738c2ecf20Sopenharmony_ci#define BIT_TPI_BSTATUS2_DS_HDMI_MODE BIT(4) 10748c2ecf20Sopenharmony_ci#define BIT_TPI_BSTATUS2_DS_CASC_EXCEED BIT(3) 10758c2ecf20Sopenharmony_ci#define MSK_TPI_BSTATUS2_DS_DEPTH 0x07 10768c2ecf20Sopenharmony_ci 10778c2ecf20Sopenharmony_ci/* TPI HW Optimization Control #3, default value: 0x00 */ 10788c2ecf20Sopenharmony_ci#define REG_TPI_HW_OPT3 0x06bb 10798c2ecf20Sopenharmony_ci#define BIT_TPI_HW_OPT3_DDC_DEBUG BIT(7) 10808c2ecf20Sopenharmony_ci#define BIT_TPI_HW_OPT3_RI_CHECK_SKIP BIT(3) 10818c2ecf20Sopenharmony_ci#define BIT_TPI_HW_OPT3_TPI_DDC_BURST_MODE BIT(2) 10828c2ecf20Sopenharmony_ci#define MSK_TPI_HW_OPT3_TPI_DDC_REQ_LEVEL 0x03 10838c2ecf20Sopenharmony_ci 10848c2ecf20Sopenharmony_ci/* TPI Info Frame Select, default value: 0x00 */ 10858c2ecf20Sopenharmony_ci#define REG_TPI_INFO_FSEL 0x06bf 10868c2ecf20Sopenharmony_ci#define BIT_TPI_INFO_FSEL_EN BIT(7) 10878c2ecf20Sopenharmony_ci#define BIT_TPI_INFO_FSEL_RPT BIT(6) 10888c2ecf20Sopenharmony_ci#define BIT_TPI_INFO_FSEL_READ_FLAG BIT(5) 10898c2ecf20Sopenharmony_ci#define MSK_TPI_INFO_FSEL_PKT 0x07 10908c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_AVI 0x00 10918c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_SPD 0x01 10928c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_AUD 0x02 10938c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_MPG 0x03 10948c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_GEN 0x04 10958c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_GEN2 0x05 10968c2ecf20Sopenharmony_ci#define VAL_TPI_INFO_FSEL_VSI 0x06 10978c2ecf20Sopenharmony_ci 10988c2ecf20Sopenharmony_ci/* TPI Info Byte #0, default value: 0x00 */ 10998c2ecf20Sopenharmony_ci#define REG_TPI_INFO_B0 0x06c0 11008c2ecf20Sopenharmony_ci 11018c2ecf20Sopenharmony_ci/* CoC Status, default value: 0x00 */ 11028c2ecf20Sopenharmony_ci#define REG_COC_STAT_0 0x0700 11038c2ecf20Sopenharmony_ci#define BIT_COC_STAT_0_PLL_LOCKED BIT(7) 11048c2ecf20Sopenharmony_ci#define MSK_COC_STAT_0_FSM_STATE 0x0f 11058c2ecf20Sopenharmony_ci 11068c2ecf20Sopenharmony_ci#define REG_COC_STAT_1 0x0701 11078c2ecf20Sopenharmony_ci#define REG_COC_STAT_2 0x0702 11088c2ecf20Sopenharmony_ci#define REG_COC_STAT_3 0x0703 11098c2ecf20Sopenharmony_ci#define REG_COC_STAT_4 0x0704 11108c2ecf20Sopenharmony_ci#define REG_COC_STAT_5 0x0705 11118c2ecf20Sopenharmony_ci 11128c2ecf20Sopenharmony_ci/* CoC 1st Ctl, default value: 0x40 */ 11138c2ecf20Sopenharmony_ci#define REG_COC_CTL0 0x0710 11148c2ecf20Sopenharmony_ci 11158c2ecf20Sopenharmony_ci/* CoC 2nd Ctl, default value: 0x0a */ 11168c2ecf20Sopenharmony_ci#define REG_COC_CTL1 0x0711 11178c2ecf20Sopenharmony_ci#define MSK_COC_CTL1_COC_CTRL1_7_6 0xc0 11188c2ecf20Sopenharmony_ci#define MSK_COC_CTL1_COC_CTRL1_5_0 0x3f 11198c2ecf20Sopenharmony_ci 11208c2ecf20Sopenharmony_ci/* CoC 3rd Ctl, default value: 0x14 */ 11218c2ecf20Sopenharmony_ci#define REG_COC_CTL2 0x0712 11228c2ecf20Sopenharmony_ci#define MSK_COC_CTL2_COC_CTRL2_7_6 0xc0 11238c2ecf20Sopenharmony_ci#define MSK_COC_CTL2_COC_CTRL2_5_0 0x3f 11248c2ecf20Sopenharmony_ci 11258c2ecf20Sopenharmony_ci/* CoC 4th Ctl, default value: 0x40 */ 11268c2ecf20Sopenharmony_ci#define REG_COC_CTL3 0x0713 11278c2ecf20Sopenharmony_ci#define BIT_COC_CTL3_COC_CTRL3_7 BIT(7) 11288c2ecf20Sopenharmony_ci#define MSK_COC_CTL3_COC_CTRL3_6_0 0x7f 11298c2ecf20Sopenharmony_ci 11308c2ecf20Sopenharmony_ci/* CoC 7th Ctl, default value: 0x00 */ 11318c2ecf20Sopenharmony_ci#define REG_COC_CTL6 0x0716 11328c2ecf20Sopenharmony_ci#define BIT_COC_CTL6_COC_CTRL6_7 BIT(7) 11338c2ecf20Sopenharmony_ci#define BIT_COC_CTL6_COC_CTRL6_6 BIT(6) 11348c2ecf20Sopenharmony_ci#define MSK_COC_CTL6_COC_CTRL6_5_0 0x3f 11358c2ecf20Sopenharmony_ci 11368c2ecf20Sopenharmony_ci/* CoC 8th Ctl, default value: 0x06 */ 11378c2ecf20Sopenharmony_ci#define REG_COC_CTL7 0x0717 11388c2ecf20Sopenharmony_ci#define BIT_COC_CTL7_COC_CTRL7_7 BIT(7) 11398c2ecf20Sopenharmony_ci#define BIT_COC_CTL7_COC_CTRL7_6 BIT(6) 11408c2ecf20Sopenharmony_ci#define BIT_COC_CTL7_COC_CTRL7_5 BIT(5) 11418c2ecf20Sopenharmony_ci#define MSK_COC_CTL7_COC_CTRL7_4_3 0x18 11428c2ecf20Sopenharmony_ci#define MSK_COC_CTL7_COC_CTRL7_2_0 0x07 11438c2ecf20Sopenharmony_ci 11448c2ecf20Sopenharmony_ci/* CoC 10th Ctl, default value: 0x00 */ 11458c2ecf20Sopenharmony_ci#define REG_COC_CTL9 0x0719 11468c2ecf20Sopenharmony_ci 11478c2ecf20Sopenharmony_ci/* CoC 11th Ctl, default value: 0x00 */ 11488c2ecf20Sopenharmony_ci#define REG_COC_CTLA 0x071a 11498c2ecf20Sopenharmony_ci 11508c2ecf20Sopenharmony_ci/* CoC 12th Ctl, default value: 0x00 */ 11518c2ecf20Sopenharmony_ci#define REG_COC_CTLB 0x071b 11528c2ecf20Sopenharmony_ci 11538c2ecf20Sopenharmony_ci/* CoC 13th Ctl, default value: 0x0f */ 11548c2ecf20Sopenharmony_ci#define REG_COC_CTLC 0x071c 11558c2ecf20Sopenharmony_ci 11568c2ecf20Sopenharmony_ci/* CoC 14th Ctl, default value: 0x0a */ 11578c2ecf20Sopenharmony_ci#define REG_COC_CTLD 0x071d 11588c2ecf20Sopenharmony_ci#define BIT_COC_CTLD_COC_CTRLD_7 BIT(7) 11598c2ecf20Sopenharmony_ci#define MSK_COC_CTLD_COC_CTRLD_6_0 0x7f 11608c2ecf20Sopenharmony_ci 11618c2ecf20Sopenharmony_ci/* CoC 15th Ctl, default value: 0x0a */ 11628c2ecf20Sopenharmony_ci#define REG_COC_CTLE 0x071e 11638c2ecf20Sopenharmony_ci#define BIT_COC_CTLE_COC_CTRLE_7 BIT(7) 11648c2ecf20Sopenharmony_ci#define MSK_COC_CTLE_COC_CTRLE_6_0 0x7f 11658c2ecf20Sopenharmony_ci 11668c2ecf20Sopenharmony_ci/* CoC 16th Ctl, default value: 0x00 */ 11678c2ecf20Sopenharmony_ci#define REG_COC_CTLF 0x071f 11688c2ecf20Sopenharmony_ci#define MSK_COC_CTLF_COC_CTRLF_7_3 0xf8 11698c2ecf20Sopenharmony_ci#define MSK_COC_CTLF_COC_CTRLF_2_0 0x07 11708c2ecf20Sopenharmony_ci 11718c2ecf20Sopenharmony_ci/* CoC 18th Ctl, default value: 0x32 */ 11728c2ecf20Sopenharmony_ci#define REG_COC_CTL11 0x0721 11738c2ecf20Sopenharmony_ci#define MSK_COC_CTL11_COC_CTRL11_7_4 0xf0 11748c2ecf20Sopenharmony_ci#define MSK_COC_CTL11_COC_CTRL11_3_0 0x0f 11758c2ecf20Sopenharmony_ci 11768c2ecf20Sopenharmony_ci/* CoC 21st Ctl, default value: 0x00 */ 11778c2ecf20Sopenharmony_ci#define REG_COC_CTL14 0x0724 11788c2ecf20Sopenharmony_ci#define MSK_COC_CTL14_COC_CTRL14_7_4 0xf0 11798c2ecf20Sopenharmony_ci#define MSK_COC_CTL14_COC_CTRL14_3_0 0x0f 11808c2ecf20Sopenharmony_ci 11818c2ecf20Sopenharmony_ci/* CoC 22nd Ctl, default value: 0x00 */ 11828c2ecf20Sopenharmony_ci#define REG_COC_CTL15 0x0725 11838c2ecf20Sopenharmony_ci#define BIT_COC_CTL15_COC_CTRL15_7 BIT(7) 11848c2ecf20Sopenharmony_ci#define MSK_COC_CTL15_COC_CTRL15_6_4 0x70 11858c2ecf20Sopenharmony_ci#define MSK_COC_CTL15_COC_CTRL15_3_0 0x0f 11868c2ecf20Sopenharmony_ci 11878c2ecf20Sopenharmony_ci/* CoC Interrupt, default value: 0x00 */ 11888c2ecf20Sopenharmony_ci#define REG_COC_INTR 0x0726 11898c2ecf20Sopenharmony_ci 11908c2ecf20Sopenharmony_ci/* CoC Interrupt Mask, default value: 0x00 */ 11918c2ecf20Sopenharmony_ci#define REG_COC_INTR_MASK 0x0727 11928c2ecf20Sopenharmony_ci#define BIT_COC_PLL_LOCK_STATUS_CHANGE BIT(0) 11938c2ecf20Sopenharmony_ci#define BIT_COC_CALIBRATION_DONE BIT(1) 11948c2ecf20Sopenharmony_ci 11958c2ecf20Sopenharmony_ci/* CoC Misc Ctl, default value: 0x00 */ 11968c2ecf20Sopenharmony_ci#define REG_COC_MISC_CTL0 0x0728 11978c2ecf20Sopenharmony_ci#define BIT_COC_MISC_CTL0_FSM_MON BIT(7) 11988c2ecf20Sopenharmony_ci 11998c2ecf20Sopenharmony_ci/* CoC 24th Ctl, default value: 0x00 */ 12008c2ecf20Sopenharmony_ci#define REG_COC_CTL17 0x072a 12018c2ecf20Sopenharmony_ci#define MSK_COC_CTL17_COC_CTRL17_7_4 0xf0 12028c2ecf20Sopenharmony_ci#define MSK_COC_CTL17_COC_CTRL17_3_0 0x0f 12038c2ecf20Sopenharmony_ci 12048c2ecf20Sopenharmony_ci/* CoC 25th Ctl, default value: 0x00 */ 12058c2ecf20Sopenharmony_ci#define REG_COC_CTL18 0x072b 12068c2ecf20Sopenharmony_ci#define MSK_COC_CTL18_COC_CTRL18_7_4 0xf0 12078c2ecf20Sopenharmony_ci#define MSK_COC_CTL18_COC_CTRL18_3_0 0x0f 12088c2ecf20Sopenharmony_ci 12098c2ecf20Sopenharmony_ci/* CoC 26th Ctl, default value: 0x00 */ 12108c2ecf20Sopenharmony_ci#define REG_COC_CTL19 0x072c 12118c2ecf20Sopenharmony_ci#define MSK_COC_CTL19_COC_CTRL19_7_4 0xf0 12128c2ecf20Sopenharmony_ci#define MSK_COC_CTL19_COC_CTRL19_3_0 0x0f 12138c2ecf20Sopenharmony_ci 12148c2ecf20Sopenharmony_ci/* CoC 27th Ctl, default value: 0x00 */ 12158c2ecf20Sopenharmony_ci#define REG_COC_CTL1A 0x072d 12168c2ecf20Sopenharmony_ci#define MSK_COC_CTL1A_COC_CTRL1A_7_2 0xfc 12178c2ecf20Sopenharmony_ci#define MSK_COC_CTL1A_COC_CTRL1A_1_0 0x03 12188c2ecf20Sopenharmony_ci 12198c2ecf20Sopenharmony_ci/* DoC 9th Status, default value: 0x00 */ 12208c2ecf20Sopenharmony_ci#define REG_DOC_STAT_8 0x0740 12218c2ecf20Sopenharmony_ci 12228c2ecf20Sopenharmony_ci/* DoC 10th Status, default value: 0x00 */ 12238c2ecf20Sopenharmony_ci#define REG_DOC_STAT_9 0x0741 12248c2ecf20Sopenharmony_ci 12258c2ecf20Sopenharmony_ci/* DoC 5th CFG, default value: 0x00 */ 12268c2ecf20Sopenharmony_ci#define REG_DOC_CFG4 0x074e 12278c2ecf20Sopenharmony_ci#define MSK_DOC_CFG4_DBG_STATE_DOC_FSM 0x0f 12288c2ecf20Sopenharmony_ci 12298c2ecf20Sopenharmony_ci/* DoC 1st Ctl, default value: 0x40 */ 12308c2ecf20Sopenharmony_ci#define REG_DOC_CTL0 0x0751 12318c2ecf20Sopenharmony_ci 12328c2ecf20Sopenharmony_ci/* DoC 7th Ctl, default value: 0x00 */ 12338c2ecf20Sopenharmony_ci#define REG_DOC_CTL6 0x0757 12348c2ecf20Sopenharmony_ci#define BIT_DOC_CTL6_DOC_CTRL6_7 BIT(7) 12358c2ecf20Sopenharmony_ci#define BIT_DOC_CTL6_DOC_CTRL6_6 BIT(6) 12368c2ecf20Sopenharmony_ci#define MSK_DOC_CTL6_DOC_CTRL6_5_4 0x30 12378c2ecf20Sopenharmony_ci#define MSK_DOC_CTL6_DOC_CTRL6_3_0 0x0f 12388c2ecf20Sopenharmony_ci 12398c2ecf20Sopenharmony_ci/* DoC 8th Ctl, default value: 0x00 */ 12408c2ecf20Sopenharmony_ci#define REG_DOC_CTL7 0x0758 12418c2ecf20Sopenharmony_ci#define BIT_DOC_CTL7_DOC_CTRL7_7 BIT(7) 12428c2ecf20Sopenharmony_ci#define BIT_DOC_CTL7_DOC_CTRL7_6 BIT(6) 12438c2ecf20Sopenharmony_ci#define BIT_DOC_CTL7_DOC_CTRL7_5 BIT(5) 12448c2ecf20Sopenharmony_ci#define MSK_DOC_CTL7_DOC_CTRL7_4_3 0x18 12458c2ecf20Sopenharmony_ci#define MSK_DOC_CTL7_DOC_CTRL7_2_0 0x07 12468c2ecf20Sopenharmony_ci 12478c2ecf20Sopenharmony_ci/* DoC 9th Ctl, default value: 0x00 */ 12488c2ecf20Sopenharmony_ci#define REG_DOC_CTL8 0x076c 12498c2ecf20Sopenharmony_ci#define BIT_DOC_CTL8_DOC_CTRL8_7 BIT(7) 12508c2ecf20Sopenharmony_ci#define MSK_DOC_CTL8_DOC_CTRL8_6_4 0x70 12518c2ecf20Sopenharmony_ci#define MSK_DOC_CTL8_DOC_CTRL8_3_2 0x0c 12528c2ecf20Sopenharmony_ci#define MSK_DOC_CTL8_DOC_CTRL8_1_0 0x03 12538c2ecf20Sopenharmony_ci 12548c2ecf20Sopenharmony_ci/* DoC 10th Ctl, default value: 0x00 */ 12558c2ecf20Sopenharmony_ci#define REG_DOC_CTL9 0x076d 12568c2ecf20Sopenharmony_ci 12578c2ecf20Sopenharmony_ci/* DoC 11th Ctl, default value: 0x00 */ 12588c2ecf20Sopenharmony_ci#define REG_DOC_CTLA 0x076e 12598c2ecf20Sopenharmony_ci 12608c2ecf20Sopenharmony_ci/* DoC 15th Ctl, default value: 0x00 */ 12618c2ecf20Sopenharmony_ci#define REG_DOC_CTLE 0x0772 12628c2ecf20Sopenharmony_ci#define BIT_DOC_CTLE_DOC_CTRLE_7 BIT(7) 12638c2ecf20Sopenharmony_ci#define BIT_DOC_CTLE_DOC_CTRLE_6 BIT(6) 12648c2ecf20Sopenharmony_ci#define MSK_DOC_CTLE_DOC_CTRLE_5_4 0x30 12658c2ecf20Sopenharmony_ci#define MSK_DOC_CTLE_DOC_CTRLE_3_0 0x0f 12668c2ecf20Sopenharmony_ci 12678c2ecf20Sopenharmony_ci/* Interrupt Mask 1st, default value: 0x00 */ 12688c2ecf20Sopenharmony_ci#define REG_MHL_INT_0_MASK 0x0580 12698c2ecf20Sopenharmony_ci 12708c2ecf20Sopenharmony_ci/* Interrupt Mask 2nd, default value: 0x00 */ 12718c2ecf20Sopenharmony_ci#define REG_MHL_INT_1_MASK 0x0581 12728c2ecf20Sopenharmony_ci 12738c2ecf20Sopenharmony_ci/* Interrupt Mask 3rd, default value: 0x00 */ 12748c2ecf20Sopenharmony_ci#define REG_MHL_INT_2_MASK 0x0582 12758c2ecf20Sopenharmony_ci 12768c2ecf20Sopenharmony_ci/* Interrupt Mask 4th, default value: 0x00 */ 12778c2ecf20Sopenharmony_ci#define REG_MHL_INT_3_MASK 0x0583 12788c2ecf20Sopenharmony_ci 12798c2ecf20Sopenharmony_ci/* MDT Receive Time Out, default value: 0x00 */ 12808c2ecf20Sopenharmony_ci#define REG_MDT_RCV_TIMEOUT 0x0584 12818c2ecf20Sopenharmony_ci 12828c2ecf20Sopenharmony_ci/* MDT Transmit Time Out, default value: 0x00 */ 12838c2ecf20Sopenharmony_ci#define REG_MDT_XMIT_TIMEOUT 0x0585 12848c2ecf20Sopenharmony_ci 12858c2ecf20Sopenharmony_ci/* MDT Receive Control, default value: 0x00 */ 12868c2ecf20Sopenharmony_ci#define REG_MDT_RCV_CTRL 0x0586 12878c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_RCV_EN BIT(7) 12888c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_DELAY_RCV_EN BIT(6) 12898c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_RFIFO_OVER_WR_EN BIT(4) 12908c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_XFIFO_OVER_WR_EN BIT(3) 12918c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_DISABLE BIT(2) 12928c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_RFIFO_CLR_ALL BIT(1) 12938c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_CTRL_MDT_RFIFO_CLR_CUR BIT(0) 12948c2ecf20Sopenharmony_ci 12958c2ecf20Sopenharmony_ci/* MDT Receive Read Port, default value: 0x00 */ 12968c2ecf20Sopenharmony_ci#define REG_MDT_RCV_READ_PORT 0x0587 12978c2ecf20Sopenharmony_ci 12988c2ecf20Sopenharmony_ci/* MDT Transmit Control, default value: 0x70 */ 12998c2ecf20Sopenharmony_ci#define REG_MDT_XMIT_CTRL 0x0588 13008c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_EN BIT(7) 13018c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_CMD_MERGE_EN BIT(6) 13028c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_FIXED_BURST_LEN BIT(5) 13038c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_FIXED_AID BIT(4) 13048c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_SINGLE_RUN_EN BIT(3) 13058c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_CLR_ABORT_WAIT BIT(2) 13068c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_XFIFO_CLR_ALL BIT(1) 13078c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_CTRL_XFIFO_CLR_CUR BIT(0) 13088c2ecf20Sopenharmony_ci 13098c2ecf20Sopenharmony_ci/* MDT Receive WRITE Port, default value: 0x00 */ 13108c2ecf20Sopenharmony_ci#define REG_MDT_XMIT_WRITE_PORT 0x0589 13118c2ecf20Sopenharmony_ci 13128c2ecf20Sopenharmony_ci/* MDT RFIFO Status, default value: 0x00 */ 13138c2ecf20Sopenharmony_ci#define REG_MDT_RFIFO_STAT 0x058a 13148c2ecf20Sopenharmony_ci#define MSK_MDT_RFIFO_STAT_MDT_RFIFO_CNT 0xe0 13158c2ecf20Sopenharmony_ci#define MSK_MDT_RFIFO_STAT_MDT_RFIFO_CUR_BYTE_CNT 0x1f 13168c2ecf20Sopenharmony_ci 13178c2ecf20Sopenharmony_ci/* MDT XFIFO Status, default value: 0x80 */ 13188c2ecf20Sopenharmony_ci#define REG_MDT_XFIFO_STAT 0x058b 13198c2ecf20Sopenharmony_ci#define MSK_MDT_XFIFO_STAT_MDT_XFIFO_LEVEL_AVAIL 0xe0 13208c2ecf20Sopenharmony_ci#define BIT_MDT_XFIFO_STAT_MDT_XMIT_PRE_HS_EN BIT(4) 13218c2ecf20Sopenharmony_ci#define MSK_MDT_XFIFO_STAT_MDT_WRITE_BURST_LEN 0x0f 13228c2ecf20Sopenharmony_ci 13238c2ecf20Sopenharmony_ci/* MDT Interrupt 0, default value: 0x0c */ 13248c2ecf20Sopenharmony_ci#define REG_MDT_INT_0 0x058c 13258c2ecf20Sopenharmony_ci#define BIT_MDT_RFIFO_DATA_RDY BIT(0) 13268c2ecf20Sopenharmony_ci#define BIT_MDT_IDLE_AFTER_HAWB_DISABLE BIT(2) 13278c2ecf20Sopenharmony_ci#define BIT_MDT_XFIFO_EMPTY BIT(3) 13288c2ecf20Sopenharmony_ci 13298c2ecf20Sopenharmony_ci/* MDT Interrupt 0 Mask, default value: 0x00 */ 13308c2ecf20Sopenharmony_ci#define REG_MDT_INT_0_MASK 0x058d 13318c2ecf20Sopenharmony_ci 13328c2ecf20Sopenharmony_ci/* MDT Interrupt 1, default value: 0x00 */ 13338c2ecf20Sopenharmony_ci#define REG_MDT_INT_1 0x058e 13348c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_TIMEOUT BIT(0) 13358c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_SM_ABORT_PKT_RCVD BIT(1) 13368c2ecf20Sopenharmony_ci#define BIT_MDT_RCV_SM_ERROR BIT(2) 13378c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_TIMEOUT BIT(5) 13388c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_SM_ABORT_PKT_RCVD BIT(6) 13398c2ecf20Sopenharmony_ci#define BIT_MDT_XMIT_SM_ERROR BIT(7) 13408c2ecf20Sopenharmony_ci 13418c2ecf20Sopenharmony_ci/* MDT Interrupt 1 Mask, default value: 0x00 */ 13428c2ecf20Sopenharmony_ci#define REG_MDT_INT_1_MASK 0x058f 13438c2ecf20Sopenharmony_ci 13448c2ecf20Sopenharmony_ci/* CBUS Vendor ID, default value: 0x01 */ 13458c2ecf20Sopenharmony_ci#define REG_CBUS_VENDOR_ID 0x0590 13468c2ecf20Sopenharmony_ci 13478c2ecf20Sopenharmony_ci/* CBUS Connection Status, default value: 0x00 */ 13488c2ecf20Sopenharmony_ci#define REG_CBUS_STATUS 0x0591 13498c2ecf20Sopenharmony_ci#define BIT_CBUS_STATUS_MHL_CABLE_PRESENT BIT(4) 13508c2ecf20Sopenharmony_ci#define BIT_CBUS_STATUS_MSC_HB_SUCCESS BIT(3) 13518c2ecf20Sopenharmony_ci#define BIT_CBUS_STATUS_CBUS_HPD BIT(2) 13528c2ecf20Sopenharmony_ci#define BIT_CBUS_STATUS_MHL_MODE BIT(1) 13538c2ecf20Sopenharmony_ci#define BIT_CBUS_STATUS_CBUS_CONNECTED BIT(0) 13548c2ecf20Sopenharmony_ci 13558c2ecf20Sopenharmony_ci/* CBUS Interrupt 1st, default value: 0x00 */ 13568c2ecf20Sopenharmony_ci#define REG_CBUS_INT_0 0x0592 13578c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MT_DONE_NACK BIT(7) 13588c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MR_SET_INT BIT(6) 13598c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MR_WRITE_BURST BIT(5) 13608c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MR_MSC_MSG BIT(4) 13618c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MR_WRITE_STAT BIT(3) 13628c2ecf20Sopenharmony_ci#define BIT_CBUS_HPD_CHG BIT(2) 13638c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_MT_DONE BIT(1) 13648c2ecf20Sopenharmony_ci#define BIT_CBUS_CNX_CHG BIT(0) 13658c2ecf20Sopenharmony_ci 13668c2ecf20Sopenharmony_ci/* CBUS Interrupt Mask 1st, default value: 0x00 */ 13678c2ecf20Sopenharmony_ci#define REG_CBUS_INT_0_MASK 0x0593 13688c2ecf20Sopenharmony_ci 13698c2ecf20Sopenharmony_ci/* CBUS Interrupt 2nd, default value: 0x00 */ 13708c2ecf20Sopenharmony_ci#define REG_CBUS_INT_1 0x0594 13718c2ecf20Sopenharmony_ci#define BIT_CBUS_CMD_ABORT BIT(6) 13728c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_ABORT_RCVD BIT(3) 13738c2ecf20Sopenharmony_ci#define BIT_CBUS_DDC_ABORT BIT(2) 13748c2ecf20Sopenharmony_ci#define BIT_CBUS_CEC_ABORT BIT(1) 13758c2ecf20Sopenharmony_ci 13768c2ecf20Sopenharmony_ci/* CBUS Interrupt Mask 2nd, default value: 0x00 */ 13778c2ecf20Sopenharmony_ci#define REG_CBUS_INT_1_MASK 0x0595 13788c2ecf20Sopenharmony_ci 13798c2ecf20Sopenharmony_ci/* CBUS DDC Abort Interrupt, default value: 0x00 */ 13808c2ecf20Sopenharmony_ci#define REG_DDC_ABORT_INT 0x0598 13818c2ecf20Sopenharmony_ci 13828c2ecf20Sopenharmony_ci/* CBUS DDC Abort Interrupt Mask, default value: 0x00 */ 13838c2ecf20Sopenharmony_ci#define REG_DDC_ABORT_INT_MASK 0x0599 13848c2ecf20Sopenharmony_ci 13858c2ecf20Sopenharmony_ci/* CBUS MSC Requester Abort Interrupt, default value: 0x00 */ 13868c2ecf20Sopenharmony_ci#define REG_MSC_MT_ABORT_INT 0x059a 13878c2ecf20Sopenharmony_ci 13888c2ecf20Sopenharmony_ci/* CBUS MSC Requester Abort Interrupt Mask, default value: 0x00 */ 13898c2ecf20Sopenharmony_ci#define REG_MSC_MT_ABORT_INT_MASK 0x059b 13908c2ecf20Sopenharmony_ci 13918c2ecf20Sopenharmony_ci/* CBUS MSC Responder Abort Interrupt, default value: 0x00 */ 13928c2ecf20Sopenharmony_ci#define REG_MSC_MR_ABORT_INT 0x059c 13938c2ecf20Sopenharmony_ci 13948c2ecf20Sopenharmony_ci/* CBUS MSC Responder Abort Interrupt Mask, default value: 0x00 */ 13958c2ecf20Sopenharmony_ci#define REG_MSC_MR_ABORT_INT_MASK 0x059d 13968c2ecf20Sopenharmony_ci 13978c2ecf20Sopenharmony_ci/* CBUS RX DISCOVERY interrupt, default value: 0x00 */ 13988c2ecf20Sopenharmony_ci#define REG_CBUS_RX_DISC_INT0 0x059e 13998c2ecf20Sopenharmony_ci 14008c2ecf20Sopenharmony_ci/* CBUS RX DISCOVERY Interrupt Mask, default value: 0x00 */ 14018c2ecf20Sopenharmony_ci#define REG_CBUS_RX_DISC_INT0_MASK 0x059f 14028c2ecf20Sopenharmony_ci 14038c2ecf20Sopenharmony_ci/* CBUS_Link_Layer Control #8, default value: 0x00 */ 14048c2ecf20Sopenharmony_ci#define REG_CBUS_LINK_CTRL_8 0x05a7 14058c2ecf20Sopenharmony_ci 14068c2ecf20Sopenharmony_ci/* MDT State Machine Status, default value: 0x00 */ 14078c2ecf20Sopenharmony_ci#define REG_MDT_SM_STAT 0x05b5 14088c2ecf20Sopenharmony_ci#define MSK_MDT_SM_STAT_MDT_RCV_STATE 0xf0 14098c2ecf20Sopenharmony_ci#define MSK_MDT_SM_STAT_MDT_XMIT_STATE 0x0f 14108c2ecf20Sopenharmony_ci 14118c2ecf20Sopenharmony_ci/* CBUS MSC command trigger, default value: 0x00 */ 14128c2ecf20Sopenharmony_ci#define REG_MSC_COMMAND_START 0x05b8 14138c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_DEBUG BIT(5) 14148c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_WRITE_BURST BIT(4) 14158c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_WRITE_STAT BIT(3) 14168c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_READ_DEVCAP BIT(2) 14178c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_MSC_MSG BIT(1) 14188c2ecf20Sopenharmony_ci#define BIT_MSC_COMMAND_START_PEER BIT(0) 14198c2ecf20Sopenharmony_ci 14208c2ecf20Sopenharmony_ci/* CBUS MSC Command/Offset, default value: 0x00 */ 14218c2ecf20Sopenharmony_ci#define REG_MSC_CMD_OR_OFFSET 0x05b9 14228c2ecf20Sopenharmony_ci 14238c2ecf20Sopenharmony_ci/* CBUS MSC Transmit Data */ 14248c2ecf20Sopenharmony_ci#define REG_MSC_1ST_TRANSMIT_DATA 0x05ba 14258c2ecf20Sopenharmony_ci#define REG_MSC_2ND_TRANSMIT_DATA 0x05bb 14268c2ecf20Sopenharmony_ci 14278c2ecf20Sopenharmony_ci/* CBUS MSC Requester Received Data */ 14288c2ecf20Sopenharmony_ci#define REG_MSC_MT_RCVD_DATA0 0x05bc 14298c2ecf20Sopenharmony_ci#define REG_MSC_MT_RCVD_DATA1 0x05bd 14308c2ecf20Sopenharmony_ci 14318c2ecf20Sopenharmony_ci/* CBUS MSC Responder MSC_MSG Received Data */ 14328c2ecf20Sopenharmony_ci#define REG_MSC_MR_MSC_MSG_RCVD_1ST_DATA 0x05bf 14338c2ecf20Sopenharmony_ci#define REG_MSC_MR_MSC_MSG_RCVD_2ND_DATA 0x05c0 14348c2ecf20Sopenharmony_ci 14358c2ecf20Sopenharmony_ci/* CBUS MSC Heartbeat Control, default value: 0x27 */ 14368c2ecf20Sopenharmony_ci#define REG_MSC_HEARTBEAT_CTRL 0x05c4 14378c2ecf20Sopenharmony_ci#define BIT_MSC_HEARTBEAT_CTRL_MSC_HB_EN BIT(7) 14388c2ecf20Sopenharmony_ci#define MSK_MSC_HEARTBEAT_CTRL_MSC_HB_FAIL_LIMIT 0x70 14398c2ecf20Sopenharmony_ci#define MSK_MSC_HEARTBEAT_CTRL_MSC_HB_PERIOD_MSB 0x0f 14408c2ecf20Sopenharmony_ci 14418c2ecf20Sopenharmony_ci/* CBUS MSC Compatibility Control, default value: 0x02 */ 14428c2ecf20Sopenharmony_ci#define REG_CBUS_MSC_COMPAT_CTRL 0x05c7 14438c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_COMPAT_CTRL_XDEVCAP_EN BIT(7) 14448c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_COMPAT_CTRL_DISABLE_MSC_ON_CBUS BIT(6) 14458c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_COMPAT_CTRL_DISABLE_DDC_ON_CBUS BIT(5) 14468c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_COMPAT_CTRL_DISABLE_GET_DDC_ERRORCODE BIT(3) 14478c2ecf20Sopenharmony_ci#define BIT_CBUS_MSC_COMPAT_CTRL_DISABLE_GET_VS1_ERRORCODE BIT(2) 14488c2ecf20Sopenharmony_ci 14498c2ecf20Sopenharmony_ci/* CBUS3 Converter Control, default value: 0x24 */ 14508c2ecf20Sopenharmony_ci#define REG_CBUS3_CNVT 0x05dc 14518c2ecf20Sopenharmony_ci#define MSK_CBUS3_CNVT_CBUS3_RETRYLMT 0xf0 14528c2ecf20Sopenharmony_ci#define MSK_CBUS3_CNVT_CBUS3_PEERTOUT_SEL 0x0c 14538c2ecf20Sopenharmony_ci#define BIT_CBUS3_CNVT_TEARCBUS_EN BIT(1) 14548c2ecf20Sopenharmony_ci#define BIT_CBUS3_CNVT_CBUS3CNVT_EN BIT(0) 14558c2ecf20Sopenharmony_ci 14568c2ecf20Sopenharmony_ci/* Discovery Control1, default value: 0x24 */ 14578c2ecf20Sopenharmony_ci#define REG_DISC_CTRL1 0x05e0 14588c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL1_CBUS_INTR_EN BIT(7) 14598c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL1_HB_ONLY BIT(6) 14608c2ecf20Sopenharmony_ci#define MSK_DISC_CTRL1_DISC_ATT 0x30 14618c2ecf20Sopenharmony_ci#define MSK_DISC_CTRL1_DISC_CYC 0x0c 14628c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL1_DISC_EN BIT(0) 14638c2ecf20Sopenharmony_ci 14648c2ecf20Sopenharmony_ci#define VAL_PUP_OFF 0 14658c2ecf20Sopenharmony_ci#define VAL_PUP_20K 1 14668c2ecf20Sopenharmony_ci#define VAL_PUP_5K 2 14678c2ecf20Sopenharmony_ci 14688c2ecf20Sopenharmony_ci/* Discovery Control4, default value: 0x80 */ 14698c2ecf20Sopenharmony_ci#define REG_DISC_CTRL4 0x05e3 14708c2ecf20Sopenharmony_ci#define MSK_DISC_CTRL4_CBUSDISC_PUP_SEL 0xc0 14718c2ecf20Sopenharmony_ci#define MSK_DISC_CTRL4_CBUSIDLE_PUP_SEL 0x30 14728c2ecf20Sopenharmony_ci#define VAL_DISC_CTRL4(pup_disc, pup_idle) (((pup_disc) << 6) | (pup_idle << 4)) 14738c2ecf20Sopenharmony_ci 14748c2ecf20Sopenharmony_ci/* Discovery Control5, default value: 0x03 */ 14758c2ecf20Sopenharmony_ci#define REG_DISC_CTRL5 0x05e4 14768c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL5_DSM_OVRIDE BIT(3) 14778c2ecf20Sopenharmony_ci#define MSK_DISC_CTRL5_CBUSMHL_PUP_SEL 0x03 14788c2ecf20Sopenharmony_ci 14798c2ecf20Sopenharmony_ci/* Discovery Control8, default value: 0x81 */ 14808c2ecf20Sopenharmony_ci#define REG_DISC_CTRL8 0x05e7 14818c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL8_NOMHLINT_CLR_BYPASS BIT(7) 14828c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL8_DELAY_CBUS_INTR_EN BIT(0) 14838c2ecf20Sopenharmony_ci 14848c2ecf20Sopenharmony_ci/* Discovery Control9, default value: 0x54 */ 14858c2ecf20Sopenharmony_ci#define REG_DISC_CTRL9 0x05e8 14868c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_MHL3_RSEN_BYP BIT(7) 14878c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_MHL3DISC_EN BIT(6) 14888c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_WAKE_DRVFLT BIT(4) 14898c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_NOMHL_EST BIT(3) 14908c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_DISC_PULSE_PROCEED BIT(2) 14918c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_WAKE_PULSE_BYPASS BIT(1) 14928c2ecf20Sopenharmony_ci#define BIT_DISC_CTRL9_VBUS_OUTPUT_CAPABILITY_SRC BIT(0) 14938c2ecf20Sopenharmony_ci 14948c2ecf20Sopenharmony_ci/* Discovery Status1, default value: 0x00 */ 14958c2ecf20Sopenharmony_ci#define REG_DISC_STAT1 0x05eb 14968c2ecf20Sopenharmony_ci#define BIT_DISC_STAT1_PSM_OVRIDE BIT(5) 14978c2ecf20Sopenharmony_ci#define MSK_DISC_STAT1_DISC_SM 0x0f 14988c2ecf20Sopenharmony_ci 14998c2ecf20Sopenharmony_ci/* Discovery Status2, default value: 0x00 */ 15008c2ecf20Sopenharmony_ci#define REG_DISC_STAT2 0x05ec 15018c2ecf20Sopenharmony_ci#define BIT_DISC_STAT2_CBUS_OE_POL BIT(6) 15028c2ecf20Sopenharmony_ci#define BIT_DISC_STAT2_CBUS_SATUS BIT(5) 15038c2ecf20Sopenharmony_ci#define BIT_DISC_STAT2_RSEN BIT(4) 15048c2ecf20Sopenharmony_ci 15058c2ecf20Sopenharmony_ci#define MSK_DISC_STAT2_MHL_VRSN 0x0c 15068c2ecf20Sopenharmony_ci#define VAL_DISC_STAT2_DEFAULT 0x00 15078c2ecf20Sopenharmony_ci#define VAL_DISC_STAT2_MHL1_2 0x04 15088c2ecf20Sopenharmony_ci#define VAL_DISC_STAT2_MHL3 0x08 15098c2ecf20Sopenharmony_ci#define VAL_DISC_STAT2_RESERVED 0x0c 15108c2ecf20Sopenharmony_ci 15118c2ecf20Sopenharmony_ci#define MSK_DISC_STAT2_RGND 0x03 15128c2ecf20Sopenharmony_ci#define VAL_RGND_OPEN 0x00 15138c2ecf20Sopenharmony_ci#define VAL_RGND_2K 0x01 15148c2ecf20Sopenharmony_ci#define VAL_RGND_1K 0x02 15158c2ecf20Sopenharmony_ci#define VAL_RGND_SHORT 0x03 15168c2ecf20Sopenharmony_ci 15178c2ecf20Sopenharmony_ci/* Interrupt CBUS_reg1 INTR0, default value: 0x00 */ 15188c2ecf20Sopenharmony_ci#define REG_CBUS_DISC_INTR0 0x05ed 15198c2ecf20Sopenharmony_ci#define BIT_RGND_READY_INT BIT(6) 15208c2ecf20Sopenharmony_ci#define BIT_CBUS_MHL12_DISCON_INT BIT(5) 15218c2ecf20Sopenharmony_ci#define BIT_CBUS_MHL3_DISCON_INT BIT(4) 15228c2ecf20Sopenharmony_ci#define BIT_NOT_MHL_EST_INT BIT(3) 15238c2ecf20Sopenharmony_ci#define BIT_MHL_EST_INT BIT(2) 15248c2ecf20Sopenharmony_ci#define BIT_MHL3_EST_INT BIT(1) 15258c2ecf20Sopenharmony_ci#define VAL_CBUS_MHL_DISCON (BIT_CBUS_MHL12_DISCON_INT \ 15268c2ecf20Sopenharmony_ci | BIT_CBUS_MHL3_DISCON_INT \ 15278c2ecf20Sopenharmony_ci | BIT_NOT_MHL_EST_INT) 15288c2ecf20Sopenharmony_ci 15298c2ecf20Sopenharmony_ci/* Interrupt CBUS_reg1 INTR0 Mask, default value: 0x00 */ 15308c2ecf20Sopenharmony_ci#define REG_CBUS_DISC_INTR0_MASK 0x05ee 15318c2ecf20Sopenharmony_ci 15328c2ecf20Sopenharmony_ci#endif /* __SIL_SII8620_H__ */ 1533