From e929a305d6cfc5f3334dc8b82a85a16ceb73238d Mon Sep 17 00:00:00 2001 From: yxj Date: Sat, 19 Jan 2013 17:21:29 +0800 Subject: [PATCH] rk3188 lcdc:add iomux for lcdc1 --- drivers/video/rockchip/lcdc/rk3188_lcdc.c | 35 ++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/video/rockchip/lcdc/rk3188_lcdc.c b/drivers/video/rockchip/lcdc/rk3188_lcdc.c index 256cd98c290e..aae9b1a92579 100644 --- a/drivers/video/rockchip/lcdc/rk3188_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3188_lcdc.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "rk3188_lcdc.h" @@ -231,7 +232,39 @@ static int rk3188_lcdc_init(struct rk_lcdc_device_driver *dev_drv) } rk3188_lcdc_clk_enable(lcdc_dev); - + + if(lcdc_dev->id == 1) //iomux for lcdc1 + { + iomux_set(LCDC1_DCLK); + iomux_set(LCDC1_DEN); + iomux_set(LCDC1_HSYNC); + iomux_set(LCDC1_VSYNC); + iomux_set(LCDC1_D0); + iomux_set(LCDC1_D1); + iomux_set(LCDC1_D2); + iomux_set(LCDC1_D3); + iomux_set(LCDC1_D4); + iomux_set(LCDC1_D5); + iomux_set(LCDC1_D6); + iomux_set(LCDC1_D7); + iomux_set(LCDC1_D8); + iomux_set(LCDC1_D9); + iomux_set(LCDC1_D10); + iomux_set(LCDC1_D11); + iomux_set(LCDC1_D12); + iomux_set(LCDC1_D13); + iomux_set(LCDC1_D14); + iomux_set(LCDC1_D15); + iomux_set(LCDC1_D16); + iomux_set(LCDC1_D17); + iomux_set(LCDC1_D18); + iomux_set(LCDC1_D19); + iomux_set(LCDC1_D20); + iomux_set(LCDC1_D21); + iomux_set(LCDC1_D22); + iomux_set(LCDC1_D23); + + } lcdc_set_bit(lcdc_dev,SYS_CTRL,m_AUTO_GATING_EN);//eanble axi-clk auto gating for low power if(dev_drv->cur_screen->dsp_lut) { -- 2.34.1