debug-pl01x.S 693 B

1234567891011121314151617181920212223242526272829
  1. /* arch/arm/include/asm/hardware/debug-pl01x.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 <linux/amba/serial.h>
  14. .macro senduart,rd,rx
  15. strb \rd, [\rx, #UART01x_DR]
  16. .endm
  17. .macro waituart,rd,rx
  18. 1001: ldr \rd, [\rx, #UART01x_FR]
  19. tst \rd, #UART01x_FR_TXFF
  20. bne 1001b
  21. .endm
  22. .macro busyuart,rd,rx
  23. 1001: ldr \rd, [\rx, #UART01x_FR]
  24. tst \rd, #UART01x_FR_BUSY
  25. bne 1001b
  26. .endm