2005-11-10 14:05:04 +00:00
|
|
|
/*
|
2008-08-05 15:14:15 +00:00
|
|
|
* arch/arm/mach-ixp4xx/include/mach/nslu2.h
|
2005-11-10 14:05:04 +00:00
|
|
|
*
|
|
|
|
* NSLU2 platform specific definitions
|
|
|
|
*
|
|
|
|
* Author: Mark Rakes <mrakes AT mac.com>
|
|
|
|
* Maintainers: http://www.nslu2-linux.org
|
|
|
|
*
|
|
|
|
* based on ixdp425.h:
|
|
|
|
* Copyright 2004 (c) MontaVista, Software, Inc.
|
|
|
|
*
|
2007-05-23 21:41:53 +00:00
|
|
|
* This file is licensed under the terms of the GNU General Public
|
2005-11-10 14:05:04 +00:00
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_HARDWARE_H__
|
2008-08-05 15:14:15 +00:00
|
|
|
#error "Do not include this directly, instead #include <mach/hardware.h>"
|
2005-11-10 14:05:04 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define NSLU2_SDA_PIN 7
|
|
|
|
#define NSLU2_SCL_PIN 6
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NSLU2 PCI IRQs
|
|
|
|
*/
|
|
|
|
#define NSLU2_PCI_MAX_DEV 3
|
|
|
|
#define NSLU2_PCI_IRQ_LINES 3
|
|
|
|
|
|
|
|
|
|
|
|
/* PCI controller GPIO to IRQ pin mappings */
|
|
|
|
#define NSLU2_PCI_INTA_PIN 11
|
|
|
|
#define NSLU2_PCI_INTB_PIN 10
|
|
|
|
#define NSLU2_PCI_INTC_PIN 9
|
|
|
|
#define NSLU2_PCI_INTD_PIN 8
|
|
|
|
|
|
|
|
/* NSLU2 Timer */
|
|
|
|
#define NSLU2_FREQ 66000000
|
|
|
|
|
|
|
|
/* Buttons */
|
|
|
|
|
2008-02-03 11:05:42 +00:00
|
|
|
#define NSLU2_PB_GPIO 5 /* power button */
|
2007-05-23 21:41:53 +00:00
|
|
|
#define NSLU2_PO_GPIO 8 /* power off */
|
2008-02-03 11:05:42 +00:00
|
|
|
#define NSLU2_RB_GPIO 12 /* reset button */
|
2005-11-10 14:05:04 +00:00
|
|
|
|
|
|
|
/* Buzzer */
|
|
|
|
|
|
|
|
#define NSLU2_GPIO_BUZZ 4
|
2006-12-05 23:33:12 +00:00
|
|
|
|
2005-11-10 14:05:04 +00:00
|
|
|
/* LEDs */
|
|
|
|
|
2007-05-23 21:41:53 +00:00
|
|
|
#define NSLU2_LED_RED_GPIO 0
|
|
|
|
#define NSLU2_LED_GRN_GPIO 1
|
|
|
|
#define NSLU2_LED_DISK1_GPIO 3
|
|
|
|
#define NSLU2_LED_DISK2_GPIO 2
|