hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.h
....@@ -13,6 +13,7 @@
1313 #define CONFIG_REG 0xc
1414 #define CONFIG_CEC BIT(28)
1515 #define CONFIG_AUD_UD BIT(23)
16
+#define CONFIG_HDCP14 BIT(8)
1617 #define CORE_TIMESTAMP_HHMM 0x14
1718 #define CORE_TIMESTAMP_MMDD 0x18
1819 #define CORE_TIMESTAMP_YYYY 0x1c
....@@ -139,7 +140,7 @@
139140 #define FRAME_COMPOSER_CONFIG8 0x860
140141 #define FRAME_COMPOSER_CONFIG9 0x864
141142 #define KEEPOUT_REKEY_CFG GENMASK(9, 8)
142
-#define KEEPOUT_REKEY_ALWAYS 0x2
143
+#define KEEPOUT_REKEY_ALWAYS (0x2 << 8)
143144 #define FRAME_COMPOSER_CONTROL0 0x86c
144145 /* Video Monitor Registers */
145146 #define VIDEO_MONITOR_CONFIG0 0x880
....@@ -155,9 +156,13 @@
155156 #define HDCP2_BYPASS BIT(0)
156157 #define HDCP2LOGIC_ESM_GPIO_IN 0x8e4
157158 #define HDCP2LOGIC_ESM_GPIO_OUT 0x8e8
159
+#define HDCP2_AUTHENTICATION_SUCCESS BIT(6)
158160 /* HDCP14 Registers */
159161 #define HDCP14_CONFIG0 0x900
162
+#define HDCP14_OESS_ESSS_OVR_VALUE BIT(14)
163
+#define HDCP14_OESS_ESSS_OVR_EN BIT(13)
160164 #define HDCP14_CONFIG1 0x904
165
+#define HDCP14_SHA1_MSG_CORRECT_P BIT(3)
161166 #define HDCP14_CONFIG2 0x908
162167 #define HDCP14_CONFIG3 0x90c
163168 #define HDCP14_KEY_SEED 0x914
....@@ -169,7 +174,10 @@
169174 #define HDCP14_AN_H 0x92c
170175 #define HDCP14_AN_L 0x930
171176 #define HDCP14_STATUS0 0x934
177
+#define HDCP14_RPT_DEVICE_COUNT 0xFE00
172178 #define HDCP14_STATUS1 0x938
179
+#define HDCP14_RCV_REPEATER BIT(6)
180
+#define HDCP14_RCV_KSV_FIFO_READY BIT(5)
173181 /* Scrambler Registers */
174182 #define SCRAMB_CONFIG0 0x960
175183 /* Video Configuration Registers */
....@@ -792,6 +800,7 @@
792800 #define AVP_1_INT_STATUS 0x3820
793801 #define AVP_1_INT_MASK_N 0x3824
794802 #define HDCP14_AUTH_CHG_MASK_N BIT(6)
803
+#define HDCP14_KSV_LIST_DONE_MASK_N BIT(1)
795804 #define AVP_1_INT_CLEAR 0x3828
796805 #define AVP_1_INT_FORCE 0x382c
797806 #define AVP_2_INT_STATUS 0x3830
....@@ -802,6 +811,7 @@
802811 #define AVP_3_INT_MASK_N 0x3844
803812 #define AVP_3_INT_CLEAR 0x3848
804813 #define AVP_3_INT_FORCE 0x384c
814
+#define HDCP2_ESM_P0_GPIO_OUT_2_CHG_IRQ BIT(17)
805815 #define AVP_4_INT_STATUS 0x3850
806816 #define AVP_4_INT_MASK_N 0x3854
807817 #define AVP_4_INT_CLEAR 0x3858
....@@ -832,4 +842,9 @@
832842 #define EARCRX_1_INT_CLEAR 0x4828
833843 #define EARCRX_1_INT_FORCE 0x482c
834844
845
+#define HDMI_HDCP14_MEM_KSV0 0x4f08
846
+#define HDMI_HDCP14_MEM_BSTATUS0 0x5958
847
+#define HDMI_HDCP14_MEM_M0_1 0x5960
848
+#define HDMI_HDCP14_MEM_M0_7 0x597c
849
+
835850 #endif /* __DW_HDMI_QP_H__ */