tegra: Allow CONFIG_DM_VIDEO to be used as well as CONFIG_LCD

While we transition to using driver model for video, we need to support both
options.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
Simon Glass
2016-01-30 16:37:49 -07:00
committed by Tom Warren
parent 3f2997a40c
commit 135a87ef43
2 changed files with 14 additions and 4 deletions

View File

@@ -139,8 +139,10 @@ int board_init(void)
if (pwm_init(gd->fdt_blob))
debug("%s: Failed to init pwm\n", __func__);
#endif
#ifdef CONFIG_LCD
#if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO)
pin_mux_display();
#endif
#ifdef CONFIG_LCD
tegra_lcd_check_next_stage(gd->fdt_blob, 0);
#endif
/* boot param addr */
@@ -169,11 +171,13 @@ int board_init(void)
pin_mux_usb();
#endif
#ifdef CONFIG_LCD
#if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO)
board_id = tegra_board_id();
err = tegra_lcd_pmic_init(board_id);
if (err)
return err;
#endif
#ifdef CONFIG_LCD
tegra_lcd_check_next_stage(gd->fdt_blob, 0);
#endif