mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
arm: ks8695: use defined constants for UART
CONFIG_BAUDRATE and KS8695_UART_LINEC_WLEN8 used for UART registers
This commit is contained in:
parent
522de019e5
commit
bff679ddfb
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue