diff options
author | Shaochan liu <shaochan.liu@amlogic.com> | 2019-03-08 17:50:02 +0800 |
---|---|---|
committer | Dongjin Kim <tobetter@gmail.com> | 2019-05-16 13:17:41 +0900 |
commit | e2b0b17f15dd741ed7b2b8a43d7ad685b85a737e (patch) | |
tree | 3494decff92809ac094955af0615b604a0ab7e67 /drivers | |
parent | 1eb2f6aab5b93b59705fa4478d922c08bb2efe09 (diff) | |
download | u-boot-odroid-c1-e2b0b17f15dd741ed7b2b8a43d7ad685b85a737e.tar.gz |
lcd: optimize vsync probe method, by string, not index value in dts [1/2]
PD#SWPL-4679
Problem:
optimize vsync probe method, by string, not index value in dts
Solution:
optimize vsync probe method, by string, not index value in dts
Verify:
verify by t962x2-x301
Change-Id: Ic41c7f2a47fabc3b24e64d06250d1d7d93cd01f8
Signed-off-by: Shaochan liu <shaochan.liu@amlogic.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/display/lcd/lcd_tablet/lcd_tablet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/display/lcd/lcd_tablet/lcd_tablet.c b/drivers/display/lcd/lcd_tablet/lcd_tablet.c index 0e3bb75bce..f6896ecb06 100644 --- a/drivers/display/lcd/lcd_tablet/lcd_tablet.c +++ b/drivers/display/lcd/lcd_tablet/lcd_tablet.c @@ -717,6 +717,10 @@ static int lcd_config_load_from_unifykey(struct lcd_config_s *pconf) ((*(p + LCD_UKEY_PCLK + 1)) << 8) | ((*(p + LCD_UKEY_PCLK + 2)) << 16) | ((*(p + LCD_UKEY_PCLK + 3)) << 24)); + if (pconf->lcd_timing.lcd_clk == 0) { /* avoid 0 mistake */ + pconf->lcd_timing.lcd_clk = 60; + LCDERR("lcd_clk is 0, default to 60Hz\n"); + } pconf->lcd_basic.h_period_min = (*(p + LCD_UKEY_H_PERIOD_MIN) | ((*(p + LCD_UKEY_H_PERIOD_MIN + 1)) << 8)); pconf->lcd_basic.h_period_max = (*(p + LCD_UKEY_H_PERIOD_MAX) | |