EDID info is most of the time stored at address 0x50, so define a macro
for it in the common edid.h header.

Also drop the now-duplicate definition from the Rockchip edp_rk3288.h
header and rely on the common one.

Signed-off-by: Julien Stephan <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
---
 arch/arm/include/asm/arch-rockchip/edp_rk3288.h | 1 -
 include/edid.h                                  | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-rockchip/edp_rk3288.h 
b/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
index edacf102852..2332ae30953 100644
--- a/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
@@ -527,7 +527,6 @@ check_member(rk3288_edp, pll_reg_5, 0xa00);
 #define PLL_LOCK_TIMEOUT 10
 #define DP_INIT_TRIES 10
 
-#define EDID_ADDR                              0x50
 #define EDID_LENGTH                            0x80
 #define EDID_HEADER                            0x00
 #define EDID_EXTENSION_FLAG                    0x7e
diff --git a/include/edid.h b/include/edid.h
index cee7c4c7637..77a5d258311 100644
--- a/include/edid.h
+++ b/include/edid.h
@@ -14,6 +14,9 @@
 
 #include <linux/types.h>
 
+/* Default EDID address */
+#define EDID_ADDR      0x50
+
 /* Size of the EDID data */
 #define EDID_SIZE      128
 #define EDID_EXT_SIZE  256

-- 
2.54.0

Reply via email to