From 663334b49cb3298bba5b4d1bdfd23a7cdce99bdf Mon Sep 17 00:00:00 2001 From: yzq Date: Fri, 25 Jan 2013 11:04:53 +0800 Subject: [PATCH] HDMI:add hdmi source lcdc select config --- drivers/video/rockchip/hdmi/chips/Kconfig | 7 +++++++ drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi.h | 6 +++++- drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.h | 7 +++++-- drivers/video/rockchip/hdmi/chips/rk610/rk610_hdmi.h | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/video/rockchip/hdmi/chips/Kconfig b/drivers/video/rockchip/hdmi/chips/Kconfig index 75786166fdd2..589ed9929ad7 100755 --- a/drivers/video/rockchip/hdmi/chips/Kconfig +++ b/drivers/video/rockchip/hdmi/chips/Kconfig @@ -28,3 +28,10 @@ if HDMI_RK610 source "drivers/video/rockchip/hdmi/chips/rk610/Kconfig" endif +choice + prompt "HDMI Source LCDC select" +config HDMI_SOURCE_LCDC0 + bool "lcdc0" +config HDMI_SOURCE_LCDC1 + bool "lcdc1" +endchoice diff --git a/drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi.h b/drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi.h index 9efceb36d63b..6aa9572b668e 100755 --- a/drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi.h +++ b/drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi.h @@ -3,7 +3,11 @@ #include "../../rk_hdmi.h" -#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0 +#if defined(CONFIG_HDMI_SOURCE_LCDC1) +#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1 +#else +#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0 +#endif extern void rk2928_hdmi_control_output(int enable); extern int rk2928_hdmi_register_hdcp_callbacks(void (*hdcp_cb)(void), diff --git a/drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.h b/drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.h index f0220d013447..c7c937387835 100755 --- a/drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.h +++ b/drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.h @@ -3,8 +3,11 @@ #include "../../rk_hdmi.h" -/* default HDMI video source */ -#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1 +#if defined(CONFIG_HDMI_SOURCE_LCDC1) +#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1 +#else +#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0 +#endif extern int rk30_hdmi_register_hdcp_callbacks(void (*hdcp_cb)(void), void (*hdcp_irq_cb)(int status), diff --git a/drivers/video/rockchip/hdmi/chips/rk610/rk610_hdmi.h b/drivers/video/rockchip/hdmi/chips/rk610/rk610_hdmi.h index 26d60b48ae25..1a652e80702b 100755 --- a/drivers/video/rockchip/hdmi/chips/rk610/rk610_hdmi.h +++ b/drivers/video/rockchip/hdmi/chips/rk610/rk610_hdmi.h @@ -2,7 +2,7 @@ #define __RK610_HDMI_H__ #include "../../rk_hdmi.h" -#if defined(CONFIG_MACH_RK3168_DS1006H) || defined(CONFIG_MACH_RK3188_DS1006H) +#if defined(CONFIG_HDMI_SOURCE_LCDC1) #define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1 #else #define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0 -- 2.34.1