ARM: vf610: add low level debug support for !MMU
[linux.git] / arch / arm / include / debug / vf.S
index b88933849a17e1bfb268eb49d73b41ebe9336bdb..63c7ef746c8a44557300af7ba19ae709cd3fe9e2 100644 (file)
 
 #define VF_UART_VIRTUAL_BASE   0xfe000000
 
+#ifdef CONFIG_MMU
+
        .macro  addruart, rp, rv, tmp
        ldr     \rp, =VF_UART_PHYSICAL_BASE     @ physical
        and     \rv, \rp, #0xffffff             @ offset within 16MB section
        add     \rv, \rv, #VF_UART_VIRTUAL_BASE
        .endm
 
+#else /* !CONFIG_MMU */
+
+       .macro  addruart, rx, tmp
+       ldr     \rx, =(VF_UART_PHYSICAL_BASE)   @ physical
+       .endm
+
+#endif /* CONFIG_MMU */
+
        .macro  senduart, rd, rx
        strb    \rd, [\rx, #0x7]        @ Data Register
        .endm