diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2017-05-05 13:45:27 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 08:37:15 -0400 |
commit | 01fe1199d6e5dfce829a6c74c88ffd0472fb97c8 (patch) | |
tree | 1b65f61b8789186bfcb98bd7f24d084588322f25 /arch/arm/mach-omap2 | |
parent | fbd6295da4d69ea32eaa477700d00ac8577a8212 (diff) | |
download | u-boot-01fe1199d6e5dfce829a6c74c88ffd0472fb97c8.tar.gz u-boot-01fe1199d6e5dfce829a6c74c88ffd0472fb97c8.tar.xz u-boot-01fe1199d6e5dfce829a6c74c88ffd0472fb97c8.zip |
arm: omap5+: Add support for early debug
For early debug, the following configs needs to be enabled:
CONFIG_DEBUG_UART=y
CONFIG_DEBUG_UART_OMAP=y
CONFIG_DEBUG_UART_CLOCK=48000000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_DEBUG_UART_ANNOUNCE=y
For DRA7xx:
CONFIG_DEBUG_UART_BASE=0x4806a000
For AM57xx:
CONFIG_DEBUG_UART_BASE=0x48020000
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/hwinit-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/hwinit-common.c b/arch/arm/mach-omap2/hwinit-common.c index cac32748ec..c090442598 100644 --- a/arch/arm/mach-omap2/hwinit-common.c +++ b/arch/arm/mach-omap2/hwinit-common.c @@ -12,6 +12,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> +#include <debug_uart.h> #include <spl.h> #include <asm/arch/sys_proto.h> #include <linux/sizes.h> @@ -159,6 +160,9 @@ void early_system_init(void) setup_early_clocks(); do_board_detect(); vcores_init(); +#ifdef CONFIG_DEBUG_UART_OMAP + debug_uart_init(); +#endif prcm_init(); } |