blob: a212af90c0bc6255282cde714b1da8b086e6123f [file] [log] [blame]
Viresh Kumare3978dc2012-04-19 22:23:13 +05301/*
2 * arch/arm/mach-spear13xx/spear1340.c
3 *
4 * SPEAr1340 machine source file
5 *
6 * Copyright (C) 2012 ST Microelectronics
Viresh Kumarda899472015-07-17 16:23:50 -07007 * Viresh Kumar <vireshk@kernel.org>
Viresh Kumare3978dc2012-04-19 22:23:13 +05308 *
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
14#define pr_fmt(fmt) "SPEAr1340: " fmt
15
Viresh Kumare3978dc2012-04-19 22:23:13 +053016#include <linux/of_platform.h>
Viresh Kumare3978dc2012-04-19 22:23:13 +053017#include <asm/mach/arch.h>
Arnd Bergmann2b9c6132012-12-02 15:49:04 +010018#include "generic.h"
Viresh Kumare3978dc2012-04-19 22:23:13 +053019
20static void __init spear1340_dt_init(void)
21{
Viresh Kumar2449d332014-03-10 15:43:18 +053022 platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
Viresh Kumare3978dc2012-04-19 22:23:13 +053023}
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")
Arnd Bergmann2d8b21d2011-09-08 13:15:22 +010032 .smp = smp_ops(spear13xx_smp_ops),
Viresh Kumare3978dc2012-04-19 22:23:13 +053033 .map_io = spear13xx_map_io,
Stephen Warren6bb27d72012-11-08 12:40:59 -070034 .init_time = spear13xx_timer_init,
Viresh Kumare3978dc2012-04-19 22:23:13 +053035 .init_machine = spear1340_dt_init,
36 .restart = spear_restart,
37 .dt_compat = spear1340_dt_board_compat,
38MACHINE_END