blob: bc1f07c49cd4a5628a9e7c2957597589b2d42f2a [file] [log] [blame]
Jamie Ilesaf756552011-07-25 17:36:42 +01001/*
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 Ilesaf756552011-07-25 17:36:42 +01008 */
Jamie Ilesaf756552011-07-25 17:36:42 +01009
10#define UART_SHIFT 2
Rob Herring59bba2a2012-09-06 14:14:46 -050011#define PICOXCELL_UART1_BASE 0x80230000
12#define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000)
Jamie Ilesaf756552011-07-25 17:36:42 +010013
Jamie Iles0836b5c2011-11-04 01:13:20 +000014 .macro addruart, rp, rv, tmp
Jamie Ilesaf756552011-07-25 17:36:42 +010015 ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE)
16 ldr \rp, =PICOXCELL_UART1_BASE
17 .endm
18
Pavel Machekef3f9442012-10-17 20:16:48 +020019#include "8250_32.S"