debug-macro.S 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* arch/arm/mach-clps711x/include/mach/debug-macro.S
  2. *
  3. * Debugging macro include header
  4. *
  5. * Copyright (C) 1994-1999 Russell King
  6. * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. */
  13. #include <mach/hardware.h>
  14. .macro addruart, rp, rv, tmp
  15. #ifndef CONFIG_DEBUG_CLPS711X_UART2
  16. mov \rp, #0x0000 @ UART1
  17. #else
  18. mov \rp, #0x1000 @ UART2
  19. #endif
  20. orr \rv, \rp, #CLPS711X_VIRT_BASE
  21. orr \rp, \rp, #CLPS711X_PHYS_BASE
  22. .endm
  23. .macro senduart,rd,rx
  24. str \rd, [\rx, #0x0480] @ UARTDR
  25. .endm
  26. .macro waituart,rd,rx
  27. .endm
  28. .macro busyuart,rd,rx
  29. 1001: ldr \rd, [\rx, #0x0140] @ SYSFLGx
  30. tst \rd, #1 << 11 @ UBUSYx
  31. bne 1001b
  32. .endm