162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * arch/arm/mach-spear13xx/spear1340.c 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * SPEAr1340 machine source file 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (C) 2012 ST Microelectronics 862306a36Sopenharmony_ci * Viresh Kumar <vireshk@kernel.org> 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define pr_fmt(fmt) "SPEAr1340: " fmt 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include <linux/platform_device.h> 1462306a36Sopenharmony_ci#include <asm/mach/arch.h> 1562306a36Sopenharmony_ci#include "generic.h" 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_cistatic void __init spear1340_dt_init(void) 1862306a36Sopenharmony_ci{ 1962306a36Sopenharmony_ci platform_device_register_simple("spear-cpufreq", -1, NULL, 0); 2062306a36Sopenharmony_ci} 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_cistatic const char * const spear1340_dt_board_compat[] = { 2362306a36Sopenharmony_ci "st,spear1340", 2462306a36Sopenharmony_ci "st,spear1340-evb", 2562306a36Sopenharmony_ci NULL, 2662306a36Sopenharmony_ci}; 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ciDT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") 2962306a36Sopenharmony_ci .smp = smp_ops(spear13xx_smp_ops), 3062306a36Sopenharmony_ci .map_io = spear13xx_map_io, 3162306a36Sopenharmony_ci .init_time = spear13xx_timer_init, 3262306a36Sopenharmony_ci .init_machine = spear1340_dt_init, 3362306a36Sopenharmony_ci .restart = spear_restart, 3462306a36Sopenharmony_ci .dt_compat = spear1340_dt_board_compat, 3562306a36Sopenharmony_ciMACHINE_END 36