summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2010-04-25 16:14:02 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2010-04-25 16:14:02 +0000
commitb9fa116703227ccbaca02d65d8f726f6e31ceebe (patch)
tree3aefda8acad7ff3b0b3997667e30378f8cf5129b /firmware/target/arm/tms320dm320
parentb15b7fac7e5aeafc0171ec51bb39b60f9024335d (diff)
DM320 UART: Enable clock in UART module since it will not be done in system initialization.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25716 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320')
-rw-r--r--firmware/target/arm/tms320dm320/uart-dm320.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/uart-dm320.c b/firmware/target/arm/tms320dm320/uart-dm320.c
index 6f83b7c3b7..55515aa406 100644
--- a/firmware/target/arm/tms320dm320/uart-dm320.c
+++ b/firmware/target/arm/tms320dm320/uart-dm320.c
@@ -47,6 +47,9 @@ void uart_init(void)
/* 28: output, non-inverted, no-irq, falling edge, no-chat, UART TX */
dm320_set_io(28, false, false, false, false, false, 0x01);
+ /* Enable UART clock */
+ IO_CLK_MOD2 |= CLK_MOD2_UART1;
+
// 8-N-1
IO_UART1_MSR = 0xC400;
IO_UART1_BRSR = 0x0057;