dc21285.S 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* arch/arm/mach-footbridge/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 <asm/hardware/dec21285.h>
  14. #include <mach/hardware.h>
  15. /* For EBSA285 debugging */
  16. .equ dc21285_high, ARMCSR_BASE & 0xff000000
  17. .equ dc21285_low, ARMCSR_BASE & 0x00ffffff
  18. .macro addruart, rp, rv, tmp
  19. .if dc21285_low
  20. mov \rp, #dc21285_low
  21. .else
  22. mov \rp, #0
  23. .endif
  24. orr \rv, \rp, #dc21285_high
  25. orr \rp, \rp, #0x42000000
  26. .endm
  27. .macro senduart,rd,rx
  28. str \rd, [\rx, #0x160] @ UARTDR
  29. .endm
  30. .macro busyuart,rd,rx
  31. 1001: ldr \rd, [\rx, #0x178] @ UARTFLG
  32. tst \rd, #1 << 3
  33. bne 1001b
  34. .endm
  35. .macro waituart,rd,rx
  36. .endm