debug-macro.S 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* arch/arm/mach-imx/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. #ifdef CONFIG_MACH_MX31ADS
  15. #include <mach/board-mx31ads.h>
  16. #endif
  17. #ifdef CONFIG_MACH_PCM037
  18. #include <mach/board-pcm037.h>
  19. #endif
  20. #ifdef CONFIG_MACH_MX31LITE
  21. #include <mach/board-mx31lite.h>
  22. #endif
  23. #ifdef CONFIG_MACH_MX27ADS
  24. #include <mach/board-mx27ads.h>
  25. #endif
  26. #ifdef CONFIG_MACH_MX21ADS
  27. #include <mach/board-mx21ads.h>
  28. #endif
  29. #ifdef CONFIG_MACH_PCM038
  30. #include <mach/board-pcm038.h>
  31. #endif
  32. #ifdef CONFIG_MACH_MX31_3DS
  33. #include <mach/board-mx31pdk.h>
  34. #endif
  35. #ifdef CONFIG_MACH_QONG
  36. #include <mach/board-qong.h>
  37. #endif
  38. #ifdef CONFIG_MACH_PCM043
  39. #include <mach/board-pcm043.h>
  40. #endif
  41. #ifdef CONFIG_MACH_MX27_3DS
  42. #include <mach/board-mx27pdk.h>
  43. #endif
  44. #ifdef CONFIG_MACH_ARMADILLO5X0
  45. #include <mach/board-armadillo5x0.h>
  46. #endif
  47. #ifdef CONFIG_MACH_MX35_3DS
  48. #include <mach/board-mx35pdk.h>
  49. #endif
  50. #ifdef CONFIG_MACH_MX27LITE
  51. #include <mach/board-mx27lite.h>
  52. #endif
  53. .macro addruart,rx
  54. mrc p15, 0, \rx, c1, c0
  55. tst \rx, #1 @ MMU enabled?
  56. ldreq \rx, =MXC_LL_UART_PADDR @ physical
  57. ldrne \rx, =MXC_LL_UART_VADDR @ virtual
  58. .endm
  59. .macro senduart,rd,rx
  60. str \rd, [\rx, #0x40] @ TXDATA
  61. .endm
  62. .macro waituart,rd,rx
  63. .endm
  64. .macro busyuart,rd,rx
  65. 1002: ldr \rd, [\rx, #0x98] @ SR2
  66. tst \rd, #1 << 3 @ TXDC
  67. beq 1002b @ wait until transmit done
  68. .endm