mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 11:20:41 +07:00
850bea2335
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Ray Jui <rjui@broadcom.com> Cc: Lee Jones <lee@kernel.org> Cc: Krzysztof Halasa <khalasa@piap.pl> Cc: Kukjin Kim <kgene@kernel.org> Cc: Rob Herring <robh@kernel.org> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Santosh Shilimkar <ssantosh@kernel.org> Cc: Roland Stigge <stigge@antcom.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Viresh Kumar <vireshk@kernel.org> Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com> Cc: Tony Prisk <linux@prisktech.co.nz> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Rob Herring <robh@kernel.org>
66 lines
1.6 KiB
C
66 lines
1.6 KiB
C
/*
|
|
* arch/arm/mach-spear13xx/spear1310.c
|
|
*
|
|
* SPEAr1310 machine source file
|
|
*
|
|
* Copyright (C) 2012 ST Microelectronics
|
|
* Viresh Kumar <vireshk@kernel.org>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#define pr_fmt(fmt) "SPEAr1310: " fmt
|
|
|
|
#include <linux/amba/pl022.h>
|
|
#include <linux/pata_arasan_cf_data.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/map.h>
|
|
#include "generic.h"
|
|
#include <mach/spear.h>
|
|
|
|
/* Base addresses */
|
|
#define SPEAR1310_RAS_GRP1_BASE UL(0xD8000000)
|
|
#define VA_SPEAR1310_RAS_GRP1_BASE UL(0xFA000000)
|
|
|
|
static void __init spear1310_dt_init(void)
|
|
{
|
|
platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
|
|
}
|
|
|
|
static const char * const spear1310_dt_board_compat[] = {
|
|
"st,spear1310",
|
|
"st,spear1310-evb",
|
|
NULL,
|
|
};
|
|
|
|
/*
|
|
* Following will create 16MB static virtual/physical mappings
|
|
* PHYSICAL VIRTUAL
|
|
* 0xD8000000 0xFA000000
|
|
*/
|
|
static struct map_desc spear1310_io_desc[] __initdata = {
|
|
{
|
|
.virtual = VA_SPEAR1310_RAS_GRP1_BASE,
|
|
.pfn = __phys_to_pfn(SPEAR1310_RAS_GRP1_BASE),
|
|
.length = SZ_16M,
|
|
.type = MT_DEVICE
|
|
},
|
|
};
|
|
|
|
static void __init spear1310_map_io(void)
|
|
{
|
|
iotable_init(spear1310_io_desc, ARRAY_SIZE(spear1310_io_desc));
|
|
spear13xx_map_io();
|
|
}
|
|
|
|
DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree")
|
|
.smp = smp_ops(spear13xx_smp_ops),
|
|
.map_io = spear1310_map_io,
|
|
.init_time = spear13xx_timer_init,
|
|
.init_machine = spear1310_dt_init,
|
|
.restart = spear_restart,
|
|
.dt_compat = spear1310_dt_board_compat,
|
|
MACHINE_END
|