18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * arch/arm/mach-spear13xx/spear1340.c 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * SPEAr1340 machine source file 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2012 ST Microelectronics 78c2ecf20Sopenharmony_ci * Viresh Kumar <vireshk@kernel.org> 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 108c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without any 118c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#define pr_fmt(fmt) "SPEAr1340: " fmt 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#include <linux/of_platform.h> 178c2ecf20Sopenharmony_ci#include <asm/mach/arch.h> 188c2ecf20Sopenharmony_ci#include "generic.h" 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistatic void __init spear1340_dt_init(void) 218c2ecf20Sopenharmony_ci{ 228c2ecf20Sopenharmony_ci platform_device_register_simple("spear-cpufreq", -1, NULL, 0); 238c2ecf20Sopenharmony_ci} 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_cistatic const char * const spear1340_dt_board_compat[] = { 268c2ecf20Sopenharmony_ci "st,spear1340", 278c2ecf20Sopenharmony_ci "st,spear1340-evb", 288c2ecf20Sopenharmony_ci NULL, 298c2ecf20Sopenharmony_ci}; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciDT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") 328c2ecf20Sopenharmony_ci .smp = smp_ops(spear13xx_smp_ops), 338c2ecf20Sopenharmony_ci .map_io = spear13xx_map_io, 348c2ecf20Sopenharmony_ci .init_time = spear13xx_timer_init, 358c2ecf20Sopenharmony_ci .init_machine = spear1340_dt_init, 368c2ecf20Sopenharmony_ci .restart = spear_restart, 378c2ecf20Sopenharmony_ci .dt_compat = spear1340_dt_board_compat, 388c2ecf20Sopenharmony_ciMACHINE_END 39