diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2014-05-29 18:57:12 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-06 17:46:14 -0400 |
commit | afee59cd49449e7b7d538d919b6e8ab5184e5b93 (patch) | |
tree | ba2daffdd1bc4c7d0f18168d39b7aa7425971ae5 /arch/arm/cpu/armv7/keystone | |
parent | 196311dc728bbb9484356547b9daa731ca2feb8d (diff) | |
download | u-boot-imx-afee59cd49449e7b7d538d919b6e8ab5184e5b93.zip u-boot-imx-afee59cd49449e7b7d538d919b6e8ab5184e5b93.tar.gz u-boot-imx-afee59cd49449e7b7d538d919b6e8ab5184e5b93.tar.bz2 |
keystone: init: enable UART1 to be able use it from kernel
Currently PWREMU_MGMT is not configured in the Linux generic UART
driver as this register seems to be specific TI UART IP. So this
needs to be enabled in u-boot to use UART1 from kernel space.
Acked-By: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/keystone')
-rw-r--r-- | arch/arm/cpu/armv7/keystone/init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/keystone/init.c b/arch/arm/cpu/armv7/keystone/init.c index 044015a..4df5ae1 100644 --- a/arch/arm/cpu/armv7/keystone/init.c +++ b/arch/arm/cpu/armv7/keystone/init.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <ns16550.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/hardware.h> @@ -30,6 +31,14 @@ int arch_cpu_init(void) share_all_segments(11); /* PCIE */ #endif + /* + * just initialise the COM2 port so that TI specific + * UART register PWREMU_MGMT is initialized. Linux UART + * driver doesn't handle this. + */ + NS16550_init((NS16550_t)(CONFIG_SYS_NS16550_COM2), + CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE); + return 0; } |