debug-macro.S 619 B

1234567891011121314151617181920212223
  1. /* arch/arm/mach-mmp/include/mach/debug-macro.S
  2. *
  3. * Debugging macro include header
  4. *
  5. * Copied from arch/arm/mach-pxa/include/mach/debug.S
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #include <mach/addr-map.h>
  12. .macro addruart,rx
  13. mrc p15, 0, \rx, c1, c0
  14. tst \rx, #1 @ MMU enabled?
  15. ldreq \rx, =APB_PHYS_BASE @ physical
  16. ldrne \rx, =APB_VIRT_BASE @ virtual
  17. orr \rx, \rx, #0x00017000
  18. .endm
  19. #define UART_SHIFT 2
  20. #include <asm/hardware/debug-8250.S>