From 89721179d396e613105c68020059ac763e53b2c8 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Fri, 30 Jan 2015 17:23:20 -0800 Subject: [PATCH] veyron_danger: Enable EDP display init Danger has EDP, the original code was copied from Brain which didn't. BUG=none BRANCH=none TEST=built and booted on danger Reviewed-on: https://chromium-review.googlesource.com/245161 Reviewed-by: Julius Werner Change-Id: Ic8b3f685e08bb96125c57d42db6a10e348a1a096 Signed-off-by: David Hendricks Reviewed-on: https://chromium-review.googlesource.com/284081 --- src/mainboard/google/veyron_danger/Kconfig | 8 -------- src/mainboard/google/veyron_danger/board.h | 1 + src/mainboard/google/veyron_danger/mainboard.c | 5 +++++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/mainboard/google/veyron_danger/Kconfig b/src/mainboard/google/veyron_danger/Kconfig index bcfc9a79fd..4d287261aa 100644 --- a/src/mainboard/google/veyron_danger/Kconfig +++ b/src/mainboard/google/veyron_danger/Kconfig @@ -75,14 +75,6 @@ config CONSOLE_SERIAL_UART_ADDRESS depends on CONSOLE_SERIAL_UART default 0xFF690000 -# FIXME(dhendrix): This is a gross hack intended to get us past -# display init which currently hangs the machine. It will be removed -# once we've re-factored the display init code to properly handle -# various types of displays. -config SKIP_DISPLAY_INIT_HACK - int - default 1 - config PMIC_BUS int default 0 diff --git a/src/mainboard/google/veyron_danger/board.h b/src/mainboard/google/veyron_danger/board.h index fa3299dac2..06134c8fa9 100644 --- a/src/mainboard/google/veyron_danger/board.h +++ b/src/mainboard/google/veyron_danger/board.h @@ -23,6 +23,7 @@ #include #include +#define GPIO_BACKLIGHT GPIO(7, A, 3) #define GPIO_RESET GPIO(0, B, 5) /* TODO: move setup_chromeos_gpios() here once bootblock code is in mainboard */ diff --git a/src/mainboard/google/veyron_danger/mainboard.c b/src/mainboard/google/veyron_danger/mainboard.c index fb75be84af..20e2e0ef18 100644 --- a/src/mainboard/google/veyron_danger/mainboard.c +++ b/src/mainboard/google/veyron_danger/mainboard.c @@ -128,3 +128,8 @@ void lb_board(struct lb_header *header) dma->range_start = (uintptr_t)_dma_coherent; dma->range_size = _dma_coherent_size; } + +void mainboard_power_on_backlight(void) +{ + gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */ +}