1 /* Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com>
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License as published by the
4 * Free Software Foundation; either version 2 of the License,
5 * or (at your option) any later version. */
7 #include <mach/hardware.h>
10 mrc p15, 0, \rx, c1, c0
11 tst \rx, #1 @ MMU enabled?
12 ldreq \rx, =MOXART_UART_BASE @ physical
13 ldrne \rx, =IO_ADDRESS(MOXART_UART_BASE) @ virtual
18 #include <asm/hardware/debug-8250.S>