diff options
author | Tom Rini <trini@konsulko.com> | 2022-06-10 22:59:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-28 17:03:32 -0400 |
commit | dc2d27ae72d4e380b658d8a0ee3c683fca141f75 (patch) | |
tree | 269c08df02a50c8a6a8d5dd32d23ade923c1471f /board/samsung | |
parent | 713a8cbb94896350b047c590d0246c1d1fe1400f (diff) | |
download | u-boot-dc2d27ae72d4e380b658d8a0ee3c683fca141f75.tar.gz u-boot-dc2d27ae72d4e380b658d8a0ee3c683fca141f75.tar.bz2 u-boot-dc2d27ae72d4e380b658d8a0ee3c683fca141f75.zip |
arm: samsung: Remove dead LCD code
Since bb5930d5c97f ("exynos: video: Convert several boards to driver
model for video") there have been no callers of any of the exynos_lcd_*
family of functions. Remove these from the boards, and then remove
unused logo and related code as well.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/trats/trats.c | 23 | ||||
-rw-r--r-- | board/samsung/trats2/trats2.c | 35 | ||||
-rw-r--r-- | board/samsung/universal_c210/universal.c | 107 |
3 files changed, 0 insertions, 165 deletions
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index d06687620c..24bf355ef6 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -403,16 +403,6 @@ int exynos_early_init_f(void) return 0; } -void exynos_reset_lcd(void) -{ - gpio_request(EXYNOS4_GPIO_Y45, "lcd_reset"); - gpio_direction_output(EXYNOS4_GPIO_Y45, 1); - udelay(10000); - gpio_direction_output(EXYNOS4_GPIO_Y45, 0); - udelay(10000); - gpio_direction_output(EXYNOS4_GPIO_Y45, 1); -} - int lcd_power(void) { #if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ @@ -460,16 +450,3 @@ int mipi_power(void) #endif return 0; } - -#ifdef CONFIG_LCD -void exynos_lcd_misc_init(vidinfo_t *vid) -{ -#ifdef CONFIG_TIZEN - get_tizen_logo_info(vid); -#endif -#ifdef CONFIG_S6E8AX0 - s6e8ax0_init(); - env_set("lcdinfo", "lcd=s6e8ax0"); -#endif -} -#endif diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c index a03dc87385..da7f0dc022 100644 --- a/board/samsung/trats2/trats2.c +++ b/board/samsung/trats2/trats2.c @@ -302,39 +302,4 @@ int mipi_power(void) return 0; } -void exynos_lcd_power_on(void) -{ -#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ - struct pmic *p = pmic_get("MAX77686_PMIC"); - - /* LCD_2.2V_EN: GPC0[1] */ - gpio_request(EXYNOS4X12_GPIO_C01, "lcd_2v2_en"); - gpio_set_pull(EXYNOS4X12_GPIO_C01, S5P_GPIO_PULL_UP); - gpio_direction_output(EXYNOS4X12_GPIO_C01, 1); - - /* LDO25 VCC_3.1V_LCD */ - pmic_probe(p); - max77686_set_ldo_voltage(p, 25, 3100000); - max77686_set_ldo_mode(p, 25, OPMODE_LPM); -#endif -} - -void exynos_reset_lcd(void) -{ - /* reset lcd */ - gpio_request(EXYNOS4X12_GPIO_F21, "lcd_reset"); - gpio_direction_output(EXYNOS4X12_GPIO_F21, 0); - udelay(10); - gpio_set_value(EXYNOS4X12_GPIO_F21, 1); -} - -void exynos_lcd_misc_init(vidinfo_t *vid) -{ -#ifdef CONFIG_TIZEN - get_tizen_logo_info(vid); -#endif -#ifdef CONFIG_S6E8AX0 - s6e8ax0_init(); -#endif -} #endif /* LCD */ diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index 3764b5478b..1dde2f799b 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -267,98 +267,6 @@ static int init_pmic_lcd(void) return 0; } -void exynos_cfg_lcd_gpio(void) -{ - unsigned int i, f3_end = 4; - - for (i = 0; i < 8; i++) { - /* set GPF0,1,2[0:7] for RGB Interface and Data lines (32bit) */ - gpio_cfg_pin(EXYNOS4_GPIO_F00 + i, S5P_GPIO_FUNC(2)); - gpio_cfg_pin(EXYNOS4_GPIO_F10 + i, S5P_GPIO_FUNC(2)); - gpio_cfg_pin(EXYNOS4_GPIO_F20 + i, S5P_GPIO_FUNC(2)); - /* pull-up/down disable */ - gpio_set_pull(EXYNOS4_GPIO_F00 + i, S5P_GPIO_PULL_NONE); - gpio_set_pull(EXYNOS4_GPIO_F10 + i, S5P_GPIO_PULL_NONE); - gpio_set_pull(EXYNOS4_GPIO_F20 + i, S5P_GPIO_PULL_NONE); - - /* drive strength to max (24bit) */ - gpio_set_drv(EXYNOS4_GPIO_F00 + i, S5P_GPIO_DRV_4X); - gpio_set_rate(EXYNOS4_GPIO_F00 + i, S5P_GPIO_DRV_SLOW); - gpio_set_drv(EXYNOS4_GPIO_F10 + i, S5P_GPIO_DRV_4X); - gpio_set_rate(EXYNOS4_GPIO_F10 + i, S5P_GPIO_DRV_SLOW); - gpio_set_drv(EXYNOS4_GPIO_F20 + i, S5P_GPIO_DRV_4X); - gpio_set_rate(EXYNOS4_GPIO_F00 + i, S5P_GPIO_DRV_SLOW); - } - - for (i = EXYNOS4_GPIO_F30; i < (EXYNOS4_GPIO_F30 + f3_end); i++) { - /* set GPF3[0:3] for RGB Interface and Data lines (32bit) */ - gpio_cfg_pin(i, S5P_GPIO_FUNC(2)); - /* pull-up/down disable */ - gpio_set_pull(i, S5P_GPIO_PULL_NONE); - /* drive strength to max (24bit) */ - gpio_set_drv(i, S5P_GPIO_DRV_4X); - gpio_set_rate(i, S5P_GPIO_DRV_SLOW); - } - - /* gpio pad configuration for LCD reset. */ - gpio_request(EXYNOS4_GPIO_Y45, "lcd_reset"); - gpio_cfg_pin(EXYNOS4_GPIO_Y45, S5P_GPIO_OUTPUT); -} - -int mipi_power(void) -{ - return 0; -} - -void exynos_reset_lcd(void) -{ - gpio_set_value(EXYNOS4_GPIO_Y45, 1); - udelay(10000); - gpio_set_value(EXYNOS4_GPIO_Y45, 0); - udelay(10000); - gpio_set_value(EXYNOS4_GPIO_Y45, 1); - udelay(100); -} - -void exynos_lcd_power_on(void) -{ - struct udevice *dev; - int ret; - u8 reg; - - ret = pmic_get("max8998-pmic", &dev); - if (ret) { - puts("Failed to get MAX8998!\n"); - return; - } - - reg = pmic_reg_read(dev, MAX8998_REG_ONOFF3); - reg |= MAX8998_LDO17; - ret = pmic_reg_write(dev, MAX8998_REG_ONOFF3, reg); - if (ret) { - puts("MAX8998 LDO setting error\n"); - return; - } - - reg = pmic_reg_read(dev, MAX8998_REG_ONOFF2); - reg |= MAX8998_LDO7; - ret = pmic_reg_write(dev, MAX8998_REG_ONOFF2, reg); - if (ret) { - puts("MAX8998 LDO setting error\n"); - return; - } -} - -void exynos_cfg_ldo(void) -{ - ld9040_cfg_ldo(); -} - -void exynos_enable_ldo(unsigned int onoff) -{ - ld9040_enable_ldo(onoff); -} - int exynos_init(void) { gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210; @@ -390,18 +298,3 @@ int exynos_init(void) return 0; } - -#ifdef CONFIG_LCD -void exynos_lcd_misc_init(vidinfo_t *vid) -{ -#ifdef CONFIG_TIZEN - get_tizen_logo_info(vid); -#endif - - /* for LD9040. */ - vid->pclk_name = 1; /* MPLL */ - vid->sclk_div = 1; - - env_set("lcdinfo", "lcd=ld9040"); -} -#endif |