1 1.2 martin /* $NetBSD: nslu2reg.h,v 1.2 2008/04/28 20:23:17 martin 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 * 19 1.1 scw * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 1.1 scw * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 1.1 scw * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 1.1 scw * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 1.1 scw * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 1.1 scw * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 1.1 scw * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 1.1 scw * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 1.1 scw * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 1.1 scw * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 1.1 scw * POSSIBILITY OF SUCH DAMAGE. 30 1.1 scw */ 31 1.1 scw 32 1.1 scw #ifndef _NSLU2REG_H_ 33 1.1 scw #define _NSLU2REG_H_ 34 1.1 scw 35 1.1 scw /* 36 1.1 scw * PCI GPIO Assignments 37 1.1 scw */ 38 1.1 scw #define GPIO_PCI_INTC 9 /* GPIO[9]: PCI INTC [Input] */ 39 1.1 scw #define PCI_INT_C IXP425_INT_GPIO_9 40 1.1 scw #define GPIO_PCI_INTB 10 /* GPIO[10]: PCI INTB [Input] */ 41 1.1 scw #define PCI_INT_B IXP425_INT_GPIO_10 42 1.1 scw #define GPIO_PCI_INTA 11 /* GPIO[11]: PCI INTA [Input] */ 43 1.1 scw #define PCI_INT_A IXP425_INT_GPIO_11 44 1.1 scw #define GPIO_PCI_RESET 13 /* GPIO[13]: PCI Reset [Output] */ 45 1.1 scw #define GPIO_PCI_CLK 14 /* GPIO[14]: 33MHz PCI Clock [Output] */ 46 1.1 scw 47 1.1 scw /* 48 1.1 scw * I2C Bus GPIO Assignments 49 1.1 scw */ 50 1.1 scw #define GPIO_I2C_SCL 6 /* GPIO[6]: I2c Clock [Output] */ 51 1.1 scw #define GPIO_I2C_SCL_BIT (1u << 6) 52 1.1 scw #define GPIO_I2C_SDA 7 /* GPIO[7]: I2C Data [Tristate] */ 53 1.1 scw #define GPIO_I2C_SDA_BIT (1u << 7) 54 1.1 scw 55 1.1 scw /* 56 1.1 scw * LED GPIO Assignments 57 1.1 scw */ 58 1.1 scw #define GPIO_LED_STATUS 0 /* GPIO[0]: Status LED [Output, active high] */ 59 1.1 scw #define GPIO_LED_READY 1 /* GPIO[1]: Ready LED [Output, active high] */ 60 1.1 scw #define GPIO_LED_DISK2 2 /* GPIO[2]: Disk 2 LED [Output, active low] */ 61 1.1 scw #define GPIO_LED_DISK1 3 /* GPIO[3]: Disk 1 LED [Output, active low] */ 62 1.1 scw 63 1.1 scw /* 64 1.1 scw * Button GPIO Assignments 65 1.1 scw */ 66 1.1 scw #define GPIO_BUTTON_PWR 5 /* GPIO[5]: Power button [Input, pulsed] */ 67 1.1 scw #define BUTTON_PWR_INT IXP425_INT_GPIO_5 68 1.1 scw #define GPIO_BUTTON_RST 12 /* GPIO[12]: Reset button [Input, active low] */ 69 1.1 scw #define BUTTON_RST_INT IXP425_INT_GPIO_12 70 1.1 scw 71 1.1 scw /* 72 1.1 scw * Miscellaneous GPIO Assignments 73 1.1 scw */ 74 1.1 scw #define GPIO_BUZZER 4 /* GPIO[4]: Buzzer [Output] */ 75 1.1 scw #define GPIO_POWER_OFF 8 /* GPIO[8]: Power Off [Output, Active high] */ 76 1.1 scw #define GPIO_EXP_CLOCK 15 /* GPIO[15]: Expandion bus clock [Output] */ 77 1.1 scw 78 1.1 scw 79 1.1 scw /* 80 1.1 scw * Flash memory 81 1.1 scw */ 82 1.1 scw #define NSLU2_FLASH_HWBASE 0x50000000 83 1.1 scw #define NSLU2_FLASH_VBASE 0xfc000000 84 1.1 scw #define NSLU2_FLASH_SIZE 0x00800000 85 1.1 scw 86 1.1 scw /* 87 1.1 scw * Interesting locations in Flash 88 1.1 scw */ 89 1.1 scw #define NSLU2_FLASH_ETHERNET_MAC (NSLU2_FLASH_VBASE + 0x3ffb0) 90 1.1 scw 91 1.1 scw #endif /* _NSLU2REG_H_ */ 92