#include <asm/div64.h>
#include <asm/uaccess.h>
#include <mach/iomux.h>
+#include "../hdmi/rk_hdmi.h"
#include "rk3188_lcdc.h"
u16 x_res = screen->x_res;
u16 y_res = screen->y_res;
-
spin_lock(&lcdc_dev->reg_lock);
if(likely(lcdc_dev->clk_on))
{
if(likely(lcdc_dev->clk_on))
{
lcdc_writel(lcdc_dev, WIN0_YRGB_MST0, y_addr);
- lcdc_writel(lcdc_dev, WIN0_CBR_MST0, uv_addr);
+ lcdc_writel(lcdc_dev, WIN0_CBR_MST0, uv_addr);
+ #if defined(CONFIG_RK_HDMI)
+ #if defined(CONFIG_DUAL_LCDC_DUAL_DISP_IN_KERNEL)
+ if(lcdc_dev->driver.screen_ctr_info->prop == EXTEND)
+ {
+ if(hdmi_get_hotplug() == HDMI_HPD_ACTIVED)
+ {
+ lcdc_cfg_done(lcdc_dev);
+ }
+ }
+ #endif
+ #endif
}
spin_unlock(&lcdc_dev->reg_lock);
if(likely(lcdc_dev->clk_on))
{
lcdc_writel(lcdc_dev,WIN1_MST,y_addr);
+ #if defined(CONFIG_RK_HDMI)
+ #if defined(CONFIG_DUAL_LCDC_DUAL_DISP_IN_KERNEL)
+ if(lcdc_dev->driver.screen_ctr_info->prop == EXTEND)
+ {
+ if(hdmi_get_hotplug() == HDMI_HPD_ACTIVED)
+ {
+ lcdc_cfg_done(lcdc_dev);
+ }
+ }
+ #endif
+ #endif
}
spin_unlock(&lcdc_dev->reg_lock);