asm9260.S 753 B

123456789101112131415161718192021222324252627282930
  1. /* Debugging macro include header
  2. *
  3. * Copyright (C) 1994-1999 Russell King
  4. * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
  5. * Modified for ASM9260 by Oleksij Remepl <linux@rempel-privat.de>
  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. */
  12. .macro addruart, rp, rv, tmp
  13. ldr \rp, = CONFIG_DEBUG_UART_PHYS
  14. ldr \rv, = CONFIG_DEBUG_UART_VIRT
  15. .endm
  16. .macro waituart,rd,rx
  17. .endm
  18. .macro senduart,rd,rx
  19. str \rd, [\rx, #0x50] @ TXDATA
  20. .endm
  21. .macro busyuart,rd,rx
  22. 1002: ldr \rd, [\rx, #0x60] @ STAT
  23. tst \rd, #1 << 27 @ TXEMPTY
  24. beq 1002b @ wait until transmit done
  25. .endm