pxa.S 966 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Early serial output macro for Marvell PXA/MMP SoC
  3. *
  4. * Copyright (C) 1994-1999 Russell King
  5. * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
  6. *
  7. * Copyright (C) 2013 Haojian Zhuang
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #if defined(CONFIG_DEBUG_PXA_UART1)
  14. #define PXA_UART_REG_PHYS_BASE 0x40100000
  15. #define PXA_UART_REG_VIRT_BASE 0xf2100000
  16. #elif defined(CONFIG_DEBUG_MMP_UART2)
  17. #define PXA_UART_REG_PHYS_BASE 0xd4017000
  18. #define PXA_UART_REG_VIRT_BASE 0xfe017000
  19. #elif defined(CONFIG_DEBUG_MMP_UART3)
  20. #define PXA_UART_REG_PHYS_BASE 0xd4018000
  21. #define PXA_UART_REG_VIRT_BASE 0xfe018000
  22. #else
  23. #error "Select uart for DEBUG_LL"
  24. #endif
  25. .macro addruart, rp, rv, tmp
  26. ldr \rp, =PXA_UART_REG_PHYS_BASE
  27. ldr \rv, =PXA_UART_REG_VIRT_BASE
  28. .endm
  29. #define UART_SHIFT 2
  30. #include <asm/hardware/debug-8250.S>