dsmg600.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * DSM-G600 platform specific definitions
  3. *
  4. * Copyright (C) 2006 Tower Technologies
  5. * Author: Alessandro Zummo <a.zummo@towertech.it>
  6. *
  7. * based on ixdp425.h:
  8. * Copyright 2004 (C) MontaVista, Software, Inc.
  9. *
  10. * This file is licensed under the terms of the GNU General Public
  11. * License version 2. This program is licensed "as is" without any
  12. * warranty of any kind, whether express or implied.
  13. */
  14. #ifndef __ASM_ARCH_HARDWARE_H__
  15. #error "Do not include this directly, instead #include <asm/hardware.h>"
  16. #endif
  17. #define DSMG600_SDA_PIN 5
  18. #define DSMG600_SCL_PIN 4
  19. /*
  20. * DSMG600 PCI IRQs
  21. */
  22. #define DSMG600_PCI_MAX_DEV 4
  23. #define DSMG600_PCI_IRQ_LINES 3
  24. /* PCI controller GPIO to IRQ pin mappings */
  25. #define DSMG600_PCI_INTA_PIN 11
  26. #define DSMG600_PCI_INTB_PIN 10
  27. #define DSMG600_PCI_INTC_PIN 9
  28. #define DSMG600_PCI_INTD_PIN 8
  29. #define DSMG600_PCI_INTE_PIN 7
  30. #define DSMG600_PCI_INTF_PIN 6
  31. /* DSM-G600 Timer Setting */
  32. #define DSMG600_FREQ 66000000
  33. /* Buttons */
  34. #define DSMG600_PB_GPIO 15 /* power button */
  35. #define DSMG600_PB_BM (1L << DSMG600_PB_GPIO)
  36. #define DSMG600_RB_GPIO 3 /* reset button */
  37. #define DSMG600_RB_IRQ IRQ_IXP4XX_GPIO3
  38. #define DSMG600_PO_GPIO 2 /* power off */
  39. /* LEDs */
  40. #define DSMG600_LED_PWR_GPIO 0
  41. #define DSMG600_LED_PWR_BM (1L << DSMG600_LED_PWR_GPIO)
  42. #define DSMG600_LED_WLAN_GPIO 14
  43. #define DSMG600_LED_WLAN_BM (1L << DSMG600_LED_WLAN_GPIO)