spear1340.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * arch/arm/mach-spear13xx/spear1340.c
  3. *
  4. * SPEAr1340 machine source file
  5. *
  6. * Copyright (C) 2012 ST Microelectronics
  7. * Viresh Kumar <viresh.linux@gmail.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. #define pr_fmt(fmt) "SPEAr1340: " fmt
  14. #include <linux/of_platform.h>
  15. #include <asm/mach/arch.h>
  16. #include "generic.h"
  17. static void __init spear1340_dt_init(void)
  18. {
  19. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  20. platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
  21. }
  22. static const char * const spear1340_dt_board_compat[] = {
  23. "st,spear1340",
  24. "st,spear1340-evb",
  25. NULL,
  26. };
  27. DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree")
  28. .smp = smp_ops(spear13xx_smp_ops),
  29. .map_io = spear13xx_map_io,
  30. .init_time = spear13xx_timer_init,
  31. .init_machine = spear1340_dt_init,
  32. .restart = spear_restart,
  33. .dt_compat = spear1340_dt_board_compat,
  34. MACHINE_END