mvebu.S 801 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Early serial output macro for Marvell SoC
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Lior Amsalem <alior@marvell.com>
  7. * Gregory Clement <gregory.clement@free-electrons.com>
  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. #ifdef CONFIG_DEBUG_MVEBU_UART_ALTERNATE
  14. #define ARMADA_370_XP_REGS_PHYS_BASE 0xf1000000
  15. #else
  16. #define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000
  17. #endif
  18. #define ARMADA_370_XP_REGS_VIRT_BASE 0xfec00000
  19. .macro addruart, rp, rv, tmp
  20. ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE
  21. ldr \rv, =ARMADA_370_XP_REGS_VIRT_BASE
  22. orr \rp, \rp, #0x00012000
  23. orr \rv, \rv, #0x00012000
  24. .endm
  25. #define UART_SHIFT 2
  26. #include <asm/hardware/debug-8250.S>