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