diff options
author | shaochan.liu <shaochan.liu@amlogic.com> | 2019-03-20 19:43:51 +0800 |
---|---|---|
committer | Dongjin Kim <tobetter@gmail.com> | 2019-05-16 13:18:39 +0900 |
commit | 3931222a0af06e6ec042bb7c2c95d590e9326e58 (patch) | |
tree | 409f1c0da963a34e64618a96730dae4e9c84aa2f /drivers | |
parent | c0ae62589868d18993b31b1f6043680910d9d18f (diff) | |
download | u-boot-odroid-c1-3931222a0af06e6ec042bb7c2c95d590e9326e58.tar.gz |
lcd: add mipi-dsi support for sm1 [1/2]
PD#SWPL-6114
Problem:
add mipi-dsi support for sm1
Solution:
add lcd_chip_sm1
Verify:
verify by S905x3
Change-Id: I3f895e9bc14ff64d984190877ba0f11ad0ccad45
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/display/lcd/aml_lcd.c | 3 | ||||
-rw-r--r-- | drivers/display/lcd/aml_lcd_clk_config.c | 1 | ||||
-rw-r--r-- | drivers/display/lcd/aml_lcd_debug.c | 1 | ||||
-rw-r--r-- | drivers/display/lcd/aml_lcd_phy_config.c | 2 |
4 files changed, 7 insertions, 0 deletions
diff --git a/drivers/display/lcd/aml_lcd.c b/drivers/display/lcd/aml_lcd.c index c80d32449b..c966cbe175 100644 --- a/drivers/display/lcd/aml_lcd.c +++ b/drivers/display/lcd/aml_lcd.c @@ -75,6 +75,9 @@ static void lcd_chip_detect(void) case MESON_CPU_MAJOR_ID_TL1: aml_lcd_driver.chip_type = LCD_CHIP_TL1; break; + case MESON_CPU_MAJOR_ID_SM1: + aml_lcd_driver.chip_type = LCD_CHIP_SM1; + break; default: aml_lcd_driver.chip_type = LCD_CHIP_MAX; //aml_lcd_driver.chip_type = LCD_CHIP_TL1; diff --git a/drivers/display/lcd/aml_lcd_clk_config.c b/drivers/display/lcd/aml_lcd_clk_config.c index f20acb6306..b467a9095b 100644 --- a/drivers/display/lcd/aml_lcd_clk_config.c +++ b/drivers/display/lcd/aml_lcd_clk_config.c @@ -3020,6 +3020,7 @@ static void lcd_clk_config_chip_init(struct lcd_clk_config_s *cConf) cConf->data = &lcd_clk_data_txhd; break; case LCD_CHIP_G12A: + case LCD_CHIP_SM1: if (lcd_drv->lcd_config->lcd_clk_path) cConf->data = &lcd_clk_data_g12a_path1; else diff --git a/drivers/display/lcd/aml_lcd_debug.c b/drivers/display/lcd/aml_lcd_debug.c index b1087b8f42..47e3d0efa9 100644 --- a/drivers/display/lcd/aml_lcd_debug.c +++ b/drivers/display/lcd/aml_lcd_debug.c @@ -1001,6 +1001,7 @@ void aml_lcd_debug_probe(struct aml_lcd_drv_s *lcd_drv) break; case LCD_CHIP_G12A: case LCD_CHIP_G12B: + case LCD_CHIP_SM1: if (lcd_drv->lcd_config->lcd_clk_path) lcd_debug_info_reg = &lcd_debug_info_reg_g12a_clk_path1; else diff --git a/drivers/display/lcd/aml_lcd_phy_config.c b/drivers/display/lcd/aml_lcd_phy_config.c index d0eeb443e6..bb40fb1ef4 100644 --- a/drivers/display/lcd/aml_lcd_phy_config.c +++ b/drivers/display/lcd/aml_lcd_phy_config.c @@ -535,6 +535,7 @@ void lcd_mipi_phy_set(struct lcd_config_s *pconf, int status) switch (lcd_drv->chip_type) { case LCD_CHIP_G12A: case LCD_CHIP_G12B: + case LCD_CHIP_SM1: /* HHI_MIPI_CNTL0 */ /* DIF_REF_CTL1:31-16bit, DIF_REF_CTL0:15-0bit */ lcd_hiu_write(HHI_MIPI_CNTL0, @@ -595,6 +596,7 @@ void lcd_mipi_phy_set(struct lcd_config_s *pconf, int status) switch (lcd_drv->chip_type) { case LCD_CHIP_G12A: case LCD_CHIP_G12B: + case LCD_CHIP_SM1: lcd_hiu_write(HHI_MIPI_CNTL0, 0); lcd_hiu_write(HHI_MIPI_CNTL1, 0); lcd_hiu_write(HHI_MIPI_CNTL2, 0); |