debug-macro.S 549 B

1234567891011121314151617181920
  1. /*
  2. * Debugging macro include header
  3. *
  4. * Copyright (C) 2009 ST-Ericsson
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. */
  11. #include <mach/hardware.h>
  12. .macro addruart, rx, tmp
  13. mrc p15, 0, \rx, c1, c0
  14. tst \rx, #1 @ MMU enabled?
  15. ldreq \rx, =U8500_UART2_BASE @ no, physical address
  16. ldrne \rx, =IO_ADDRESS(U8500_UART2_BASE) @ yes, virtual address
  17. .endm
  18. #include <asm/hardware/debug-pl01x.S>