]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/mach-spear/spear1340.c
Update Viresh Kumar's email address
[mirror_ubuntu-zesty-kernel.git] / arch / arm / mach-spear / spear1340.c
CommitLineData
e3978dc7
VK
1/*
2 * arch/arm/mach-spear13xx/spear1340.c
3 *
4 * SPEAr1340 machine source file
5 *
6 * Copyright (C) 2012 ST Microelectronics
da89947b 7 * Viresh Kumar <vireshk@kernel.org>
e3978dc7
VK
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
14#define pr_fmt(fmt) "SPEAr1340: " fmt
15
e3978dc7 16#include <linux/of_platform.h>
e3978dc7 17#include <asm/mach/arch.h>
2b9c613c 18#include "generic.h"
e3978dc7
VK
19
20static void __init spear1340_dt_init(void)
21{
549f3ae1 22 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
2449d33a 23 platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
e3978dc7
VK
24}
25
26static const char * const spear1340_dt_board_compat[] = {
27 "st,spear1340",
28 "st,spear1340-evb",
29 NULL,
30};
31
32DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree")
2d8b21d9 33 .smp = smp_ops(spear13xx_smp_ops),
e3978dc7 34 .map_io = spear13xx_map_io,
6bb27d73 35 .init_time = spear13xx_timer_init,
e3978dc7
VK
36 .init_machine = spear1340_dt_init,
37 .restart = spear_restart,
38 .dt_compat = spear1340_dt_board_compat,
39MACHINE_END