HDMI:add hdmi source lcdc select config

This commit is contained in:
yzq
2013-01-25 11:04:53 +08:00
parent 05d00eec3a
commit 663334b49c
4 changed files with 18 additions and 4 deletions

View File

@@ -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

View File

@@ -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),

View File

@@ -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),

View File

@@ -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