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