diff options
-rw-r--r-- | src/mainboard/google/veyron_danger/mainboard.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/mainboard/google/veyron_danger/mainboard.c b/src/mainboard/google/veyron_danger/mainboard.c index 7b06742cfc..f105d36919 100644 --- a/src/mainboard/google/veyron_danger/mainboard.c +++ b/src/mainboard/google/veyron_danger/mainboard.c @@ -99,10 +99,32 @@ static void configure_vop(void) * To minimize display corruption, turn off LCDC_BL before * powering on the backlight. */ - gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */ - gpio_output(GPIO_LCDC_BL, 0); + switch (board_id()) { + case 0: + gpio_output(GPIO(7, A, 3), 1); + break; + default: + gpio_output(GPIO(7, A, 2), 1); + break; + } + gpio_output(GPIO_LCDC_BL, 0); rk808_configure_switch(1, 1); /* VCC33_LCD */ + + /* EDP_HPD setup */ + switch (board_id()) { + case 0: + /* not present */ + break; + default: + /* Unlike other Veyrons, Danger has external pull resistors on + * EDP_HPD. Default for GPIO(7, B, 3) is pull-down, set to + * float. + */ + gpio_input(GPIO(7, B, 3)); + write32(&rk3288_grf->iomux_edp_hotplug, IOMUX_EDP_HOTPLUG); + break; + } } static void configure_hdmi(void) |