spear300_evb.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/mach/arch.h>
  14. #include <asm/mach-types.h>
  15. #include <mach/generic.h>
  16. #include <mach/spear.h>
  17. static struct amba_device *amba_devs[] __initdata = {
  18. /* spear3xx specific devices */
  19. &gpio_device,
  20. &uart_device,
  21. /* spear300 specific devices */
  22. &gpio1_device,
  23. };
  24. static struct platform_device *plat_devs[] __initdata = {
  25. /* spear3xx specific devices */
  26. /* spear300 specific devices */
  27. };
  28. static void __init spear300_evb_init(void)
  29. {
  30. unsigned int i;
  31. /* call spear300 machine init function */
  32. spear300_init();
  33. /* Add Platform Devices */
  34. platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs));
  35. /* Add Amba Devices */
  36. for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
  37. amba_device_register(amba_devs[i], &iomem_resource);
  38. }
  39. MACHINE_START(SPEAR300, "ST-SPEAR300-EVB")
  40. .boot_params = 0x00000100,
  41. .map_io = spear3xx_map_io,
  42. .init_irq = spear3xx_init_irq,
  43. .timer = &spear_sys_timer,
  44. .init_machine = spear300_evb_init,
  45. MACHINE_END