veyron_danger: Add basic HDMI support
This adds a configure_hdmi() function that drives the HDMI enable output high and configures the iomux. We'll add EDP/HDMI auto-detection in an upcoming patch. (write32() --> writel() for cherry-pick) BUG=none BRANCH=none TEST=set vop_mode to 1 in Danger's devicetree.cb and saw dev mode screen output to HDMI display. Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/280849 Reviewed-by: Julius Werner <jwerner@chromium.org> Change-Id: I139d39749963d4121aaeec0c3da37d825ffa94ac Reviewed-on: https://chromium-review.googlesource.com/284092
This commit is contained in:
parent
d19291eb08
commit
b3b0961345
1 changed files with 24 additions and 1 deletions
|
|
@ -104,9 +104,27 @@ static void configure_vop(void)
|
|||
gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
|
||||
gpio_output(GPIO_LCDC_BL, 0);
|
||||
|
||||
rk808_configure_switch(1, 1); /* VCC33_LCD */
|
||||
}
|
||||
|
||||
static void configure_hdmi(void)
|
||||
{
|
||||
rk808_configure_switch(2, 1); /* VCC18_LCD (HDMI_AVDD_1V8) */
|
||||
rk808_configure_ldo(7, 1000); /* VDD10_LCD (HDMI_AVDD_1V0) */
|
||||
rk808_configure_switch(1, 1); /* VCC33_LCD */
|
||||
|
||||
/* set POWER_HDMI_EN */
|
||||
switch (board_id()) {
|
||||
case 0:
|
||||
gpio_output(GPIO(7, A, 2), 1);
|
||||
break;
|
||||
default:
|
||||
gpio_output(GPIO(5, C, 3), 1);
|
||||
break;
|
||||
}
|
||||
|
||||
/* HDMI I2C */
|
||||
writel(IOMUX_HDMI_EDP_I2C_SDA, &rk3288_grf->iomux_i2c5sda);
|
||||
writel(IOMUX_HDMI_EDP_I2C_SCL, &rk3288_grf->iomux_i2c5scl);
|
||||
}
|
||||
|
||||
static void mainboard_init(device_t dev)
|
||||
|
|
@ -118,6 +136,11 @@ static void mainboard_init(device_t dev)
|
|||
configure_emmc();
|
||||
configure_codec();
|
||||
configure_vop();
|
||||
configure_hdmi();
|
||||
|
||||
elog_init();
|
||||
elog_add_watchdog_reset();
|
||||
elog_add_boot_reason();
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue