1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-29 08:54:05 +02:00

qi-fix-gta03-boot-uart3.patch

Set GPIO and UART init for UART3 suitable for GTA03
(breaks SMDK UART right now)

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:44 +00:00 committed by Andy Green
parent b3714a932b
commit 8ce5b645e6

View File

@ -400,10 +400,10 @@ start_code:
/* set GPIO to enable UART */
@ GPIO setting for UART
ldr r0, =ELFIN_GPIO_BASE
ldr r1, =0x220022
str r1, [r0, #GPACON_OFFSET]
ldr r1, =0x2222
str r1, [r0, #GPBCON_OFFSET]
ldr r0, =ELFIN_UART_CONSOLE_BASE @0x7F005000
ldr r0, =ELFIN_UART_BASE + ELFIN_UART3_OFFSET @0x7F005c00 uart 3
mov r1, #0x0
str r1, [r0, #UFCON_OFFSET]
str r1, [r0, #UMCON_OFFSET]
@ -442,13 +442,6 @@ clbss_l:
cmp r0, r1
ble clbss_l
#if 0
ldr r0, =ELFIN_UART_CONSOLE_BASE
ldr r1, =0x55
push {r1}
pop {r1}
str r1, [r0, #UTXH_OFFSET] @'U'
#endif
b _steppingstone_done
4: