From 91748877d1325a57af315934b1f29720da120608 Mon Sep 17 00:00:00 2001 From: phc Date: Thu, 14 Jul 2011 10:17:05 +0800 Subject: [PATCH] RK29SmartPhone:Sharp LCD 02A stanby change, reset lcd when resume --- .../video/display/screen/lcd_ls035y8dx02a.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) mode change 100644 => 100755 drivers/video/display/screen/lcd_ls035y8dx02a.c diff --git a/drivers/video/display/screen/lcd_ls035y8dx02a.c b/drivers/video/display/screen/lcd_ls035y8dx02a.c old mode 100644 new mode 100755 index b1bd3e787ee9..5a6db19749a5 --- a/drivers/video/display/screen/lcd_ls035y8dx02a.c +++ b/drivers/video/display/screen/lcd_ls035y8dx02a.c @@ -334,9 +334,26 @@ int lcd_standby(u8 enable) //***enable =1 means suspend, 0 means resume spi_screenreg_set(0x28, 0xffff, 0xffff); } else { printk("lcd standby...0 means resume\n"); + + /* reinit, changed by phc */ +#ifdef RESET_PORT + gpio_request(RESET_PORT, NULL); + gpio_direction_output(RESET_PORT, 0); + mdelay(2); + gpio_set_value(RESET_PORT, 1); + mdelay(10); + gpio_free(RESET_PORT); +#endif + spi_screenreg_set(0x29, 0xffff, 0xffff); spi_screenreg_set(0x11, 0xffff, 0xffff); - //mdelay(150); + mdelay(130); + spi_screenreg_set(0x36, 0x0000, 0xffff); //set address mode + spi_screenreg_set(0x3a, 0x0070, 0xffff); //set pixel format + spi_screenreg_set(0xb0, 0x0000, 0xffff); //enable command acess + spi_screenreg_set(0xb8, 0x0001, 0xffff); //BLC setting + spi_screenreg_set(0xb9, 0x0001, 0x00ff); //LED PWM + spi_screenreg_set(0xb0, 0x0003, 0xffff); //disable command acess } if(gLcd_info) -- 2.34.1