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 <vireshk@kernel.org>
9  */
10 
11 #define pr_fmt(fmt) "SPEAr1340: " fmt
12 
13 #include <linux/of_platform.h>
14 #include <asm/mach/arch.h>
15 #include "generic.h"
16 
spear1340_dt_init(void)17 static void __init spear1340_dt_init(void)
18 {
19 	platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
20 }
21 
22 static const char * const spear1340_dt_board_compat[] = {
23 	"st,spear1340",
24 	"st,spear1340-evb",
25 	NULL,
26 };
27 
28 DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree")
29 	.smp		=	smp_ops(spear13xx_smp_ops),
30 	.map_io		=	spear13xx_map_io,
31 	.init_time	=	spear13xx_timer_init,
32 	.init_machine	=	spear1340_dt_init,
33 	.restart	=	spear_restart,
34 	.dt_compat	=	spear1340_dt_board_compat,
35 MACHINE_END
36