Annotation of sys/arch/armish/dev/iq80321reg.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: iq80321reg.h,v 1.2 2006/05/29 17:30:26 drahn Exp $ */
2: /* $NetBSD: iq80321reg.h,v 1.4 2003/05/14 19:46:39 thorpej Exp $ */
3:
4: /*
5: * Copyright (c) 2002 Wasabi Systems, Inc.
6: * All rights reserved.
7: *
8: * Written by Jason R. Thorpe for Wasabi Systems, Inc.
9: *
10: * Redistribution and use in source and binary forms, with or without
11: * modification, are permitted provided that the following conditions
12: * are met:
13: * 1. Redistributions of source code must retain the above copyright
14: * notice, this list of conditions and the following disclaimer.
15: * 2. Redistributions in binary form must reproduce the above copyright
16: * notice, this list of conditions and the following disclaimer in the
17: * documentation and/or other materials provided with the distribution.
18: * 3. All advertising materials mentioning features or use of this software
19: * must display the following acknowledgement:
20: * This product includes software developed for the NetBSD Project by
21: * Wasabi Systems, Inc.
22: * 4. The name of Wasabi Systems, Inc. may not be used to endorse
23: * or promote products derived from this software without specific prior
24: * written permission.
25: *
26: * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
27: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28: * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC
30: * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36: * POSSIBILITY OF SUCH DAMAGE.
37: */
38:
39: #ifndef _IQ80321REG_H_
40: #define _IQ80321REG_H_
41:
42: /*
43: * Memory map and register definitions for the Intel IQ80321
44: * Evaluation Board.
45: */
46:
47: /*
48: * The memory map of the IQ80321 looks like so:
49: *
50: * ------------------------------
51: * Intel 80321 IOP Reserved
52: * FFFF E900 ------------------------------
53: * Peripheral Memory Mapped
54: * Registers
55: * FFFF E000 ------------------------------
56: * On-board devices
57: * FE80 0000 ------------------------------
58: * SDRAM
59: * A000 0000 ------------------------------
60: * Reserved
61: * 9100 0000 ------------------------------
62: * Flash
63: * 9080 0000 ------------------------------
64: * Reserved
65: * 9002 0000 ------------------------------
66: * ATU Outbound Transaction
67: * Windows
68: * 8000 0000 ------------------------------
69: * ATU Outbound Direct
70: * Addressing Windows
71: * 0000 1000 ------------------------------
72: * Initialization Boot Code
73: * from Flash
74: * 0000 0000 ------------------------------
75: */
76:
77: /*
78: * We allocate a page table for VA 0xfe400000 (4MB) and map the
79: * PCI I/O space (64K) and i80321 memory-mapped registers (4K) there.
80: */
81: #if 0
82: #define IQ80321_IOPXS_VBASE 0xfe400000UL
83: #define IQ80321_IOW_VBASE IQ80321_IOPXS_VBASE
84: #define IQ80321_80321_VBASE (IQ80321_IOW_VBASE + \
85: VERDE_OUT_XLATE_IO_WIN_SIZE)
86: #endif
87:
88: /*
89: * The IQ80321 on-board devices are mapped VA==PA during bootstrap.
90: * Conveniently, the size of the on-board register space is 1 section
91: * mapping.
92: */
93: #define IQ80321_OBIO_BASE 0xfe800000UL
94: #define IQ80321_OBIO_SIZE 0x00100000UL /* 1MB */
95:
96: #define IQ80321_UART1 0xfe800000UL /* TI 16550 */
97:
98: #define IQ80321_7SEG_MSB 0xfe840000UL
99: #define IQ80321_7SEG_LSB 0xfe850000UL
100:
101: #define IQ80321_ROT_SWITCH 0xfe8d0000UL
102:
103: #define IQ80321_BATTERY_STAT 0xfe8f0000UL
104: #define BATTERY_STAT_PRES (1U << 0)
105: #define BATTERY_STAT_CHRG (1U << 1)
106: #define BATTERY_STAT_DISCHRG (1U << 2)
107:
108: #endif /* _IQ80321REG_H_ */
CVSweb