board-dreamplug.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net>
  3. *
  4. * arch/arm/mach-kirkwood/board-dreamplug.c
  5. *
  6. * Marvell DreamPlug Reference Board Init for drivers not converted to
  7. * 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/mv643xx_eth.h>
  16. #include <linux/gpio.h>
  17. #include <linux/platform_data/mmc-mvsdio.h>
  18. #include "common.h"
  19. #include "mpp.h"
  20. static struct mv643xx_eth_platform_data dreamplug_ge00_data = {
  21. .phy_addr = MV643XX_ETH_PHY_ADDR(0),
  22. };
  23. static struct mv643xx_eth_platform_data dreamplug_ge01_data = {
  24. .phy_addr = MV643XX_ETH_PHY_ADDR(1),
  25. };
  26. static struct mvsdio_platform_data dreamplug_mvsdio_data = {
  27. /* unfortunately the CD signal has not been connected */
  28. };
  29. static unsigned int dreamplug_mpp_config[] __initdata = {
  30. MPP0_SPI_SCn,
  31. MPP1_SPI_MOSI,
  32. MPP2_SPI_SCK,
  33. MPP3_SPI_MISO,
  34. MPP47_GPIO, /* Bluetooth LED */
  35. MPP48_GPIO, /* Wifi LED */
  36. MPP49_GPIO, /* Wifi AP LED */
  37. 0
  38. };
  39. void __init dreamplug_init(void)
  40. {
  41. /*
  42. * Basic setup. Needs to be called early.
  43. */
  44. kirkwood_mpp_conf(dreamplug_mpp_config);
  45. kirkwood_ehci_init();
  46. kirkwood_ge00_init(&dreamplug_ge00_data);
  47. kirkwood_ge01_init(&dreamplug_ge01_data);
  48. kirkwood_sdio_init(&dreamplug_mvsdio_data);
  49. }