Commit 135a87ef43566cdd592fa9fd899bf435aa14aaa3
Committed by
Tom Warren
1 parent
3f2997a40c
Exists in
v2017.01-smarct4x
and in
30 other branches
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>
Showing 2 changed files with 14 additions and 4 deletions Side-by-side Diff
arch/arm/mach-tegra/board2.c
... | ... | @@ -139,8 +139,10 @@ |
139 | 139 | if (pwm_init(gd->fdt_blob)) |
140 | 140 | debug("%s: Failed to init pwm\n", __func__); |
141 | 141 | #endif |
142 | -#ifdef CONFIG_LCD | |
142 | +#if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO) | |
143 | 143 | pin_mux_display(); |
144 | +#endif | |
145 | +#ifdef CONFIG_LCD | |
144 | 146 | tegra_lcd_check_next_stage(gd->fdt_blob, 0); |
145 | 147 | #endif |
146 | 148 | /* boot param addr */ |
147 | 149 | |
... | ... | @@ -169,11 +171,13 @@ |
169 | 171 | pin_mux_usb(); |
170 | 172 | #endif |
171 | 173 | |
172 | -#ifdef CONFIG_LCD | |
174 | +#if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO) | |
173 | 175 | board_id = tegra_board_id(); |
174 | 176 | err = tegra_lcd_pmic_init(board_id); |
175 | 177 | if (err) |
176 | 178 | return err; |
179 | +#endif | |
180 | +#ifdef CONFIG_LCD | |
177 | 181 | tegra_lcd_check_next_stage(gd->fdt_blob, 0); |
178 | 182 | #endif |
179 | 183 |
include/configs/tegra-common-post.h
... | ... | @@ -53,6 +53,12 @@ |
53 | 53 | #define STDOUT_LCD "" |
54 | 54 | #endif |
55 | 55 | |
56 | +#ifdef CONFIG_DM_VIDEO | |
57 | +#define STDOUT_VIDEO ",vidconsole" | |
58 | +#else | |
59 | +#define STDOUT_VIDEO "" | |
60 | +#endif | |
61 | + | |
56 | 62 | #ifdef CONFIG_CROS_EC_KEYB |
57 | 63 | #define STDOUT_CROS_EC ",cros-ec-keyb" |
58 | 64 | #else |
... | ... | @@ -61,8 +67,8 @@ |
61 | 67 | |
62 | 68 | #define TEGRA_DEVICE_SETTINGS \ |
63 | 69 | "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC "\0" \ |
64 | - "stdout=serial" STDOUT_LCD "\0" \ | |
65 | - "stderr=serial" STDOUT_LCD "\0" \ | |
70 | + "stdout=serial" STDOUT_LCD STDOUT_VIDEO "\0" \ | |
71 | + "stderr=serial" STDOUT_LCD STDOUT_VIDEO "\0" \ | |
66 | 72 | "" |
67 | 73 | |
68 | 74 | #ifndef BOARD_EXTRA_ENV_SETTINGS |