spear300_evb.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * arch/arm/mach-spear3xx/spear300_evb.c
  3. *
  4. * SPEAr300 evaluation board source file
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Viresh Kumar<viresh.kumar@st.com>
  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 <asm/hardware/vic.h>
  14. #include <asm/mach/arch.h>
  15. #include <asm/mach-types.h>
  16. #include <mach/generic.h>
  17. #include <mach/hardware.h>
  18. /* padmux devices to enable */
  19. static struct pmx_dev *pmx_devs[] = {
  20. /* spear3xx specific devices */
  21. &spear3xx_pmx_i2c,
  22. &spear3xx_pmx_ssp_cs,
  23. &spear3xx_pmx_ssp,
  24. &spear3xx_pmx_mii,
  25. &spear3xx_pmx_uart0,
  26. /* spear300 specific devices */
  27. &spear300_pmx_fsmc_2_chips,
  28. &spear300_pmx_clcd,
  29. &spear300_pmx_telecom_sdhci_4bit,
  30. &spear300_pmx_gpio1,
  31. };
  32. static struct amba_device *amba_devs[] __initdata = {
  33. /* spear3xx specific devices */
  34. &spear3xx_gpio_device,
  35. &spear3xx_uart_device,
  36. /* spear300 specific devices */
  37. &spear300_gpio1_device,
  38. };
  39. static struct platform_device *plat_devs[] __initdata = {
  40. /* spear3xx specific devices */
  41. /* spear300 specific devices */
  42. };
  43. static void __init spear300_evb_init(void)
  44. {
  45. unsigned int i;
  46. /* call spear300 machine init function */
  47. spear300_init(&spear300_photo_frame_mode, pmx_devs,
  48. ARRAY_SIZE(pmx_devs));
  49. /* Add Platform Devices */
  50. platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs));
  51. /* Add Amba Devices */
  52. for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
  53. amba_device_register(amba_devs[i], &iomem_resource);
  54. }
  55. MACHINE_START(SPEAR300, "ST-SPEAR300-EVB")
  56. .atag_offset = 0x100,
  57. .map_io = spear3xx_map_io,
  58. .init_irq = spear3xx_init_irq,
  59. .handle_irq = vic_handle_irq,
  60. .timer = &spear3xx_timer,
  61. .init_machine = spear300_evb_init,
  62. .restart = spear_restart,
  63. MACHINE_END