veyron: Support Jerry v3 hardware
BUG=None TEST=emerge veyron_jerry and boot the Jerry board BRANCH=None Change-Id: I38cb0106694ada431e6ab6194fce7ba1822bcbcf Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Original-Commit-Id: 6a061072860f74874f0098062806c01bdcb447bd Original-Change-Id: I6eb0900516bcd95159c472749c54d356448d2344 Original-Signed-off-by: huang lin <hl@rock-chips.com> Original-Reviewed-on: https://chromium-review.googlesource.com/234713 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: http://review.coreboot.org/9632 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
cf6306b5d4
commit
2c4831a67d
|
@ -91,9 +91,19 @@ static void configure_vop(void)
|
||||||
/* lcdc(vop) iodomain select 1.8V */
|
/* lcdc(vop) iodomain select 1.8V */
|
||||||
writel(RK_SETBITS(1 << 0), &rk3288_grf->io_vsel);
|
writel(RK_SETBITS(1 << 0), &rk3288_grf->io_vsel);
|
||||||
|
|
||||||
rk808_configure_switch(PMIC_BUS, 2, 1); /* VCC18_LCD */
|
switch (board_id()) {
|
||||||
rk808_configure_ldo(PMIC_BUS, 7, 2500); /* VCC10_LCD_PWREN_H */
|
case 2:
|
||||||
rk808_configure_switch(PMIC_BUS, 1, 1); /* VCC33_LCD */
|
rk808_configure_switch(PMIC_BUS, 2, 1); /* VCC18_LCD */
|
||||||
|
rk808_configure_ldo(PMIC_BUS, 7, 2500); /* VCC10_LCD_PWREN_H */
|
||||||
|
rk808_configure_switch(PMIC_BUS, 1, 1); /* VCC33_LCD */
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
gpio_output(GPIO(2, B, 5), 1); /* AVDD_1V8_DISP_EN */
|
||||||
|
rk808_configure_ldo(PMIC_BUS, 7, 2500); /* VCC10_LCD_PWREN_H */
|
||||||
|
gpio_output(GPIO(7, B, 6), 1); /* LCD_EN */
|
||||||
|
rk808_configure_switch(PMIC_BUS, 1, 1); /* VCC33_LCD */
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mainboard_init(device_t dev)
|
static void mainboard_init(device_t dev)
|
||||||
|
@ -133,8 +143,19 @@ void lb_board(struct lb_header *header)
|
||||||
|
|
||||||
void mainboard_power_on_backlight(void)
|
void mainboard_power_on_backlight(void)
|
||||||
{
|
{
|
||||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
switch (board_id()) {
|
||||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
case 2:
|
||||||
mdelay(10);
|
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||||
|
mdelay(10);
|
||||||
|
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
gpio_output(GPIO(2, B, 4), 1); /* BL_PWR_EN */
|
||||||
|
mdelay(10);
|
||||||
|
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||||
|
mdelay(10);
|
||||||
|
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue