summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/tegra2/board.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-14 13:13:45 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:17 +0200
commitb9607e70614823893d1a47a377232d2a12e4464f (patch)
tree26e9dbf7576047153ef6fea510003efddcd886ba /arch/arm/cpu/armv7/tegra2/board.c
parentaa53c7f55fdf93d4377b4eecbfc235144902cc91 (diff)
tegra: add alternate UART1 funcmux entry
(In at least some configurations) Whistler uses UART1 on pingroups UAA, UAB. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/cpu/armv7/tegra2/board.c')
-rw-r--r--arch/arm/cpu/armv7/tegra2/board.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/tegra2/board.c b/arch/arm/cpu/armv7/tegra2/board.c
index a50b1b988a..629ad5d67f 100644
--- a/arch/arm/cpu/armv7/tegra2/board.c
+++ b/arch/arm/cpu/armv7/tegra2/board.c
@@ -101,6 +101,18 @@ int arch_cpu_init(void)
}
#endif
+static int uart_configs[] = {
+#ifdef CONFIG_TEGRA2_UARTA_UAA_UAB
+ FUNCMUX_UART1_UAA_UAB,
+#else
+ FUNCMUX_UART1_IRRX_IRTX,
+#endif
+ FUNCMUX_UART2_IRDA,
+ -1,
+ FUNCMUX_UART4_GMC,
+ -1,
+};
+
/**
* Set up the specified uarts
*
@@ -120,7 +132,7 @@ static void setup_uarts(int uart_ids)
if (uart_ids & (1 << i)) {
enum periph_id id = id_for_uart[i];
- funcmux_select(id, FUNCMUX_DEFAULT);
+ funcmux_select(id, uart_configs[i]);
clock_ll_start_uart(id);
}
}