debug-macro.S 801 B

123456789101112131415161718192021222324252627
  1. /* arch/arm/mach-s3c2410/include/mach/debug-macro.S
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 as
  5. * published by the Free Software Foundation.
  6. */
  7. /* pull in the relevant register and map files. */
  8. #include <mach/map.h>
  9. #include <plat/regs-serial.h>
  10. .macro addruart, rp, rv
  11. ldr \rp, = S3C24XX_PA_UART
  12. ldr \rv, = S3C24XX_VA_UART
  13. #if CONFIG_DEBUG_S3C_UART != 0
  14. add \rp, \rp, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART)
  15. add \rv, \rv, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART)
  16. #endif
  17. .endm
  18. /* include the reset of the code which will do the work, we're only
  19. * compiling for a single cpu processor type so the default of s3c2440
  20. * will be fine with us.
  21. */
  22. #include <plat/debug-macro.S>