162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DP_REG_H_ 762306a36Sopenharmony_ci#define _DP_REG_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* DP_TX Registers */ 1062306a36Sopenharmony_ci#define REG_DP_HW_VERSION (0x00000000) 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define REG_DP_SW_RESET (0x00000010) 1362306a36Sopenharmony_ci#define DP_SW_RESET (0x00000001) 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define REG_DP_PHY_CTRL (0x00000014) 1662306a36Sopenharmony_ci#define DP_PHY_CTRL_SW_RESET_PLL (0x00000001) 1762306a36Sopenharmony_ci#define DP_PHY_CTRL_SW_RESET (0x00000004) 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#define REG_DP_CLK_CTRL (0x00000018) 2062306a36Sopenharmony_ci#define REG_DP_CLK_ACTIVE (0x0000001C) 2162306a36Sopenharmony_ci#define REG_DP_INTR_STATUS (0x00000020) 2262306a36Sopenharmony_ci#define REG_DP_INTR_STATUS2 (0x00000024) 2362306a36Sopenharmony_ci#define REG_DP_INTR_STATUS3 (0x00000028) 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#define REG_DP_INTR_STATUS4 (0x0000002C) 2662306a36Sopenharmony_ci#define PSR_UPDATE_INT (0x00000001) 2762306a36Sopenharmony_ci#define PSR_CAPTURE_INT (0x00000004) 2862306a36Sopenharmony_ci#define PSR_EXIT_INT (0x00000010) 2962306a36Sopenharmony_ci#define PSR_UPDATE_ERROR_INT (0x00000040) 3062306a36Sopenharmony_ci#define PSR_WAKE_ERROR_INT (0x00000100) 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#define REG_DP_INTR_MASK4 (0x00000030) 3362306a36Sopenharmony_ci#define PSR_UPDATE_MASK (0x00000001) 3462306a36Sopenharmony_ci#define PSR_CAPTURE_MASK (0x00000002) 3562306a36Sopenharmony_ci#define PSR_EXIT_MASK (0x00000004) 3662306a36Sopenharmony_ci#define PSR_UPDATE_ERROR_MASK (0x00000008) 3762306a36Sopenharmony_ci#define PSR_WAKE_ERROR_MASK (0x00000010) 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci#define REG_DP_DP_HPD_CTRL (0x00000000) 4062306a36Sopenharmony_ci#define DP_DP_HPD_CTRL_HPD_EN (0x00000001) 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci#define REG_DP_DP_HPD_INT_STATUS (0x00000004) 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci#define REG_DP_DP_HPD_INT_ACK (0x00000008) 4562306a36Sopenharmony_ci#define DP_DP_HPD_PLUG_INT_ACK (0x00000001) 4662306a36Sopenharmony_ci#define DP_DP_IRQ_HPD_INT_ACK (0x00000002) 4762306a36Sopenharmony_ci#define DP_DP_HPD_REPLUG_INT_ACK (0x00000004) 4862306a36Sopenharmony_ci#define DP_DP_HPD_UNPLUG_INT_ACK (0x00000008) 4962306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_BITS_MASK (0x0000000F) 5062306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_BITS_SHIFT (0x1C) 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci#define REG_DP_DP_HPD_INT_MASK (0x0000000C) 5362306a36Sopenharmony_ci#define DP_DP_HPD_PLUG_INT_MASK (0x00000001) 5462306a36Sopenharmony_ci#define DP_DP_IRQ_HPD_INT_MASK (0x00000002) 5562306a36Sopenharmony_ci#define DP_DP_HPD_REPLUG_INT_MASK (0x00000004) 5662306a36Sopenharmony_ci#define DP_DP_HPD_UNPLUG_INT_MASK (0x00000008) 5762306a36Sopenharmony_ci#define DP_DP_HPD_INT_MASK (DP_DP_HPD_PLUG_INT_MASK | \ 5862306a36Sopenharmony_ci DP_DP_IRQ_HPD_INT_MASK | \ 5962306a36Sopenharmony_ci DP_DP_HPD_REPLUG_INT_MASK | \ 6062306a36Sopenharmony_ci DP_DP_HPD_UNPLUG_INT_MASK) 6162306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_CONNECTED (0x40000000) 6262306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_PENDING (0x20000000) 6362306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_DISCONNECTED (0x00000000) 6462306a36Sopenharmony_ci#define DP_DP_HPD_STATE_STATUS_MASK (0xE0000000) 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci#define REG_DP_DP_HPD_REFTIMER (0x00000018) 6762306a36Sopenharmony_ci#define DP_DP_HPD_REFTIMER_ENABLE (1 << 16) 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci#define REG_DP_DP_HPD_EVENT_TIME_0 (0x0000001C) 7062306a36Sopenharmony_ci#define REG_DP_DP_HPD_EVENT_TIME_1 (0x00000020) 7162306a36Sopenharmony_ci#define DP_DP_HPD_EVENT_TIME_0_VAL (0x3E800FA) 7262306a36Sopenharmony_ci#define DP_DP_HPD_EVENT_TIME_1_VAL (0x1F407D0) 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci#define REG_DP_AUX_CTRL (0x00000030) 7562306a36Sopenharmony_ci#define DP_AUX_CTRL_ENABLE (0x00000001) 7662306a36Sopenharmony_ci#define DP_AUX_CTRL_RESET (0x00000002) 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci#define REG_DP_AUX_DATA (0x00000034) 7962306a36Sopenharmony_ci#define DP_AUX_DATA_READ (0x00000001) 8062306a36Sopenharmony_ci#define DP_AUX_DATA_WRITE (0x00000000) 8162306a36Sopenharmony_ci#define DP_AUX_DATA_OFFSET (0x00000008) 8262306a36Sopenharmony_ci#define DP_AUX_DATA_INDEX_OFFSET (0x00000010) 8362306a36Sopenharmony_ci#define DP_AUX_DATA_MASK (0x0000ff00) 8462306a36Sopenharmony_ci#define DP_AUX_DATA_INDEX_WRITE (0x80000000) 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#define REG_DP_AUX_TRANS_CTRL (0x00000038) 8762306a36Sopenharmony_ci#define DP_AUX_TRANS_CTRL_I2C (0x00000100) 8862306a36Sopenharmony_ci#define DP_AUX_TRANS_CTRL_GO (0x00000200) 8962306a36Sopenharmony_ci#define DP_AUX_TRANS_CTRL_NO_SEND_ADDR (0x00000400) 9062306a36Sopenharmony_ci#define DP_AUX_TRANS_CTRL_NO_SEND_STOP (0x00000800) 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci#define REG_DP_TIMEOUT_COUNT (0x0000003C) 9362306a36Sopenharmony_ci#define REG_DP_AUX_LIMITS (0x00000040) 9462306a36Sopenharmony_ci#define REG_DP_AUX_STATUS (0x00000044) 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci#define DP_DPCD_CP_IRQ (0x201) 9762306a36Sopenharmony_ci#define DP_DPCD_RXSTATUS (0x69493) 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci#define DP_INTERRUPT_TRANS_NUM (0x000000A0) 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ci#define REG_DP_MAINLINK_CTRL (0x00000000) 10262306a36Sopenharmony_ci#define DP_MAINLINK_CTRL_ENABLE (0x00000001) 10362306a36Sopenharmony_ci#define DP_MAINLINK_CTRL_RESET (0x00000002) 10462306a36Sopenharmony_ci#define DP_MAINLINK_CTRL_SW_BYPASS_SCRAMBLER (0x00000010) 10562306a36Sopenharmony_ci#define DP_MAINLINK_FB_BOUNDARY_SEL (0x02000000) 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ci#define REG_DP_STATE_CTRL (0x00000004) 10862306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN1 (0x00000001) 10962306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN2 (0x00000002) 11062306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN3 (0x00000004) 11162306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_TRAINING_PATTERN4 (0x00000008) 11262306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_SYMBOL_ERR_MEASURE (0x00000010) 11362306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_PRBS7 (0x00000020) 11462306a36Sopenharmony_ci#define DP_STATE_CTRL_LINK_TEST_CUSTOM_PATTERN (0x00000040) 11562306a36Sopenharmony_ci#define DP_STATE_CTRL_SEND_VIDEO (0x00000080) 11662306a36Sopenharmony_ci#define DP_STATE_CTRL_PUSH_IDLE (0x00000100) 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ci#define REG_DP_CONFIGURATION_CTRL (0x00000008) 11962306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_SYNC_ASYNC_CLK (0x00000001) 12062306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_STATIC_DYNAMIC_CN (0x00000002) 12162306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_P_INTERLACED (0x00000004) 12262306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_INTERLACED_BTF (0x00000008) 12362306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_NUM_OF_LANES (0x00000010) 12462306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_ENHANCED_FRAMING (0x00000040) 12562306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_SEND_VSC (0x00000080) 12662306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_BPC (0x00000100) 12762306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_ASSR (0x00000400) 12862306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_RGB_YUV (0x00000800) 12962306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_LSCLK_DIV (0x00002000) 13062306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_NUM_OF_LANES_SHIFT (0x04) 13162306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_BPC_SHIFT (0x08) 13262306a36Sopenharmony_ci#define DP_CONFIGURATION_CTRL_LSCLK_DIV_SHIFT (0x0D) 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci#define REG_DP_SOFTWARE_MVID (0x00000010) 13562306a36Sopenharmony_ci#define REG_DP_SOFTWARE_NVID (0x00000018) 13662306a36Sopenharmony_ci#define REG_DP_TOTAL_HOR_VER (0x0000001C) 13762306a36Sopenharmony_ci#define REG_DP_START_HOR_VER_FROM_SYNC (0x00000020) 13862306a36Sopenharmony_ci#define REG_DP_HSYNC_VSYNC_WIDTH_POLARITY (0x00000024) 13962306a36Sopenharmony_ci#define REG_DP_ACTIVE_HOR_VER (0x00000028) 14062306a36Sopenharmony_ci 14162306a36Sopenharmony_ci#define REG_DP_MISC1_MISC0 (0x0000002C) 14262306a36Sopenharmony_ci#define DP_MISC0_SYNCHRONOUS_CLK (0x00000001) 14362306a36Sopenharmony_ci#define DP_MISC0_COLORIMETRY_CFG_SHIFT (0x00000001) 14462306a36Sopenharmony_ci#define DP_MISC0_TEST_BITS_DEPTH_SHIFT (0x00000005) 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ci#define DP_MISC0_COLORIMERY_CFG_LEGACY_RGB (0) 14762306a36Sopenharmony_ci#define DP_MISC0_COLORIMERY_CFG_CEA_RGB (0x04) 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ci#define REG_DP_VALID_BOUNDARY (0x00000030) 15062306a36Sopenharmony_ci#define REG_DP_VALID_BOUNDARY_2 (0x00000034) 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ci#define REG_DP_LOGICAL2PHYSICAL_LANE_MAPPING (0x00000038) 15362306a36Sopenharmony_ci#define LANE0_MAPPING_SHIFT (0x00000000) 15462306a36Sopenharmony_ci#define LANE1_MAPPING_SHIFT (0x00000002) 15562306a36Sopenharmony_ci#define LANE2_MAPPING_SHIFT (0x00000004) 15662306a36Sopenharmony_ci#define LANE3_MAPPING_SHIFT (0x00000006) 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci#define REG_DP_MAINLINK_READY (0x00000040) 15962306a36Sopenharmony_ci#define DP_MAINLINK_READY_FOR_VIDEO (0x00000001) 16062306a36Sopenharmony_ci#define DP_MAINLINK_READY_LINK_TRAINING_SHIFT (0x00000003) 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci#define REG_DP_MAINLINK_LEVELS (0x00000044) 16362306a36Sopenharmony_ci#define DP_MAINLINK_SAFE_TO_EXIT_LEVEL_2 (0x00000002) 16462306a36Sopenharmony_ci 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ci#define REG_DP_TU (0x0000004C) 16762306a36Sopenharmony_ci 16862306a36Sopenharmony_ci#define REG_DP_HBR2_COMPLIANCE_SCRAMBLER_RESET (0x00000054) 16962306a36Sopenharmony_ci#define DP_HBR2_ERM_PATTERN (0x00010000) 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG0 (0x000000C0) 17262306a36Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG1 (0x000000C4) 17362306a36Sopenharmony_ci#define REG_DP_TEST_80BIT_CUSTOM_PATTERN_REG2 (0x000000C8) 17462306a36Sopenharmony_ci 17562306a36Sopenharmony_ci#define MMSS_DP_MISC1_MISC0 (0x0000002C) 17662306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_GEN (0x00000080) 17762306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_32 (0x00000084) 17862306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_32 (0x00000088) 17962306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_44 (0x0000008C) 18062306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_44 (0x00000090) 18162306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_RBR_48 (0x00000094) 18262306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMING_HBR_48 (0x00000098) 18362306a36Sopenharmony_ci 18462306a36Sopenharmony_ci#define REG_PSR_CONFIG (0x00000100) 18562306a36Sopenharmony_ci#define DISABLE_PSR (0x00000000) 18662306a36Sopenharmony_ci#define PSR1_SUPPORTED (0x00000001) 18762306a36Sopenharmony_ci#define PSR2_WITHOUT_FRAMESYNC (0x00000002) 18862306a36Sopenharmony_ci#define PSR2_WITH_FRAMESYNC (0x00000003) 18962306a36Sopenharmony_ci 19062306a36Sopenharmony_ci#define REG_PSR_CMD (0x00000110) 19162306a36Sopenharmony_ci#define PSR_ENTER (0x00000001) 19262306a36Sopenharmony_ci#define PSR_EXIT (0x00000002) 19362306a36Sopenharmony_ci 19462306a36Sopenharmony_ci#define MMSS_DP_PSR_CRC_RG (0x00000154) 19562306a36Sopenharmony_ci#define MMSS_DP_PSR_CRC_B (0x00000158) 19662306a36Sopenharmony_ci 19762306a36Sopenharmony_ci#define REG_DP_COMPRESSION_MODE_CTRL (0x00000180) 19862306a36Sopenharmony_ci 19962306a36Sopenharmony_ci#define MMSS_DP_AUDIO_CFG (0x00000200) 20062306a36Sopenharmony_ci#define MMSS_DP_AUDIO_STATUS (0x00000204) 20162306a36Sopenharmony_ci#define MMSS_DP_AUDIO_PKT_CTRL (0x00000208) 20262306a36Sopenharmony_ci#define MMSS_DP_AUDIO_PKT_CTRL2 (0x0000020C) 20362306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ACR_CTRL (0x00000210) 20462306a36Sopenharmony_ci#define MMSS_DP_AUDIO_CTRL_RESET (0x00000214) 20562306a36Sopenharmony_ci 20662306a36Sopenharmony_ci#define MMSS_DP_SDP_CFG (0x00000228) 20762306a36Sopenharmony_ci#define MMSS_DP_SDP_CFG2 (0x0000022C) 20862306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMESTAMP_0 (0x00000230) 20962306a36Sopenharmony_ci#define MMSS_DP_AUDIO_TIMESTAMP_1 (0x00000234) 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci#define MMSS_DP_AUDIO_STREAM_0 (0x00000240) 21262306a36Sopenharmony_ci#define MMSS_DP_AUDIO_STREAM_1 (0x00000244) 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ci#define MMSS_DP_SDP_CFG3 (0x0000024c) 21562306a36Sopenharmony_ci#define UPDATE_SDP (0x00000001) 21662306a36Sopenharmony_ci 21762306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_0 (0x00000250) 21862306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_1 (0x00000254) 21962306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_2 (0x00000258) 22062306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_3 (0x0000025C) 22162306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_4 (0x00000260) 22262306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_5 (0x00000264) 22362306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_6 (0x00000268) 22462306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_7 (0x0000026C) 22562306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_8 (0x00000270) 22662306a36Sopenharmony_ci#define MMSS_DP_EXTENSION_9 (0x00000274) 22762306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_0 (0x00000278) 22862306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_1 (0x0000027C) 22962306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_2 (0x00000280) 23062306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_3 (0x00000284) 23162306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_4 (0x00000288) 23262306a36Sopenharmony_ci#define MMSS_DP_AUDIO_COPYMANAGEMENT_5 (0x0000028C) 23362306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_0 (0x00000290) 23462306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_1 (0x00000294) 23562306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_2 (0x00000298) 23662306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_3 (0x0000029C) 23762306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_4 (0x000002A0) 23862306a36Sopenharmony_ci#define MMSS_DP_AUDIO_ISRC_5 (0x000002A4) 23962306a36Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_0 (0x000002A8) 24062306a36Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_1 (0x000002AC) 24162306a36Sopenharmony_ci#define MMSS_DP_AUDIO_INFOFRAME_2 (0x000002B0) 24262306a36Sopenharmony_ci 24362306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_0 (0x00000300) 24462306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_1 (0x00000304) 24562306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_2 (0x00000308) 24662306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_3 (0x0000030C) 24762306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_4 (0x00000310) 24862306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_5 (0x00000314) 24962306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_6 (0x00000318) 25062306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_7 (0x0000031C) 25162306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_8 (0x00000320) 25262306a36Sopenharmony_ci#define MMSS_DP_GENERIC0_9 (0x00000324) 25362306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_0 (0x00000328) 25462306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_1 (0x0000032C) 25562306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_2 (0x00000330) 25662306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_3 (0x00000334) 25762306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_4 (0x00000338) 25862306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_5 (0x0000033C) 25962306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_6 (0x00000340) 26062306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_7 (0x00000344) 26162306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_8 (0x00000348) 26262306a36Sopenharmony_ci#define MMSS_DP_GENERIC1_9 (0x0000034C) 26362306a36Sopenharmony_ci 26462306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_0 (0x000002D0) 26562306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_1 (0x000002D4) 26662306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_2 (0x000002D8) 26762306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_3 (0x000002DC) 26862306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_4 (0x000002E0) 26962306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_5 (0x000002E4) 27062306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_6 (0x000002E8) 27162306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_7 (0x000002EC) 27262306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_8 (0x000002F0) 27362306a36Sopenharmony_ci#define MMSS_DP_VSCEXT_9 (0x000002F4) 27462306a36Sopenharmony_ci 27562306a36Sopenharmony_ci#define MMSS_DP_BIST_ENABLE (0x00000000) 27662306a36Sopenharmony_ci#define DP_BIST_ENABLE_DPBIST_EN (0x00000001) 27762306a36Sopenharmony_ci 27862306a36Sopenharmony_ci#define MMSS_DP_TIMING_ENGINE_EN (0x00000010) 27962306a36Sopenharmony_ci#define DP_TIMING_ENGINE_EN_EN (0x00000001) 28062306a36Sopenharmony_ci 28162306a36Sopenharmony_ci#define MMSS_DP_INTF_CONFIG (0x00000014) 28262306a36Sopenharmony_ci#define MMSS_DP_INTF_HSYNC_CTL (0x00000018) 28362306a36Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PERIOD_F0 (0x0000001C) 28462306a36Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PERIOD_F1 (0x00000020) 28562306a36Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PULSE_WIDTH_F0 (0x00000024) 28662306a36Sopenharmony_ci#define MMSS_DP_INTF_VSYNC_PULSE_WIDTH_F1 (0x00000028) 28762306a36Sopenharmony_ci#define MMSS_INTF_DISPLAY_V_START_F0 (0x0000002C) 28862306a36Sopenharmony_ci#define MMSS_INTF_DISPLAY_V_START_F1 (0x00000030) 28962306a36Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_V_END_F0 (0x00000034) 29062306a36Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_V_END_F1 (0x00000038) 29162306a36Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_START_F0 (0x0000003C) 29262306a36Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_START_F1 (0x00000040) 29362306a36Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_END_F0 (0x00000044) 29462306a36Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_V_END_F1 (0x00000048) 29562306a36Sopenharmony_ci#define MMSS_DP_INTF_DISPLAY_HCTL (0x0000004C) 29662306a36Sopenharmony_ci#define MMSS_DP_INTF_ACTIVE_HCTL (0x00000050) 29762306a36Sopenharmony_ci#define MMSS_DP_INTF_POLARITY_CTL (0x00000058) 29862306a36Sopenharmony_ci 29962306a36Sopenharmony_ci#define MMSS_DP_TPG_MAIN_CONTROL (0x00000060) 30062306a36Sopenharmony_ci#define MMSS_DP_DSC_DTO (0x0000007C) 30162306a36Sopenharmony_ci#define DP_TPG_CHECKERED_RECT_PATTERN (0x00000100) 30262306a36Sopenharmony_ci 30362306a36Sopenharmony_ci#define MMSS_DP_TPG_VIDEO_CONFIG (0x00000064) 30462306a36Sopenharmony_ci#define DP_TPG_VIDEO_CONFIG_BPP_8BIT (0x00000001) 30562306a36Sopenharmony_ci#define DP_TPG_VIDEO_CONFIG_RGB (0x00000004) 30662306a36Sopenharmony_ci 30762306a36Sopenharmony_ci#define MMSS_DP_ASYNC_FIFO_CONFIG (0x00000088) 30862306a36Sopenharmony_ci 30962306a36Sopenharmony_ci#define REG_DP_PHY_AUX_INTERRUPT_CLEAR (0x0000004C) 31062306a36Sopenharmony_ci#define REG_DP_PHY_AUX_BIST_CFG (0x00000050) 31162306a36Sopenharmony_ci#define REG_DP_PHY_AUX_INTERRUPT_STATUS (0x000000BC) 31262306a36Sopenharmony_ci 31362306a36Sopenharmony_ci/* DP HDCP 1.3 registers */ 31462306a36Sopenharmony_ci#define DP_HDCP_CTRL (0x0A0) 31562306a36Sopenharmony_ci#define DP_HDCP_STATUS (0x0A4) 31662306a36Sopenharmony_ci#define DP_HDCP_SW_UPPER_AKSV (0x098) 31762306a36Sopenharmony_ci#define DP_HDCP_SW_LOWER_AKSV (0x09C) 31862306a36Sopenharmony_ci#define DP_HDCP_ENTROPY_CTRL0 (0x350) 31962306a36Sopenharmony_ci#define DP_HDCP_ENTROPY_CTRL1 (0x35C) 32062306a36Sopenharmony_ci#define DP_HDCP_SHA_STATUS (0x0C8) 32162306a36Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA2_0 (0x0B0) 32262306a36Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA3 (0x0A4) 32362306a36Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA4 (0x0A8) 32462306a36Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA5 (0x0C0) 32562306a36Sopenharmony_ci#define DP_HDCP_RCVPORT_DATA6 (0x0C4) 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_SHA_CTRL (0x024) 32862306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_SHA_DATA (0x028) 32962306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA0 (0x004) 33062306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA1 (0x008) 33162306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA7 (0x00C) 33262306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA8 (0x010) 33362306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA9 (0x014) 33462306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA10 (0x018) 33562306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA11 (0x01C) 33662306a36Sopenharmony_ci#define HDCP_SEC_DP_TZ_HV_HLOS_HDCP_RCVPORT_DATA12 (0x020) 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ci#endif /* _DP_REG_H_ */ 339