From patchwork Mon Oct 8 21:42:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v5,08/16] tegra: Add LCD support to Nvidia boards Date: Mon, 08 Oct 2012 11:42:28 -0000 From: Simon Glass X-Patchwork-Id: 190135 Message-Id: <1349732556-30700-9-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Stephen Warren , Tom Warren Add calls to the LCD driver from Nvidia board code. Signed-off-by: Simon Glass --- Changes in v4: - Change order of LCD init so that PWM comes first Changes in v3: - Add separate call to pwm_init() in board_init() 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 7a7d55c..17aafb6 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -110,6 +111,9 @@ int board_init(void) if (pwm_init(gd->fdt_blob)) debug("%s: Failed to init pwm\n", __func__); #endif +#ifdef CONFIG_LCD + tegra_lcd_check_next_stage(gd->fdt_blob, 0); +#endif /* boot param addr */ gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100); @@ -135,6 +139,9 @@ int board_init(void) pin_mux_usb(); board_usb_init(gd->fdt_blob); #endif +#ifdef CONFIG_LCD + tegra_lcd_check_next_stage(gd->fdt_blob, 0); +#endif #ifdef CONFIG_TEGRA_LP0 /* save Sdram params to PMC 2, 4, and 24 for WB0 */ @@ -165,6 +172,18 @@ int board_early_init_f(void) #else gpio_config_uart(); #endif - return 0; +#ifdef CONFIG_LCD + tegra_lcd_early_init(gd->fdt_blob); +#endif +return 0; } #endif /* EARLY_INIT */ + +int board_late_init(void) +{ +#ifdef CONFIG_LCD + /* Make sure we finish initing the LCD */ + tegra_lcd_check_next_stage(gd->fdt_blob, 1); +#endif + return 0; +}