board-iomega_ix2_200.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * arch/arm/mach-kirkwood/board-iomega_ix2_200.c
  3. *
  4. * Iomega StorCenter ix2-200
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/init.h>
  12. #include <linux/mv643xx_eth.h>
  13. #include <linux/ethtool.h>
  14. #include "common.h"
  15. #include "mpp.h"
  16. static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
  17. .phy_addr = MV643XX_ETH_PHY_NONE,
  18. .speed = SPEED_1000,
  19. .duplex = DUPLEX_FULL,
  20. };
  21. static unsigned int iomega_ix2_200_mpp_config[] __initdata = {
  22. MPP12_GPIO, /* Reset Button */
  23. MPP14_GPIO, /* Power Button */
  24. MPP15_GPIO, /* Backup LED (blue) */
  25. MPP16_GPIO, /* Power LED (white) */
  26. MPP35_GPIO, /* OTB Button */
  27. MPP36_GPIO, /* Rebuild LED (white) */
  28. MPP37_GPIO, /* Health LED (red) */
  29. MPP38_GPIO, /* SATA LED brightness control 1 */
  30. MPP39_GPIO, /* SATA LED brightness control 2 */
  31. MPP40_GPIO, /* Backup LED brightness control 1 */
  32. MPP41_GPIO, /* Backup LED brightness control 2 */
  33. MPP42_GPIO, /* Power LED brightness control 1 */
  34. MPP43_GPIO, /* Power LED brightness control 2 */
  35. MPP44_GPIO, /* Health LED brightness control 1 */
  36. MPP45_GPIO, /* Health LED brightness control 2 */
  37. MPP46_GPIO, /* Rebuild LED brightness control 1 */
  38. MPP47_GPIO, /* Rebuild LED brightness control 2 */
  39. 0
  40. };
  41. void __init iomega_ix2_200_init(void)
  42. {
  43. /*
  44. * Basic setup. Needs to be called early.
  45. */
  46. kirkwood_mpp_conf(iomega_ix2_200_mpp_config);
  47. kirkwood_ehci_init();
  48. kirkwood_ge01_init(&iomega_ix2_200_ge00_data);
  49. }