diff options
author | Dima Zavin <dima@android.com> | 2011-10-02 20:47:11 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2011-10-25 23:17:01 -0700 |
commit | 51a0d5b886692a96354cf9c0e46427517a2b73cb (patch) | |
tree | 20b291cdc7fe64b5119ee01af64be35a3b2ec2ad /arch/arm/mach-omap2/board-tuna.c | |
parent | cb4c6ea96fd752352e2cfa27f0f6efa8af2af473 (diff) | |
download | kernel_samsung_tuna-51a0d5b886692a96354cf9c0e46427517a2b73cb.zip kernel_samsung_tuna-51a0d5b886692a96354cf9c0e46427517a2b73cb.tar.gz kernel_samsung_tuna-51a0d5b886692a96354cf9c0e46427517a2b73cb.tar.bz2 |
ARM: omap4: tuna: move uart3 to fiq debugger
Change-Id: I52c1d95b49186a039e0d73ffeafac76a7978b291
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-tuna.c')
-rw-r--r-- | arch/arm/mach-omap2/board-tuna.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-tuna.c b/arch/arm/mach-omap2/board-tuna.c index 8047a42..2a95bb0 100644 --- a/arch/arm/mach-omap2/board-tuna.c +++ b/arch/arm/mach-omap2/board-tuna.c @@ -58,6 +58,8 @@ #include <plat/remoteproc.h> #include <plat/omap-serial.h> +#include <mach/omap_fiq_debugger.h> + #include <mach/id.h> #include "timer-gp.h" @@ -986,12 +988,19 @@ static inline void __init board_serial_init(void) omap_serial_init_port_pads(0, uart1_pads, uart1_pads_sz, NULL); omap_serial_init_port_pads(1, tuna_uart2_pads, ARRAY_SIZE(tuna_uart2_pads), &tuna_uart2_info); - omap_serial_init_port_pads(2, tuna_uart3_pads, - ARRAY_SIZE(tuna_uart3_pads), NULL); omap_serial_init_port_pads(3, tuna_uart4_pads, ARRAY_SIZE(tuna_uart4_pads), NULL); } +/* fiq_debugger initializes really early but OMAP resource mgmt + * is not yet ready @ arch_init, so init the serial debugger later */ +static int __init board_serial_debug_init(void) +{ + return omap_serial_debug_init(2, false, true, + tuna_uart3_pads, ARRAY_SIZE(tuna_uart3_pads)); +} +device_initcall(board_serial_debug_init); + /* SPI flash memory in camera module */ #define F_ROM_SPI_BUS_NUM 3 #define F_ROM_SPI_CS 0 |