diff options
author | Hung-Te Lin <hungte@chromium.org> | 2013-02-07 19:30:40 +0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2013-02-08 01:59:42 +0100 |
commit | 31bb2df5086bfde706378b1d80bd53fec69697a2 (patch) | |
tree | 750b653e8266a22d07c1d61c154c80f292e1dafe /src/cpu/samsung | |
parent | ad173ea70bee9ca0dc8eb5b79be8497a51dbe1c8 (diff) |
exynos/snow: Configure UART peripheral during console initialization.
For Exynos platforms, the UART component on pinmux must be first selected and
configured. This should be done as part of UART console initialization.
Note, that the current implementation hard-codes the device index as UART3,
while the base port can be assigned to different device in Kconfig. This will be
fixed later.
Verified to work on armv7/snow.
Change-Id: Ie63e76e2dac09fec1132573d1b0027fce55333a1
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2315
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/cpu/samsung')
-rw-r--r-- | src/cpu/samsung/exynos5250/uart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/samsung/exynos5250/uart.c b/src/cpu/samsung/exynos5250/uart.c index 3126d7a6e8..92ffd26599 100644 --- a/src/cpu/samsung/exynos5250/uart.c +++ b/src/cpu/samsung/exynos5250/uart.c @@ -119,6 +119,9 @@ static void exynos5_init_dev(void) // struct s5p_uart *const uart = s5p_get_base_uart(dev_index); struct s5p_uart *uart = (struct s5p_uart *)base_port; + // TODO initialize with correct peripheral id by base_port. + exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE); + /* enable FIFOs */ writel(0x1, &uart->ufcon); writel(0, &uart->umcon); |