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-omap2/include | |
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-omap2/include')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/debug-macro.S | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 86979d7bd871..8d6da9a39d63 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/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? |
@@ -44,15 +48,10 @@ | |||
44 | .endm | 48 | .endm |
45 | 49 | ||
46 | .macro busyuart,rd,rx | 50 | .macro busyuart,rd,rx |
47 | 1001: ldrb \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends | 51 | 1001: ldrb \rd, [\rx, #(UART_LSR << OMAP_PORT_SHIFT)] |
48 | and \rd, \rd, #0x60 | 52 | and \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
49 | teq \rd, #0x60 | 53 | teq \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
50 | beq 1002f | ||
51 | ldrb \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only | ||
52 | and \rd, \rd, #0x60 | ||
53 | teq \rd, #0x60 | ||
54 | bne 1001b | 54 | bne 1001b |
55 | 1002: | ||
56 | .endm | 55 | .endm |
57 | 56 | ||
58 | .macro waituart,rd,rx | 57 | .macro waituart,rd,rx |