diff options
author | Tony Lindgren <tony@atomide.com> | 2010-02-15 11:48:53 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 11:48:53 -0500 |
commit | 4f2c49fedf833e522001bc51824b894732900a3d (patch) | |
tree | 3fa99c328a2acac5752edf7c91d97c10a2b6bafa /arch/arm/mach-omap1/include/mach | |
parent | 4e6d488af37980d224cbf298224db6173673f362 (diff) |
omap: Clean the serial port defines
This way we don't have conflicts with the defines
with compiling in multiple omaps. Set the addresses
for uarts in struct omap_globals for the early serial
init code.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/include/mach')
-rw-r--r-- | arch/arm/mach-omap1/include/mach/debug-macro.S | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/arm/mach-omap1/include/mach/debug-macro.S b/arch/arm/mach-omap1/include/mach/debug-macro.S index 8c74cab2fa8b..9ea12f29e0b6 100644 --- a/arch/arm/mach-omap1/include/mach/debug-macro.S +++ b/arch/arm/mach-omap1/include/mach/debug-macro.S | |||
@@ -11,6 +11,10 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/serial_reg.h> | ||
15 | |||
16 | #include <plat/serial.h> | ||
17 | |||
14 | .macro addruart, rx, tmp | 18 | .macro addruart, rx, tmp |
15 | mrc p15, 0, \rx, c1, c0 | 19 | mrc p15, 0, \rx, c1, c0 |
16 | tst \rx, #1 @ MMU enabled? | 20 | tst \rx, #1 @ MMU enabled? |
@@ -30,13 +34,13 @@ | |||
30 | .endm | 34 | .endm |
31 | 35 | ||
32 | .macro busyuart,rd,rx | 36 | .macro busyuart,rd,rx |
33 | 1001: ldrb \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends | 37 | 1001: ldrb \rd, [\rx, #(UART_LSR << OMAP_PORT_SHIFT)] |
34 | and \rd, \rd, #0x60 | 38 | and \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
35 | teq \rd, #0x60 | 39 | teq \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
36 | beq 1002f | 40 | beq 1002f |
37 | ldrb \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only | 41 | ldrb \rd, [\rx, #(UART_LSR << OMAP7XX_PORT_SHIFT)] |
38 | and \rd, \rd, #0x60 | 42 | and \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
39 | teq \rd, #0x60 | 43 | teq \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
40 | bne 1001b | 44 | bne 1001b |
41 | 1002: | 45 | 1002: |
42 | .endm | 46 | .endm |