gumstixreg.h revision 1.2.4.2 1 1.2.4.2 ad /* $NetBSD: gumstixreg.h,v 1.2.4.2 2006/11/18 21:29:10 ad Exp $ */
2 1.2.4.2 ad /*
3 1.2.4.2 ad * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
4 1.2.4.2 ad * All rights reserved.
5 1.2.4.2 ad *
6 1.2.4.2 ad * Written by Takashi Kiyohara and Susumu Miki for WIDE Project and SOUM
7 1.2.4.2 ad * Corporation.
8 1.2.4.2 ad *
9 1.2.4.2 ad * Redistribution and use in source and binary forms, with or without
10 1.2.4.2 ad * modification, are permitted provided that the following conditions
11 1.2.4.2 ad * are met:
12 1.2.4.2 ad * 1. Redistributions of source code must retain the above copyright
13 1.2.4.2 ad * notice, this list of conditions and the following disclaimer.
14 1.2.4.2 ad * 2. Redistributions in binary form must reproduce the above copyright
15 1.2.4.2 ad * notice, this list of conditions and the following disclaimer in the
16 1.2.4.2 ad * documentation and/or other materials provided with the distribution.
17 1.2.4.2 ad * 3. Neither the name of the project nor the name of SOUM Corporation
18 1.2.4.2 ad * may be used to endorse or promote products derived from this software
19 1.2.4.2 ad * without specific prior written permission.
20 1.2.4.2 ad *
21 1.2.4.2 ad * THIS SOFTWARE IS PROVIDED BY THE PROJECT and SOUM CORPORATION ``AS IS''
22 1.2.4.2 ad * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23 1.2.4.2 ad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 1.2.4.2 ad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT AND SOUM CORPORATION
25 1.2.4.2 ad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 1.2.4.2 ad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 1.2.4.2 ad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 1.2.4.2 ad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 1.2.4.2 ad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 1.2.4.2 ad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 1.2.4.2 ad * POSSIBILITY OF SUCH DAMAGE.
32 1.2.4.2 ad */
33 1.2.4.2 ad #ifndef _EVBARM_GUMSTIXREG_H_
34 1.2.4.2 ad #define _EVBARM_GUMSTIXREG_H_
35 1.2.4.2 ad
36 1.2.4.2 ad #include <arm/xscale/pxa2x0reg.h>
37 1.2.4.2 ad
38 1.2.4.2 ad
39 1.2.4.2 ad /*
40 1.2.4.2 ad * Logical mapping for onboard/integrated peripherals
41 1.2.4.2 ad * that are used while bootstrapping.
42 1.2.4.2 ad */
43 1.2.4.2 ad #define GUMSTIX_IO_AREA_VBASE 0xfd000000
44 1.2.4.2 ad #define GUMSTIX_INTCTL_VBASE 0xfd000000
45 1.2.4.2 ad #define GUMSTIX_CLKMAN_VBASE 0xfd100000
46 1.2.4.2 ad #define GUMSTIX_GPIO_VBASE 0xfd200000
47 1.2.4.2 ad #define GUMSTIX_FFUART_VBASE 0xfd300000
48 1.2.4.2 ad #define GUMSTIX_BTUART_VBASE 0xfd400000
49 1.2.4.2 ad
50 1.2.4.2 ad
51 1.2.4.2 ad #define ioreg_read(a) (*(volatile unsigned *)(a))
52 1.2.4.2 ad #define ioreg_write(a,v) (*(volatile unsigned *)(a)=(v))
53 1.2.4.2 ad
54 1.2.4.2 ad #define ioreg16_read(a) (*(volatile uint16_t *)(a))
55 1.2.4.2 ad #define ioreg16_write(a,v) (*(volatile uint16_t *)(a)=(v))
56 1.2.4.2 ad
57 1.2.4.2 ad #define ioreg8_read(a) (*(volatile uint8_t *)(a))
58 1.2.4.2 ad #define ioreg8_write(a,v) (*(volatile uint8_t *)(a)=(v))
59 1.2.4.2 ad
60 1.2.4.2 ad #endif /* _EVBARM_GUMSTIXREG_H_ */
61