From d425ecdcc02bdc4e06ba31595f3bba20444b931f Mon Sep 17 00:00:00 2001 From: yxj Date: Tue, 15 Jan 2013 20:17:41 +0800 Subject: [PATCH] rk3188 lcdc: fix one err of rgb swap --- drivers/video/rockchip/lcdc/rk3188_lcdc.c | 2 +- include/linux/rk_screen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/lcdc/rk3188_lcdc.c b/drivers/video/rockchip/lcdc/rk3188_lcdc.c index 5385573bfcf4..6e4cc5dc09ac 100644 --- a/drivers/video/rockchip/lcdc/rk3188_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3188_lcdc.c @@ -317,7 +317,7 @@ static int rk3188_load_screen(struct rk_lcdc_device_driver *dev_drv, bool initsc //set background color to black,set swap according to the screen panel,disable blank mode lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_BG_COLOR| m_DSP_BG_SWAP | m_DSP_RB_SWAP | m_DSP_RG_SWAP | m_DSP_DELTA_SWAP | m_DSP_DUMMY_SWAP | m_BLANK_EN, - v_BG_COLOR(0x000000) | v_DSP_BG_SWAP(screen->swap_bg) | + v_BG_COLOR(0x000000) | v_DSP_BG_SWAP(screen->swap_gb) | v_DSP_RB_SWAP(screen->swap_rb) | v_DSP_RG_SWAP(screen->swap_rg) | v_DSP_DELTA_SWAP(screen->swap_delta) | v_DSP_DUMMY_SWAP(screen->swap_dumy) | v_BLANK_EN(0) | v_BLACK_EN(0)); diff --git a/include/linux/rk_screen.h b/include/linux/rk_screen.h index 6315d7d60fe9..49150827cb88 100644 --- a/include/linux/rk_screen.h +++ b/include/linux/rk_screen.h @@ -109,7 +109,7 @@ typedef struct rk29fb_screen { u8 pin_dispon; /* Swap rule */ - u8 swap_bg; + u8 swap_gb; u8 swap_rg; u8 swap_rb; u8 swap_delta; -- 2.34.1