1 1.2 matt /* $NetBSD: imx31lk_reg.h,v 1.2 2008/04/27 18:58:46 matt Exp $ */ 2 1.2 matt 3 1.2 matt /* derived from: */ 4 1.2 matt /* NetBSD: viper_reg.h,v 1.2 2005/12/11 12:17:11 christos Exp */ 5 1.2 matt 6 1.2 matt /* 7 1.2 matt * Copyright (c) 2005 Antti Kantee. All Rights Reserved. 8 1.2 matt * 9 1.2 matt * Redistribution and use in source and binary forms, with or without 10 1.2 matt * modification, are permitted provided that the following conditions 11 1.2 matt * are met: 12 1.2 matt * 1. Redistributions of source code must retain the above copyright 13 1.2 matt * notice, this list of conditions and the following disclaimer. 14 1.2 matt * 2. Redistributions in binary form must reproduce the above copyright 15 1.2 matt * notice, this list of conditions and the following disclaimer in the 16 1.2 matt * documentation and/or other materials provided with the distribution. 17 1.2 matt * 3. All advertising materials mentioning features or use of this software 18 1.2 matt * must display the following acknowledgement: 19 1.2 matt * This product includes software developed by The NetBSD 20 1.2 matt * Foundation, Inc. and its contributors. 21 1.2 matt * 4. The name of the company nor the name of the author may be used to 22 1.2 matt * endorse or promote products derived from this software without specific 23 1.2 matt * prior written permission. 24 1.2 matt * 25 1.2 matt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 26 1.2 matt * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 27 1.2 matt * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 28 1.2 matt * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 29 1.2 matt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 1.2 matt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31 1.2 matt * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 1.2 matt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 1.2 matt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 1.2 matt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 1.2 matt * SUCH DAMAGE. 36 1.2 matt */ 37 1.2 matt 38 1.2 matt #ifndef _EVBARM_IMX31_IMX31LK_REG_H 39 1.2 matt #define _EVBARM_IMX31_IMX31LK_REG_H 40 1.2 matt 41 1.2 matt 42 1.2 matt #define IMX31LITEKIT_UART1_VBASE 0xfd000000 43 1.2 matt #define IMX31LITEKIT_SM0_BASE 0xb4100000 /* physical */ 44 1.2 matt 45 1.2 matt #define ioreg_read(a) (*(volatile uint32_t *)(a)) 46 1.2 matt #define ioreg_write(a,v) (*(volatile uint32_t *)(a)=(v)) 47 1.2 matt 48 1.2 matt #endif /* _EVBARM_IMX31_IMX31LK_REG_H */ 49