summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm920t
diff options
context:
space:
mode:
authorYann Vernier <yann.vernier@orsoc.se>2012-10-05 02:09:48 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-10-26 23:32:11 +0200
commitbff679ddfb3587df1f63a9310d2a93ce7873119d (patch)
tree351809be555a9c58c147e60ae3d4c9d9321cad91 /arch/arm/cpu/arm920t
parent522de019e566b9cbf7daafcd0a57a2d3dfdb69e6 (diff)
downloadu-boot-imx-bff679ddfb3587df1f63a9310d2a93ce7873119d.zip
u-boot-imx-bff679ddfb3587df1f63a9310d2a93ce7873119d.tar.gz
u-boot-imx-bff679ddfb3587df1f63a9310d2a93ce7873119d.tar.bz2
arm: ks8695: use defined constants for UART
CONFIG_BAUDRATE and KS8695_UART_LINEC_WLEN8 used for UART registers
Diffstat (limited to 'arch/arm/cpu/arm920t')
-rw-r--r--arch/arm/cpu/arm920t/ks8695/lowlevel_init.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/arm920t/ks8695/lowlevel_init.S b/arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
index e9f1227..1bba571 100644
--- a/arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
+++ b/arch/arm/cpu/arm920t/ks8695/lowlevel_init.S
@@ -72,10 +72,10 @@ lowlevel_init:
* enable UART for early debug trace
*/
ldr r1, =(KS8695_IO_BASE+KS8695_UART_DIVISOR)
- mov r2, #0xd9
- str r2, [r1] /* 115200 baud */
+ mov r2, #((25000000+CONFIG_BAUDRATE/2) / CONFIG_BAUDRATE)
+ str r2, [r1]
ldr r1, =(KS8695_IO_BASE+KS8695_UART_LINE_CTRL)
- mov r2, #0x03
+ mov r2, #KS8695_UART_LINEC_WLEN8
str r2, [r1] /* 8 data bits, no parity, 1 stop */
ldr r1, =(KS8695_IO_BASE+KS8695_UART_TX_HOLDING)
mov r2, #0x41