mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
arm: samsung: Remove dead LCD code
Since bb5930d5c9 ("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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user