
Add calls to the LCD driver from Nvidia board code.
Signed-off-by: Simon Glass sjg@chromium.org ---
board/nvidia/common/board.c | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 2e22133..7666691 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -29,6 +29,7 @@ #include <asm/arch/sys_proto.h>
#include <asm/arch/board.h> +#include <asm/arch/display.h> #include <asm/arch/clk_rst.h> #include <asm/arch/clock.h> #include <asm/arch/emc.h> @@ -87,6 +88,9 @@ int board_init(void) { __maybe_unused int err;
+#ifdef CONFIG_VIDEO_TEGRA2 + tegra_lcd_check_next_stage(gd->blob, 0); +#endif /* Do clocks and UART first so that printf() works */ clock_init(); clock_verify(); @@ -122,6 +126,9 @@ int board_init(void) pin_mux_usb(); board_usb_init(gd->fdt_blob); #endif +#if defined(CONFIG_VIDEO_TEGRA) + tegra_lcd_check_next_stage(gd->fdt_blob, 0); +#endif
#ifdef CONFIG_TEGRA2_LP0 /* prepare the WB code to LP0 location */ @@ -142,6 +149,18 @@ int board_early_init_f(void) #else gpio_config_uart(); #endif - return 0; +#if defined(CONFIG_VIDEO_TEGRA) + tegra_lcd_early_init(gd->fdt_blob); +#endif +return 0; } #endif /* EARLY_INIT */ + +int board_late_init(void) +{ +#ifdef CONFIG_VIDEO_TEGRA + /* Make sure we finish initing the LCD */ + tegra_lcd_check_next_stage(gd->fdt_blob, 1); +#endif + return 0; +}