Commit a2468dedef569863e1243e802fbe3aa7565e1de1

Authored by Ajay Kumar
Committed by Minkyu Kang
1 parent 99e516295f

EXYNOS5: Enable console multiplexing in u-boot

We enable console multiplexing and use both serial and LCD for stdout/stderr.
Initially, u-boot output console is observed via serial port.
If you also have a DP panel connected onto your SMDK5250 board,
you can switch to LCD console by typing "setenv stdout lcd".
You can always switch back to serial using "setenv stdout serial".
You can switch error console(stderr) as well, using similar commands.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff

include/configs/exynos5250-dt.h
... ... @@ -77,6 +77,17 @@
77 77 #define CONFIG_BAUDRATE 115200
78 78 #define EXYNOS5_DEFAULT_UART_OFFSET 0x010000
79 79  
  80 +/* Console configuration */
  81 +#define CONFIG_CONSOLE_MUX
  82 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV
  83 +#define EXYNOS_DEVICE_SETTINGS \
  84 + "stdin=serial\0" \
  85 + "stdout=serial,lcd\0" \
  86 + "stderr=serial,lcd\0"
  87 +
  88 +#define CONFIG_EXTRA_ENV_SETTINGS \
  89 + EXYNOS_DEVICE_SETTINGS
  90 +
80 91 #define TZPC_BASE_OFFSET 0x10000
81 92  
82 93 /* SD/MMC configuration */