1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-spear13xx/spear1310.c
5 * SPEAr1310 machine source file
7 * Copyright (C) 2012 ST Microelectronics
8 * Viresh Kumar <vireshk@kernel.org>
11 #define pr_fmt(fmt) "SPEAr1310: " fmt
13 #include <linux/amba/pl022.h>
14 #include <linux/pata_arasan_cf_data.h>
15 #include <asm/mach/arch.h>
16 #include <asm/mach/map.h>
21 #define SPEAR1310_RAS_GRP1_BASE UL(0xD8000000)
22 #define VA_SPEAR1310_RAS_GRP1_BASE UL(0xFA000000)
24 static void __init spear1310_dt_init(void)
26 platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
29 static const char * const spear1310_dt_board_compat[] = {
36 * Following will create 16MB static virtual/physical mappings
38 * 0xD8000000 0xFA000000
40 static struct map_desc spear1310_io_desc[] __initdata = {
42 .virtual = VA_SPEAR1310_RAS_GRP1_BASE,
43 .pfn = __phys_to_pfn(SPEAR1310_RAS_GRP1_BASE),
49 static void __init spear1310_map_io(void)
51 iotable_init(spear1310_io_desc, ARRAY_SIZE(spear1310_io_desc));
55 DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree")
56 .smp = smp_ops(spear13xx_smp_ops),
57 .map_io = spear1310_map_io,
58 .init_time = spear13xx_timer_init,
59 .init_machine = spear1310_dt_init,
60 .restart = spear_restart,
61 .dt_compat = spear1310_dt_board_compat,