nslu2.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * arch/arm/mach-ixp4xx/include/mach/nslu2.h
  3. *
  4. * NSLU2 platform specific definitions
  5. *
  6. * Author: Mark Rakes <mrakes AT mac.com>
  7. * Maintainers: http://www.nslu2-linux.org
  8. *
  9. * based on ixdp425.h:
  10. * Copyright 2004 (c) MontaVista, Software, Inc.
  11. *
  12. * This file is licensed under the terms of the GNU General Public
  13. * License version 2. This program is licensed "as is" without any
  14. * warranty of any kind, whether express or implied.
  15. */
  16. #ifndef __ASM_ARCH_HARDWARE_H__
  17. #error "Do not include this directly, instead #include <mach/hardware.h>"
  18. #endif
  19. #define NSLU2_SDA_PIN 7
  20. #define NSLU2_SCL_PIN 6
  21. /*
  22. * NSLU2 PCI IRQs
  23. */
  24. #define NSLU2_PCI_MAX_DEV 3
  25. #define NSLU2_PCI_IRQ_LINES 3
  26. /* PCI controller GPIO to IRQ pin mappings */
  27. #define NSLU2_PCI_INTA_PIN 11
  28. #define NSLU2_PCI_INTB_PIN 10
  29. #define NSLU2_PCI_INTC_PIN 9
  30. #define NSLU2_PCI_INTD_PIN 8
  31. /* NSLU2 Timer */
  32. #define NSLU2_FREQ 66000000
  33. /* Buttons */
  34. #define NSLU2_PB_GPIO 5 /* power button */
  35. #define NSLU2_PO_GPIO 8 /* power off */
  36. #define NSLU2_RB_GPIO 12 /* reset button */
  37. /* Buzzer */
  38. #define NSLU2_GPIO_BUZZ 4
  39. /* LEDs */
  40. #define NSLU2_LED_RED_GPIO 0
  41. #define NSLU2_LED_GRN_GPIO 1
  42. #define NSLU2_LED_DISK1_GPIO 3
  43. #define NSLU2_LED_DISK2_GPIO 2