Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-spear13xx/spear1340.c |
| 3 | * |
| 4 | * SPEAr1340 machine source file |
| 5 | * |
| 6 | * Copyright (C) 2012 ST Microelectronics |
Viresh Kumar | 10d8935 | 2012-06-20 12:53:02 -0700 | [diff] [blame] | 7 | * Viresh Kumar <viresh.linux@gmail.com> |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 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 | |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 16 | #include <linux/of_platform.h> |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 17 | #include <asm/mach/arch.h> |
Arnd Bergmann | 2b9c613 | 2012-12-02 15:49:04 +0100 | [diff] [blame] | 18 | #include "generic.h" |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 19 | |
| 20 | static void __init spear1340_dt_init(void) |
| 21 | { |
Pratyush Anand | 549f3ae | 2014-04-14 15:27:36 +0530 | [diff] [blame^] | 22 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
Viresh Kumar | 2449d33 | 2014-03-10 15:43:18 +0530 | [diff] [blame] | 23 | platform_device_register_simple("spear-cpufreq", -1, NULL, 0); |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | static const char * const spear1340_dt_board_compat[] = { |
| 27 | "st,spear1340", |
| 28 | "st,spear1340-evb", |
| 29 | NULL, |
| 30 | }; |
| 31 | |
| 32 | DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") |
Arnd Bergmann | 2d8b21d | 2011-09-08 13:15:22 +0100 | [diff] [blame] | 33 | .smp = smp_ops(spear13xx_smp_ops), |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 34 | .map_io = spear13xx_map_io, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 35 | .init_time = spear13xx_timer_init, |
Viresh Kumar | e3978dc | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 36 | .init_machine = spear1340_dt_init, |
| 37 | .restart = spear_restart, |
| 38 | .dt_compat = spear1340_dt_board_compat, |
| 39 | MACHINE_END |