picoxcell.S 509 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2011 Picochip Ltd., Jamie Iles
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #define UART_SHIFT 2
  10. #define PICOXCELL_UART1_BASE 0x80230000
  11. #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000)
  12. .macro addruart, rp, rv, tmp
  13. ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE)
  14. ldr \rp, =PICOXCELL_UART1_BASE
  15. .endm
  16. #include "8250_32.S"