diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2015-09-10 21:55:17 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-09-28 10:48:22 -0400 |
commit | 9c71bcdc81b5d5a7acafb4e2b860e3ce68db6108 (patch) | |
tree | c116e91e39a2ec7e33372e51f34af1ae08cf23a7 /include/configs | |
parent | efd7b60a81fe7a8ecffa585691d835456d5d551a (diff) | |
download | u-boot-imx-9c71bcdc81b5d5a7acafb4e2b860e3ce68db6108.zip u-boot-imx-9c71bcdc81b5d5a7acafb4e2b860e3ce68db6108.tar.gz u-boot-imx-9c71bcdc81b5d5a7acafb4e2b860e3ce68db6108.tar.bz2 |
ARM: hikey: hi6220: Migrate over to DM_SERIAL and use UART3 by default.
Use DM for the pl01x serial driver on hikey. Also allow UART0 or
UART3 to be chosen via Kconfig.
By default we now output to UART3 as the latest version of ATF outputs
to this UART. Also UART3 comes out on the LS connector, as opposed to
UART0 which goes to a unpopulated header.
As part of this change we also enable CONFIG_BOARD_EARLY_INIT_F and
call the pinmux configuration code for the UART. Before we were
relying on ATF having already configured the pin configuration.
NB: Upstream Linux kernel doesn't yet support UART3, so serial console
will still be output on UART0 when booting a upstream kernel.
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/hikey.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/configs/hikey.h b/include/configs/hikey.h index ae8187a..b7c22e8 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -31,6 +31,8 @@ /* Flat Device Tree Definitions */ #define CONFIG_OF_LIBFDT +#define CONFIG_BOARD_EARLY_INIT_F + /* Physical Memory Map */ /* CONFIG_SYS_TEXT_BASE needs to align with where ATF loads bl33.bin */ @@ -59,13 +61,8 @@ /* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M) -/* PL011 Serial Configuration */ -#define CONFIG_PL011_SERIAL - -#define CONFIG_PL011_CLOCK 19200000 -#define CONFIG_PL01x_PORTS {(void *)0xF8015000} -#define CONFIG_CONS_INDEX 0 - +/* Serial port PL010/PL011 through the device model */ +#define CONFIG_PL01X_SERIAL #define CONFIG_BAUDRATE 115200 #define CONFIG_CMD_USB |