debug-macro.S 685 B

1234567891011121314151617181920212223242526
  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. #if CONFIG_UX500_DEBUG_UART > 2
  13. #error Invalid Ux500 debug UART
  14. #endif
  15. #define __UX500_UART(n) UX500_UART##n##_BASE
  16. #define UX500_UART(n) __UX500_UART(n)
  17. #define UART_BASE UX500_UART(CONFIG_UX500_DEBUG_UART)
  18. .macro addruart, rp, rv
  19. ldr \rp, =UART_BASE @ no, physical address
  20. ldr \rv, =IO_ADDRESS(UART_BASE) @ yes, virtual address
  21. .endm
  22. #include <asm/hardware/debug-pl01x.S>