xref: /netbsd-src/sys/arch/evbarm/iyonix/iyonixreg.h (revision 6fe6c35acf5a1fc8f761a098c3aea2e3f42d64b3)
1 /*	$NetBSD: iyonixreg.h,v 1.1 2019/02/14 21:47:52 macallan Exp $	*/
2 
3 /*
4  * Copyright (c) 2002 Wasabi Systems, Inc.
5  * All rights reserved.
6  *
7  * Based on code written by Jason R. Thorpe for Wasabi Systems, Inc.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. All advertising materials mentioning features or use of this software
18  *    must display the following acknowledgement:
19  *	This product includes software developed for the NetBSD Project by
20  *	Wasabi Systems, Inc.
21  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22  *    or promote products derived from this software without specific prior
23  *    written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
29  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35  * POSSIBILITY OF SUCH DAMAGE.
36  */
37 
38 #ifndef _IYONIXREG_H_
39 #define	_IYONIXREG_H_
40 
41 /*
42  * Memory map and register definitions for the Tungsten motherboard
43  */
44 
45 /*
46  * We allocate a page table for VA 0xfe400000 (4MB) and map the
47  * PCI I/O space (64K) and i80321 memory-mapped registers (4K) there.
48  */
49 #define	IYONIX_IOPXS_VBASE	0xfe400000UL
50 #define	IYONIX_IOW_VBASE	IYONIX_IOPXS_VBASE
51 #define	IYONIX_80321_VBASE	(IYONIX_IOW_VBASE +			\
52 				 VERDE_OUT_XLATE_IO_WIN_SIZE)
53 
54 #define IYONIX_UART1		0x900002f8
55 
56 /*
57  * The on-board devices are mapped VA==PA during bootstrap.
58  */
59 #define	IYONIX_OBIO_BASE	0x90000000UL
60 #define	IYONIX_OBIO_SIZE	0x00100000UL	/* 1MB */
61 
62 #define	IYONIX_FLASH_BASE	0xA0000000UL
63 #define	IYONIX_FLASH_SIZE	0x00800000UL	/* 8MB */
64 
65 #define IYONIX_MASTER_PIC	0x20
66 #define IYONIX_SLAVE_PIC	0xa0
67 
68 #endif /* _IYONIXREG_H_ */
69