spear1340.c 841 B

1234567891011121314151617181920212223242526272829303132333435
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * arch/arm/mach-spear13xx/spear1340.c
  4. *
  5. * SPEAr1340 machine source file
  6. *
  7. * Copyright (C) 2012 ST Microelectronics
  8. * Viresh Kumar <[email protected]>
  9. */
  10. #define pr_fmt(fmt) "SPEAr1340: " fmt
  11. #include <linux/of_platform.h>
  12. #include <asm/mach/arch.h>
  13. #include "generic.h"
  14. static void __init spear1340_dt_init(void)
  15. {
  16. platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
  17. }
  18. static const char * const spear1340_dt_board_compat[] = {
  19. "st,spear1340",
  20. "st,spear1340-evb",
  21. NULL,
  22. };
  23. DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree")
  24. .smp = smp_ops(spear13xx_smp_ops),
  25. .map_io = spear13xx_map_io,
  26. .init_time = spear13xx_timer_init,
  27. .init_machine = spear1340_dt_init,
  28. .restart = spear_restart,
  29. .dt_compat = spear1340_dt_board_compat,
  30. MACHINE_END