board-ib62x0.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2012 (C), Simon Baatz <gmbnomis@gmail.com>
  3. *
  4. * arch/arm/mach-kirkwood/board-ib62x0.c
  5. *
  6. * RaidSonic ICY BOX IB-NAS6210 & IB-NAS6220 init for drivers not
  7. * converted to flattened device tree yet.
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/init.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/mtd/partitions.h>
  17. #include <linux/ata_platform.h>
  18. #include <linux/mv643xx_eth.h>
  19. #include <linux/input.h>
  20. #include <asm/mach-types.h>
  21. #include <asm/mach/arch.h>
  22. #include <mach/kirkwood.h>
  23. #include "common.h"
  24. #include "mpp.h"
  25. static struct mv643xx_eth_platform_data ib62x0_ge00_data = {
  26. .phy_addr = MV643XX_ETH_PHY_ADDR(8),
  27. };
  28. static unsigned int ib62x0_mpp_config[] __initdata = {
  29. MPP0_NF_IO2,
  30. MPP1_NF_IO3,
  31. MPP2_NF_IO4,
  32. MPP3_NF_IO5,
  33. MPP4_NF_IO6,
  34. MPP5_NF_IO7,
  35. MPP18_NF_IO0,
  36. MPP19_NF_IO1,
  37. MPP22_GPIO, /* OS LED red */
  38. MPP24_GPIO, /* Power off device */
  39. MPP25_GPIO, /* OS LED green */
  40. MPP27_GPIO, /* USB transfer LED */
  41. MPP28_GPIO, /* Reset button */
  42. MPP29_GPIO, /* USB Copy button */
  43. 0
  44. };
  45. void __init ib62x0_init(void)
  46. {
  47. /*
  48. * Basic setup. Needs to be called early.
  49. */
  50. kirkwood_mpp_conf(ib62x0_mpp_config);
  51. kirkwood_ge00_init(&ib62x0_ge00_data);
  52. }