nslu2reg.h revision 1.1 1 1.1 scw /* $NetBSD: nslu2reg.h,v 1.1 2006/02/28 20:40:33 scw Exp $ */
2 1.1 scw
3 1.1 scw /*-
4 1.1 scw * Copyright (c) 2006 The NetBSD Foundation, Inc.
5 1.1 scw * All rights reserved.
6 1.1 scw *
7 1.1 scw * This code is derived from software contributed to The NetBSD Foundation
8 1.1 scw * by Steve C. Woodford.
9 1.1 scw *
10 1.1 scw * Redistribution and use in source and binary forms, with or without
11 1.1 scw * modification, are permitted provided that the following conditions
12 1.1 scw * are met:
13 1.1 scw * 1. Redistributions of source code must retain the above copyright
14 1.1 scw * notice, this list of conditions and the following disclaimer.
15 1.1 scw * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 scw * notice, this list of conditions and the following disclaimer in the
17 1.1 scw * documentation and/or other materials provided with the distribution.
18 1.1 scw * 3. All advertising materials mentioning features or use of this software
19 1.1 scw * must display the following acknowledgement:
20 1.1 scw * This product includes software developed by the NetBSD
21 1.1 scw * Foundation, Inc. and its contributors.
22 1.1 scw * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.1 scw * contributors may be used to endorse or promote products derived
24 1.1 scw * from this software without specific prior written permission.
25 1.1 scw *
26 1.1 scw * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.1 scw * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.1 scw * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.1 scw * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.1 scw * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.1 scw * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.1 scw * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.1 scw * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.1 scw * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.1 scw * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.1 scw * POSSIBILITY OF SUCH DAMAGE.
37 1.1 scw */
38 1.1 scw
39 1.1 scw #ifndef _NSLU2REG_H_
40 1.1 scw #define _NSLU2REG_H_
41 1.1 scw
42 1.1 scw /*
43 1.1 scw * PCI GPIO Assignments
44 1.1 scw */
45 1.1 scw #define GPIO_PCI_INTC 9 /* GPIO[9]: PCI INTC [Input] */
46 1.1 scw #define PCI_INT_C IXP425_INT_GPIO_9
47 1.1 scw #define GPIO_PCI_INTB 10 /* GPIO[10]: PCI INTB [Input] */
48 1.1 scw #define PCI_INT_B IXP425_INT_GPIO_10
49 1.1 scw #define GPIO_PCI_INTA 11 /* GPIO[11]: PCI INTA [Input] */
50 1.1 scw #define PCI_INT_A IXP425_INT_GPIO_11
51 1.1 scw #define GPIO_PCI_RESET 13 /* GPIO[13]: PCI Reset [Output] */
52 1.1 scw #define GPIO_PCI_CLK 14 /* GPIO[14]: 33MHz PCI Clock [Output] */
53 1.1 scw
54 1.1 scw /*
55 1.1 scw * I2C Bus GPIO Assignments
56 1.1 scw */
57 1.1 scw #define GPIO_I2C_SCL 6 /* GPIO[6]: I2c Clock [Output] */
58 1.1 scw #define GPIO_I2C_SCL_BIT (1u << 6)
59 1.1 scw #define GPIO_I2C_SDA 7 /* GPIO[7]: I2C Data [Tristate] */
60 1.1 scw #define GPIO_I2C_SDA_BIT (1u << 7)
61 1.1 scw
62 1.1 scw /*
63 1.1 scw * LED GPIO Assignments
64 1.1 scw */
65 1.1 scw #define GPIO_LED_STATUS 0 /* GPIO[0]: Status LED [Output, active high] */
66 1.1 scw #define GPIO_LED_READY 1 /* GPIO[1]: Ready LED [Output, active high] */
67 1.1 scw #define GPIO_LED_DISK2 2 /* GPIO[2]: Disk 2 LED [Output, active low] */
68 1.1 scw #define GPIO_LED_DISK1 3 /* GPIO[3]: Disk 1 LED [Output, active low] */
69 1.1 scw
70 1.1 scw /*
71 1.1 scw * Button GPIO Assignments
72 1.1 scw */
73 1.1 scw #define GPIO_BUTTON_PWR 5 /* GPIO[5]: Power button [Input, pulsed] */
74 1.1 scw #define BUTTON_PWR_INT IXP425_INT_GPIO_5
75 1.1 scw #define GPIO_BUTTON_RST 12 /* GPIO[12]: Reset button [Input, active low] */
76 1.1 scw #define BUTTON_RST_INT IXP425_INT_GPIO_12
77 1.1 scw
78 1.1 scw /*
79 1.1 scw * Miscellaneous GPIO Assignments
80 1.1 scw */
81 1.1 scw #define GPIO_BUZZER 4 /* GPIO[4]: Buzzer [Output] */
82 1.1 scw #define GPIO_POWER_OFF 8 /* GPIO[8]: Power Off [Output, Active high] */
83 1.1 scw #define GPIO_EXP_CLOCK 15 /* GPIO[15]: Expandion bus clock [Output] */
84 1.1 scw
85 1.1 scw
86 1.1 scw /*
87 1.1 scw * Flash memory
88 1.1 scw */
89 1.1 scw #define NSLU2_FLASH_HWBASE 0x50000000
90 1.1 scw #define NSLU2_FLASH_VBASE 0xfc000000
91 1.1 scw #define NSLU2_FLASH_SIZE 0x00800000
92 1.1 scw
93 1.1 scw /*
94 1.1 scw * Interesting locations in Flash
95 1.1 scw */
96 1.1 scw #define NSLU2_FLASH_ETHERNET_MAC (NSLU2_FLASH_VBASE + 0x3ffb0)
97 1.1 scw
98 1.1 scw #endif /* _NSLU2REG_H_ */
99