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
#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),
#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),
#define __RK610_HDMI_H__\r
#include "../../rk_hdmi.h"\r
\r
-#if defined(CONFIG_MACH_RK3168_DS1006H) || defined(CONFIG_MACH_RK3188_DS1006H)\r
+#if defined(CONFIG_HDMI_SOURCE_LCDC1)\r
#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1\r
#else\r
#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0\r