18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DP_REG_H_ 78c2ecf20Sopenharmony_ci#define _DP_REG_H_ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* DP_TX Registers */ 108c2ecf20Sopenharmony_ci#define REG_DP_HW_VERSION (0x00000000) 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define REG_DP_SW_RESET (0x00000010) 138c2ecf20Sopenharmony_ci#define DP_SW_RESET (0x00000001) 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define REG_DP_PHY_CTRL (0x00000014) 168c2ecf20Sopenharmony_ci#define DP_PHY_CTRL_SW_RESET_PLL (0x00000001) 178c2ecf20Sopenharmony_ci#define DP_PHY_CTRL_SW_RESET (0x00000004) 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define REG_DP_CLK_CTRL (0x00000018) 208c2ecf20Sopenharmony_ci#define REG_DP_CLK_ACTIVE (0x0000001C) 218c2ecf20Sopenharmony_ci#define REG_DP_INTR_STATUS (0x00000020) 228c2ecf20Sopenharmony_ci#define REG_DP_INTR_STATUS2 (0x00000024) 238c2ecf20Sopenharmony_ci#define REG_DP_INTR_STATUS3 (0x00000028) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_CTRL (0x00000000) 268c2ecf20Sopenharmony_ci#define DP_DP_HPD_CTRL_HPD_EN (0x00000001) 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_INT_STATUS (0x00000004) 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_INT_ACK (0x00000008) 318c2ecf20Sopenharmony_ci#define DP_DP_HPD_PLUG_INT_ACK (0x00000001) 328c2ecf20Sopenharmony_ci#define DP_DP_IRQ_HPD_INT_ACK (0x00000002) 338c2ecf20Sopenharmony_ci#define DP_DP_HPD_REPLUG_INT_ACK (0x00000004) 348c2ecf20Sopenharmony_ci#define DP_DP_HPD_UNPLUG_INT_ACK (0x00000008) 358c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_BITS_MASK (0x0000000F) 368c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_BITS_SHIFT (0x1C) 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_INT_MASK (0x0000000C) 398c2ecf20Sopenharmony_ci#define DP_DP_HPD_PLUG_INT_MASK (0x00000001) 408c2ecf20Sopenharmony_ci#define DP_DP_IRQ_HPD_INT_MASK (0x00000002) 418c2ecf20Sopenharmony_ci#define DP_DP_HPD_REPLUG_INT_MASK (0x00000004) 428c2ecf20Sopenharmony_ci#define DP_DP_HPD_UNPLUG_INT_MASK (0x00000008) 438c2ecf20Sopenharmony_ci#define DP_DP_HPD_INT_MASK (DP_DP_HPD_PLUG_INT_MASK | \ 448c2ecf20Sopenharmony_ci DP_DP_IRQ_HPD_INT_MASK | \ 458c2ecf20Sopenharmony_ci DP_DP_HPD_REPLUG_INT_MASK | \ 468c2ecf20Sopenharmony_ci DP_DP_HPD_UNPLUG_INT_MASK) 478c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_CONNECTED (0x40000000) 488c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_PENDING (0x20000000) 498c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_DISCONNECTED (0x00000000) 508c2ecf20Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_MASK (0xE0000000) 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_REFTIMER (0x00000018) 538c2ecf20Sopenharmony_ci#define DP_DP_HPD_REFTIMER_ENABLE (1 << 16) 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_EVENT_TIME_0 (0x0000001C) 568c2ecf20Sopenharmony_ci#define REG_DP_DP_HPD_EVENT_TIME_1 (0x00000020) 578c2ecf20Sopenharmony_ci#define DP_DP_HPD_EVENT_TIME_0_VAL (0x3E800FA) 588c2ecf20Sopenharmony_ci#define DP_DP_HPD_EVENT_TIME_1_VAL (0x1F407D0) 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#define REG_DP_AUX_CTRL (0x00000030) 618c2ecf20Sopenharmony_ci#define DP_AUX_CTRL_ENABLE (0x00000001) 628c2ecf20Sopenharmony_ci#define DP_AUX_CTRL_RESET (0x00000002) 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define REG_DP_AUX_DATA (0x00000034) 658c2ecf20Sopenharmony_ci#define DP_AUX_DATA_READ (0x00000001) 668c2ecf20Sopenharmony_ci#define DP_AUX_DATA_WRITE (0x00000000) 678c2ecf20Sopenharmony_ci#define DP_AUX_DATA_OFFSET (0x00000008) 688c2ecf20Sopenharmony_ci#define DP_AUX_DATA_INDEX_OFFSET (0x00000010) 698c2ecf20Sopenharmony_ci#define DP_AUX_DATA_MASK (0x0000ff00) 708c2ecf20Sopenharmony_ci#define DP_AUX_DATA_INDEX_WRITE (0x80000000) 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci#define REG_DP_AUX_TRANS_CTRL (0x00000038) 738c2ecf20Sopenharmony_ci#define DP_AUX_TRANS_CTRL_I2C (0x00000100) 748c2ecf20Sopenharmony_ci#define DP_AUX_TRANS_CTRL_GO (0x00000200) 758c2ecf20Sopenharmony_ci#define DP_AUX_TRANS_CTRL_NO_SEND_ADDR (0x00000400) 768c2ecf20Sopenharmony_ci#define DP_AUX_TRANS_CTRL_NO_SEND_STOP (0x00000800) 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci#define REG_DP_TIMEOUT_COUNT (0x0000003C) 798c2ecf20Sopenharmony_ci#define REG_DP_AUX_LIMITS (0x00000040) 808c2ecf20Sopenharmony_ci#define REG_DP_AUX_STATUS (0x00000044) 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci#define DP_DPCD_CP_IRQ (0x201) 838c2ecf20Sopenharmony_ci#define DP_DPCD_RXSTATUS (0x69493) 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci#define DP_INTERRUPT_TRANS_NUM (0x000000A0) 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci#define REG_DP_MAINLINK_CTRL (0x00000000) 888c2ecf20Sopenharmony_ci#define DP_MAINLINK_CTRL_ENABLE (0x00000001) 898c2ecf20Sopenharmony_ci#define DP_MAINLINK_CTRL_RESET (0x00000002) 908c2ecf20Sopenharmony_ci#define DP_MAINLINK_CTRL_SW_BYPASS_SCRAMBLER (0x00000010) 918c2ecf20Sopenharmony_ci#define DP_MAINLINK_FB_BOUNDARY_SEL (0x02000000) 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci#define REG_DP_STATE_CTRL (0x00000004) 948c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN1 (0x00000001) 958c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN2 (0x00000002) 968c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN3 (0x00000004) 978c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN4 (0x00000008) 988c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_SYMBOL_ERR_MEASURE (0x00000010) 998c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_PRBS7 (0x00000020) 1008c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_LINK_TEST_CUSTOM_PATTERN (0x00000040) 1018c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_SEND_VIDEO (0x00000080) 1028c2ecf20Sopenharmony_ci#define DP_STATE_CTRL_PUSH_IDLE (0x00000100) 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci#define REG_DP_CONFIGURATION_CTRL (0x00000008) 1058c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_SYNC_ASYNC_CLK (0x00000001) 1068c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_STATIC_DYNAMIC_CN (0x00000002) 1078c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_P_INTERLACED (0x00000004) 1088c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_INTERLACED_BTF (0x00000008) 1098c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_NUM_OF_LANES (0x00000010) 1108c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_ENHANCED_FRAMING (0x00000040) 1118c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_SEND_VSC (0x00000080) 1128c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_BPC (0x00000100) 1138c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_ASSR (0x00000400) 1148c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_RGB_YUV (0x00000800) 1158c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_LSCLK_DIV (0x00002000) 1168c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_NUM_OF_LANES_SHIFT (0x04) 1178c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_BPC_SHIFT (0x08) 1188c2ecf20Sopenharmony_ci#define DP_CONFIGURATION_CTRL_LSCLK_DIV_SHIFT (0x0D) 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci#define REG_DP_SOFTWARE_MVID (0x00000010) 1218c2ecf20Sopenharmony_ci#define REG_DP_SOFTWARE_NVID (0x00000018) 1228c2ecf20Sopenharmony_ci#define REG_DP_TOTAL_HOR_VER (0x0000001C) 1238c2ecf20Sopenharmony_ci#define REG_DP_START_HOR_VER_FROM_SYNC (0x00000020) 1248c2ecf20Sopenharmony_ci#define REG_DP_HSYNC_VSYNC_WIDTH_POLARITY (0x00000024) 1258c2ecf20Sopenharmony_ci#define REG_DP_ACTIVE_HOR_VER (0x00000028) 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci#define REG_DP_MISC1_MISC0 (0x0000002C) 1288c2ecf20Sopenharmony_ci#define DP_MISC0_SYNCHRONOUS_CLK (0x00000001) 1298c2ecf20Sopenharmony_ci#define DP_MISC0_COLORIMETRY_CFG_SHIFT (0x00000001) 1308c2ecf20Sopenharmony_ci#define DP_MISC0_TEST_BITS_DEPTH_SHIFT (0x00000005) 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_ci#define DP_MISC0_COLORIMERY_CFG_LEGACY_RGB (0) 1338c2ecf20Sopenharmony_ci#define DP_MISC0_COLORIMERY_CFG_CEA_RGB (0x04) 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ci#define REG_DP_VALID_BOUNDARY (0x00000030) 1368c2ecf20Sopenharmony_ci#define REG_DP_VALID_BOUNDARY_2 (0x00000034) 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci#define REG_DP_LOGICAL2PHYSICAL_LANE_MAPPING (0x00000038) 1398c2ecf20Sopenharmony_ci#define LANE0_MAPPING_SHIFT (0x00000000) 1408c2ecf20Sopenharmony_ci#define LANE1_MAPPING_SHIFT (0x00000002) 1418c2ecf20Sopenharmony_ci#define LANE2_MAPPING_SHIFT (0x00000004) 1428c2ecf20Sopenharmony_ci#define LANE3_MAPPING_SHIFT (0x00000006) 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_ci#define REG_DP_MAINLINK_READY (0x00000040) 1458c2ecf20Sopenharmony_ci#define DP_MAINLINK_READY_FOR_VIDEO (0x00000001) 1468c2ecf20Sopenharmony_ci#define DP_MAINLINK_READY_LINK_TRAINING_SHIFT (0x00000003) 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci#define REG_DP_MAINLINK_LEVELS (0x00000044) 1498c2ecf20Sopenharmony_ci#define DP_MAINLINK_SAFE_TO_EXIT_LEVEL_2 (0x00000002) 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci#define REG_DP_TU (0x0000004C) 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci#define REG_DP_HBR2_COMPLIANCE_SCRAMBLER_RESET (0x00000054) 1558c2ecf20Sopenharmony_ci#define DP_HBR2_ERM_PATTERN (0x00010000) 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG0 (0x000000C0) 1588c2ecf20Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG1 (0x000000C4) 1598c2ecf20Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG2 (0x000000C8) 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_ci#define MMSS_DP_MISC1_MISC0 (0x0000002C) 1628c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_GEN (0x00000080) 1638c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_32 (0x00000084) 1648c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_32 (0x00000088) 1658c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_44 (0x0000008C) 1668c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_44 (0x00000090) 1678c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_48 (0x00000094) 1688c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_48 (0x00000098) 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci#define MMSS_DP_PSR_CRC_RG (0x00000154) 1718c2ecf20Sopenharmony_ci#define MMSS_DP_PSR_CRC_B (0x00000158) 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ci#define REG_DP_COMPRESSION_MODE_CTRL (0x00000180) 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_CFG (0x00000200) 1768c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_STATUS (0x00000204) 1778c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_PKT_CTRL (0x00000208) 1788c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_PKT_CTRL2 (0x0000020C) 1798c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ACR_CTRL (0x00000210) 1808c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_CTRL_RESET (0x00000214) 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ci#define MMSS_DP_SDP_CFG (0x00000228) 1838c2ecf20Sopenharmony_ci#define MMSS_DP_SDP_CFG2 (0x0000022C) 1848c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMESTAMP_0 (0x00000230) 1858c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_TIMESTAMP_1 (0x00000234) 1868c2ecf20Sopenharmony_ci 1878c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_STREAM_0 (0x00000240) 1888c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_STREAM_1 (0x00000244) 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_0 (0x00000250) 1918c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_1 (0x00000254) 1928c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_2 (0x00000258) 1938c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_3 (0x0000025C) 1948c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_4 (0x00000260) 1958c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_5 (0x00000264) 1968c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_6 (0x00000268) 1978c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_7 (0x0000026C) 1988c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_8 (0x00000270) 1998c2ecf20Sopenharmony_ci#define MMSS_DP_EXTENSION_9 (0x00000274) 2008c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_0 (0x00000278) 2018c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_1 (0x0000027C) 2028c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_2 (0x00000280) 2038c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_3 (0x00000284) 2048c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_4 (0x00000288) 2058c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_5 (0x0000028C) 2068c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_0 (0x00000290) 2078c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_1 (0x00000294) 2088c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_2 (0x00000298) 2098c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_3 (0x0000029C) 2108c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_4 (0x000002A0) 2118c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_5 (0x000002A4) 2128c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_0 (0x000002A8) 2138c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_1 (0x000002AC) 2148c2ecf20Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_2 (0x000002B0) 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_0 (0x00000300) 2178c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_1 (0x00000304) 2188c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_2 (0x00000308) 2198c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_3 (0x0000030C) 2208c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_4 (0x00000310) 2218c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_5 (0x00000314) 2228c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_6 (0x00000318) 2238c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_7 (0x0000031C) 2248c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_8 (0x00000320) 2258c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC0_9 (0x00000324) 2268c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_0 (0x00000328) 2278c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_1 (0x0000032C) 2288c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_2 (0x00000330) 2298c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_3 (0x00000334) 2308c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_4 (0x00000338) 2318c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_5 (0x0000033C) 2328c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_6 (0x00000340) 2338c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_7 (0x00000344) 2348c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_8 (0x00000348) 2358c2ecf20Sopenharmony_ci#define MMSS_DP_GENERIC1_9 (0x0000034C) 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_0 (0x000002D0) 2388c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_1 (0x000002D4) 2398c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_2 (0x000002D8) 2408c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_3 (0x000002DC) 2418c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_4 (0x000002E0) 2428c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_5 (0x000002E4) 2438c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_6 (0x000002E8) 2448c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_7 (0x000002EC) 2458c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_8 (0x000002F0) 2468c2ecf20Sopenharmony_ci#define MMSS_DP_VSCEXT_9 (0x000002F4) 2478c2ecf20Sopenharmony_ci 2488c2ecf20Sopenharmony_ci#define MMSS_DP_BIST_ENABLE (0x00000000) 2498c2ecf20Sopenharmony_ci#define DP_BIST_ENABLE_DPBIST_EN (0x00000001) 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ci#define MMSS_DP_TIMING_ENGINE_EN (0x00000010) 2528c2ecf20Sopenharmony_ci#define DP_TIMING_ENGINE_EN_EN (0x00000001) 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_CONFIG (0x00000014) 2558c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_HSYNC_CTL (0x00000018) 2568c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PERIOD_F0 (0x0000001C) 2578c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PERIOD_F1 (0x00000020) 2588c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PULSE_WIDTH_F0 (0x00000024) 2598c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PULSE_WIDTH_F1 (0x00000028) 2608c2ecf20Sopenharmony_ci#define MMSS_INTF_DISPLAY_V_START_F0 (0x0000002C) 2618c2ecf20Sopenharmony_ci#define MMSS_INTF_DISPLAY_V_START_F1 (0x00000030) 2628c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_V_END_F0 (0x00000034) 2638c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_V_END_F1 (0x00000038) 2648c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_START_F0 (0x0000003C) 2658c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_START_F1 (0x00000040) 2668c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_END_F0 (0x00000044) 2678c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_END_F1 (0x00000048) 2688c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_HCTL (0x0000004C) 2698c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_HCTL (0x00000050) 2708c2ecf20Sopenharmony_ci#define MMSS_DP_INTF_POLARITY_CTL (0x00000058) 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci#define MMSS_DP_TPG_MAIN_CONTROL (0x00000060) 2738c2ecf20Sopenharmony_ci#define MMSS_DP_DSC_DTO (0x0000007C) 2748c2ecf20Sopenharmony_ci#define DP_TPG_CHECKERED_RECT_PATTERN (0x00000100) 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci#define MMSS_DP_TPG_VIDEO_CONFIG (0x00000064) 2778c2ecf20Sopenharmony_ci#define DP_TPG_VIDEO_CONFIG_BPP_8BIT (0x00000001) 2788c2ecf20Sopenharmony_ci#define DP_TPG_VIDEO_CONFIG_RGB (0x00000004) 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci#define MMSS_DP_ASYNC_FIFO_CONFIG (0x00000088) 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_ci#define REG_DP_PHY_AUX_INTERRUPT_CLEAR (0x0000004C) 2838c2ecf20Sopenharmony_ci#define REG_DP_PHY_AUX_BIST_CFG (0x00000050) 2848c2ecf20Sopenharmony_ci#define REG_DP_PHY_AUX_INTERRUPT_STATUS (0x000000BC) 2858c2ecf20Sopenharmony_ci 2868c2ecf20Sopenharmony_ci/* DP HDCP 1.3 registers */ 2878c2ecf20Sopenharmony_ci#define DP_HDCP_CTRL (0x0A0) 2888c2ecf20Sopenharmony_ci#define DP_HDCP_STATUS (0x0A4) 2898c2ecf20Sopenharmony_ci#define DP_HDCP_SW_UPPER_AKSV (0x098) 2908c2ecf20Sopenharmony_ci#define DP_HDCP_SW_LOWER_AKSV (0x09C) 2918c2ecf20Sopenharmony_ci#define DP_HDCP_ENTROPY_CTRL0 (0x350) 2928c2ecf20Sopenharmony_ci#define DP_HDCP_ENTROPY_CTRL1 (0x35C) 2938c2ecf20Sopenharmony_ci#define DP_HDCP_SHA_STATUS (0x0C8) 2948c2ecf20Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA2_0 (0x0B0) 2958c2ecf20Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA3 (0x0A4) 2968c2ecf20Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA4 (0x0A8) 2978c2ecf20Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA5 (0x0C0) 2988c2ecf20Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA6 (0x0C4) 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_SHA_CTRL (0x024) 3018c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_SHA_DATA (0x028) 3028c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA0 (0x004) 3038c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA1 (0x008) 3048c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA7 (0x00C) 3058c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA8 (0x010) 3068c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA9 (0x014) 3078c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA10 (0x018) 3088c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA11 (0x01C) 3098c2ecf20Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA12 (0x020) 3108c2ecf20Sopenharmony_ci 3118c2ecf20Sopenharmony_ci#endif /* _DP_REG_H_ */ 312