Add calls to the LCD driver from Nvidia board code.

Signed-off-by: Simon Glass <s...@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 04990bf..1c3387d 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -28,6 +28,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>
@@ -78,6 +79,9 @@ static void power_det_init(void)
  */
 int board_init(void)
 {
+#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();
@@ -114,6 +118,9 @@ int board_init(void)
 
        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 */
@@ -134,6 +141,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;
+}
-- 
1.7.7.3

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to