Jamie Iles | af75655 | 2011-07-25 17:36:42 +0100 | [diff] [blame] | 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 | * |
Jamie Iles | af75655 | 2011-07-25 17:36:42 +0100 | [diff] [blame] | 8 | */ |
Jamie Iles | af75655 | 2011-07-25 17:36:42 +0100 | [diff] [blame] | 9 | |
| 10 | #define UART_SHIFT 2 |
Rob Herring | 59bba2a | 2012-09-06 14:14:46 -0500 | [diff] [blame] | 11 | #define PICOXCELL_UART1_BASE 0x80230000 |
| 12 | #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000) |
Jamie Iles | af75655 | 2011-07-25 17:36:42 +0100 | [diff] [blame] | 13 | |
Jamie Iles | 0836b5c | 2011-11-04 01:13:20 +0000 | [diff] [blame] | 14 | .macro addruart, rp, rv, tmp |
Jamie Iles | af75655 | 2011-07-25 17:36:42 +0100 | [diff] [blame] | 15 | ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE) |
| 16 | ldr \rp, =PICOXCELL_UART1_BASE |
| 17 | .endm |
| 18 | |
Pavel Machek | ef3f944 | 2012-10-17 20:16:48 +0200 | [diff] [blame] | 19 | #include "8250_32.S" |