From: kfx Date: Mon, 31 Dec 2012 09:35:55 +0000 (+0800) Subject: rk3168: ds1006h: update lcd screen config X-Git-Tag: firefly_0821_release~8023 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eccda19f5047ac155897a1557145587dda07886d;p=firefly-linux-kernel-4.4.55.git rk3168: ds1006h: update lcd screen config --- diff --git a/arch/arm/mach-rk30/board-rk3168-ds1006h.c b/arch/arm/mach-rk30/board-rk3168-ds1006h.c index 72fa0a1d30bf..5e4c1b727355 100644 --- a/arch/arm/mach-rk30/board-rk3168-ds1006h.c +++ b/arch/arm/mach-rk30/board-rk3168-ds1006h.c @@ -145,7 +145,6 @@ static int rk29_backlight_io_init(void) { int ret = 0; - int pwm_gpio; //iomux_set(PWM_MODE); #ifdef LCD_DISP_ON_PIN ret = gpio_request(BL_EN_PIN, NULL); @@ -156,9 +155,7 @@ static int rk29_backlight_io_init(void) gpio_direction_output(BL_EN_PIN, 0); gpio_set_value(BL_EN_PIN, BL_EN_VALUE); #endif - pwm_gpio = mode_to_gpio(PWM_MODE); - gpio_request(pwm_gpio, NULL); - gpio_direction_output(pwm_gpio, GPIO_HIGH); + return ret; } diff --git a/drivers/video/display/screen/lcd_b101ew05.c b/drivers/video/display/screen/lcd_b101ew05.c index 8705b911c1e8..e6f9a19fdd46 100755 --- a/drivers/video/display/screen/lcd_b101ew05.c +++ b/drivers/video/display/screen/lcd_b101ew05.c @@ -15,7 +15,7 @@ /* Base */ #ifdef CONFIG_RK610_LVDS #define OUT_TYPE SCREEN_LVDS -#define OUT_FORMAT LVDS_8BIT_2 +#define OUT_FORMAT LVDS_8BIT_1 #else #define OUT_TYPE SCREEN_RGB #endif @@ -24,18 +24,18 @@ #define OUT_CLK 71000000 -#define LCDC_ACLK 300000000 //29 lcdc axi DMA ƵÂÊ +#define LCDC_ACLK 500000000 //29 lcdc axi DMA ƵÂÊ /* Timing */ -#define H_PW 10 -#define H_BP 100 +#define H_PW 1 +#define H_BP 1 #define H_VD 1280 -#define H_FP 18 +#define H_FP 158 -#define V_PW 2 -#define V_BP 8 +#define V_PW 1 +#define V_BP 1 #define V_VD 800 -#define V_FP 6 +#define V_FP 21 #define LCD_WIDTH 216 #define LCD_HEIGHT 135