nspire.S 757 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * linux/arch/arm/include/debug/nspire.S
  3. *
  4. * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2, as
  8. * published by the Free Software Foundation.
  9. *
  10. */
  11. #define NSPIRE_EARLY_UART_PHYS_BASE 0x90020000
  12. #define NSPIRE_EARLY_UART_VIRT_BASE 0xfee20000
  13. .macro addruart, rp, rv, tmp
  14. ldr \rp, =(NSPIRE_EARLY_UART_PHYS_BASE) @ physical base address
  15. ldr \rv, =(NSPIRE_EARLY_UART_VIRT_BASE) @ virtual base address
  16. .endm
  17. #ifdef CONFIG_DEBUG_NSPIRE_CX_UART
  18. #include <asm/hardware/debug-pl01x.S>
  19. #endif
  20. #ifdef CONFIG_DEBUG_NSPIRE_CLASSIC_UART
  21. #define UART_SHIFT 2
  22. #include <asm/hardware/debug-8250.S>
  23. #endif