debug-macro.S 797 B

123456789101112131415161718192021222324252627282930
  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. #if defined(CONFIG_DEBUG_MMP_UART2)
  12. #define MMP_UART_OFFSET 0x00017000
  13. #elif defined(CONFIG_DEBUG_MMP_UART3)
  14. #define MMP_UART_OFFSET 0x00018000
  15. #else
  16. #error "Select uart for DEBUG_LL"
  17. #endif
  18. #include <mach/addr-map.h>
  19. .macro addruart, rp, rv, tmp
  20. ldr \rp, =APB_PHYS_BASE @ physical
  21. ldr \rv, =APB_VIRT_BASE @ virtual
  22. orr \rp, \rp, #MMP_UART_OFFSET
  23. orr \rv, \rv, #MMP_UART_OFFSET
  24. .endm
  25. #define UART_SHIFT 2
  26. #include <asm/hardware/debug-8250.S>