veyron: support speedy1 hardware
BUG=None TEST=emerge veyron_speedy and Boot the speedy board BRANCH=None Change-Id: I2f0cff74517a8c031eabb64f4f82d455195c8dd1 Signed-off-by: huang lin <hl@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/234715 Reviewed-by: Julius Werner <jwerner@chromium.org> (cherry picked from commit 42c0d11c3ec65874986c06ca4d7b34f5987f9409) Reviewed-on: https://chromium-review.googlesource.com/237716 Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org> Commit-Queue: Jiazi Yang <Tomato_Yang@asus.com> Tested-by: Jiazi Yang <Tomato_Yang@asus.com>
This commit is contained in:
parent
5d41884ebd
commit
747b1f834a
1 changed files with 28 additions and 7 deletions
|
|
@ -91,9 +91,19 @@ static void configure_vop(void)
|
|||
/* lcdc(vop) iodomain select 1.8V */
|
||||
writel(RK_SETBITS(1 << 0), &rk3288_grf->io_vsel);
|
||||
|
||||
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 */
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
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)
|
||||
|
|
@ -129,8 +139,19 @@ void lb_board(struct lb_header *header)
|
|||
|
||||
void mainboard_power_on_backlight(void)
|
||||
{
|
||||
gpio_output(GPIO(7, A, 0), 0); /* BL_EN */
|
||||
gpio_output(GPIO(7, A, 2), 1); /* LCD_BL */
|
||||
mdelay(10);
|
||||
gpio_output(GPIO(7, A, 0), 1); /* BL_EN */
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
gpio_output(GPIO(7, A, 0), 0); /* 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…
Add table
Add a link
Reference in a new issue