Annotation of sys/arch/zaurus/include/zaurus_reg.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: zaurus_reg.h,v 1.8 2006/11/25 18:10:29 uwe Exp $ */
2: /* $NetBSD: lubbock_reg.h,v 1.1 2003/06/18 10:51:15 bsh Exp $ */
3:
4: /*
5: * Copyright (c) 2002, 2003 Genetec Corporation. All rights reserved.
6: * Written by Hiroyuki Bessho for Genetec Corporation.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
16: * 3. The name of Genetec Corporation may not be used to endorse or
17: * promote products derived from this software without specific prior
18: * written permission.
19: *
20: * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
21: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22: * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION
24: * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30: * POSSIBILITY OF SUCH DAMAGE.
31: */
32:
33: #ifndef _ZAURUS_REG_H
34: #define _ZAURUS_REG_H
35:
36: #include <arm/xscale/pxa2x0reg.h>
37:
38: /*
39: * Logical mapping for onboard/integrated peripherals
40: */
41: #define ZAURUS_IO_AREA_VBASE 0xfd000000
42: #define ZAURUS_GPIO_VBASE 0xfd000000
43: #define ZAURUS_CLKMAN_VBASE 0xfd100000
44: #define ZAURUS_INTCTL_VBASE 0xfd200000
45: #define ZAURUS_SCOOP0_VBASE 0xfd300000
46: #define ZAURUS_SCOOP1_VBASE 0xfd400000
47: #define ZAURUS_VBASE_FREE 0xfd500000
48: /* FFUART, BTUART and/or STUART are mapped to this area when
49: used for console or kgdb port */
50:
51: #define ioreg_read(a) (*(volatile unsigned *)(a))
52: #define ioreg_write(a,v) (*(volatile unsigned *)(a)=(v))
53:
54: #define ioreg16_read(a) (*(volatile uint16_t *)(a))
55: #define ioreg16_write(a,v) (*(volatile uint16_t *)(a)=(v))
56:
57: #define ioreg8_read(a) (*(volatile uint8_t *)(a))
58: #define ioreg8_write(a,v) (*(volatile uint8_t *)(a)=(v))
59:
60: /*
61: * Magic numbers for the C860 (PXA255) and C3000 (PXA27x).
62: */
63:
64: /* physical adresses of companion chips */
65: #define C3000_SCOOP0_BASE 0x10800000 /* XXX same as C860 */
66: #define C3000_SCOOP1_BASE 0x08800040
67:
68: /* processor IRQ numbers */
69: #define C860_CF0_IRQ 17
70: #define C3000_CF0_IRQ 105
71: #define C3000_CF1_IRQ 106
72:
73: /* processor GPIO pins */
74: #define C860_CF0_IRQ_PIN 14
75: #define C3000_RC_IRQ_PIN 13 /* remote control */
76: #define C3000_CF0_IRQ_PIN 94
77: #define C3000_CF1_IRQ_PIN 93
78: #define C3000_USB_DEVICE_PIN 35 /* indicate connection type */
79: #define C3000_USB_CONNECT_PIN 41 /* connection interrupt */
80: #define C3000_USB_PULLUP_PIN 45 /* show/hide device presence */
81: #define GPIO_HP_IN_C3000 116 /* headphone jack */
82:
83: #endif /* _ZAURUS_REG_H */
CVSweb