board-iomega_ix2_200.c 1.7 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/platform_device.h>
  13. #include <linux/mv643xx_eth.h>
  14. #include <linux/ethtool.h>
  15. #include <mach/kirkwood.h>
  16. #include "common.h"
  17. #include "mpp.h"
  18. static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
  19. .phy_addr = MV643XX_ETH_PHY_NONE,
  20. .speed = SPEED_1000,
  21. .duplex = DUPLEX_FULL,
  22. };
  23. static unsigned int iomega_ix2_200_mpp_config[] __initdata = {
  24. MPP12_GPIO, /* Reset Button */
  25. MPP14_GPIO, /* Power Button */
  26. MPP15_GPIO, /* Backup LED (blue) */
  27. MPP16_GPIO, /* Power LED (white) */
  28. MPP35_GPIO, /* OTB Button */
  29. MPP36_GPIO, /* Rebuild LED (white) */
  30. MPP37_GPIO, /* Health LED (red) */
  31. MPP38_GPIO, /* SATA LED brightness control 1 */
  32. MPP39_GPIO, /* SATA LED brightness control 2 */
  33. MPP40_GPIO, /* Backup LED brightness control 1 */
  34. MPP41_GPIO, /* Backup LED brightness control 2 */
  35. MPP42_GPIO, /* Power LED brightness control 1 */
  36. MPP43_GPIO, /* Power LED brightness control 2 */
  37. MPP44_GPIO, /* Health LED brightness control 1 */
  38. MPP45_GPIO, /* Health LED brightness control 2 */
  39. MPP46_GPIO, /* Rebuild LED brightness control 1 */
  40. MPP47_GPIO, /* Rebuild LED brightness control 2 */
  41. 0
  42. };
  43. void __init iomega_ix2_200_init(void)
  44. {
  45. /*
  46. * Basic setup. Needs to be called early.
  47. */
  48. kirkwood_mpp_conf(iomega_ix2_200_mpp_config);
  49. kirkwood_ge01_init(&iomega_ix2_200_ge00_data);
  50. }