debug-macro.S 902 B

123456789101112131415161718192021222324252627282930313233
  1. /* linux/arch/arm/mach-s5p64x0/include/mach/debug-macro.S
  2. *
  3. * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  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. /* pull in the relevant register and map files. */
  11. #include <plat/map-base.h>
  12. #include <plat/map-s5p.h>
  13. #include <plat/regs-serial.h>
  14. .macro addruart, rp, rv, tmp
  15. mov \rp, #0xE0000000
  16. orr \rp, \rp, #0x00100000
  17. ldr \rp, [\rp, #0x118 ]
  18. and \rp, \rp, #0xff000
  19. teq \rp, #0x50000 @@ S5P6450
  20. ldreq \rp, =0xEC800000
  21. movne \rp, #0xEC000000 @@ S5P6440
  22. ldrne \rv, = S3C_VA_UART
  23. #if CONFIG_DEBUG_S3C_UART != 0
  24. add \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART)
  25. add \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART)
  26. #endif
  27. .endm
  28. #include <plat/debug-macro.S>