#elif defined(CONFIG_ARCH_OMAP)
-#include <asm/arch/serial.h>
-
-#ifdef CONFIG_ARCH_OMAP730
-#define OMAP_SERIAL_REG_SHIFT 0
-#else
-#define OMAP_SERIAL_REG_SHIFT 2
-#endif
- /* See also __create_page_tables in head.S */
.macro addruart,rx
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
.endm
.macro busyuart,rd,rx
-1002: ldrb \rd, [\rx, #(0x5 << OMAP_SERIAL_REG_SHIFT)]
+1001: ldrb \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends
and \rd, \rd, #0x60
teq \rd, #0x60
- bne 1002b
+ beq 1002f
+ ldrb \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only
+ and \rd, \rd, #0x60
+ teq \rd, #0x60
+ bne 1001b
+1002:
.endm
.macro waituart,rd,rx