mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e853ccf08b
Mostly cleanup/refactoring in core intc, cache flush, IPI send... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAABAgAGBQJT5YDrAAoJEGnX8d3iisJePtgQALJDm3Nn7fUkJRlk6Smb+IpQ 5LBLysiNWpauPNIEw26FKrAbUb3EnLL79v+DVPc5+5kVsp54T8ucl0kYGWdVrA2F yXEWynROB5HLDHW+3a4BhYDUAWf51PmJoL1IO7jXdPi/fM6W+m88UnpuTV2ISNfy h6N47MxhFj7EVgjULh254kOgbzpNkaIUsT2CH1VDPlOjn3TFVCvxBL7+IEkYvzFR zHV2GI91Y9YwU+xrX2/HhvyXYZYXUIFV/zFH78q0mOH4jl8ED0cH65y0tmG66tA6 P15Gt1761vU45dSctOvQtapUQ5UI2el2py9nto8m3mhLvKn8UOZ8cvEC40kQ16me SsnypLa0ONRMMPApvcJIQkyDiazNeilSkmT1mrX2u5HYJaRozYAbuChxXBwTHkX1 04HC3fAuZgr+/kQxOWtg0WjUahkycXoYP6nzNQ0MDjrYrbKCKpn7m5zphBWFEdbp jKQS1vqgMmMOz/hkez8Ba9G35LOLfzHt+oWB5gf1ibTaLGPIuf9tLOdFk6paz2e0 lPfDMERBx0JG705+nc7pZR1cWhpRLNPy7YOxQs+HaOqqPIuzYAklUNGwQFliuB12 AmXbRC/2VOXQIFgmf/jR0oaaxkp6BC9a46N0Qlpnwh9tlpsv7IxmkdwFdO3hCG9x s4ySPRIKcBZsJqjpYwcK =Mx5r -----END PGP SIGNATURE----- Merge tag 'arc-v3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc Pull ARC changes from Vineet Gupta: "Mostly cleanup/refactoring in core intc, cache flush, IPI send..." * tag 'arc-v3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: mm, arc: remove obsolete pagefault oom killer comment ARC: help gcc elide icache helper for !SMP ARC: move common ops for line/full cache into helpers ARC: cache boot reporting updates ARC: [intc] mask/unmask can be hidden again ARC: [plat-arcfpga] No need for init_irq hack ARC: [intc] don't mask all IRQ by default ARC: prune extra header includes from smp.c ARC: update some comments ARC: [SMP] unify cpu private IRQ requests (TIMER/IPI)
89 lines
2.2 KiB
C
89 lines
2.2 KiB
C
/*
|
|
* ARC FPGA Platform support code
|
|
*
|
|
* Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/init.h>
|
|
#include <linux/device.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/io.h>
|
|
#include <linux/console.h>
|
|
#include <linux/of_platform.h>
|
|
#include <asm/setup.h>
|
|
#include <asm/clk.h>
|
|
#include <asm/mach_desc.h>
|
|
#include <plat/memmap.h>
|
|
#include <plat/smp.h>
|
|
#include <plat/irq.h>
|
|
|
|
static void __init plat_fpga_early_init(void)
|
|
{
|
|
pr_info("[plat-arcfpga]: registering early dev resources\n");
|
|
|
|
#ifdef CONFIG_ISS_SMP_EXTN
|
|
iss_model_init_early_smp();
|
|
#endif
|
|
}
|
|
|
|
static void __init plat_fpga_populate_dev(void)
|
|
{
|
|
/*
|
|
* Traverses flattened DeviceTree - registering platform devices
|
|
* (if any) complete with their resources
|
|
*/
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
}
|
|
|
|
/*----------------------- Machine Descriptions ------------------------------
|
|
*
|
|
* Machine description is simply a set of platform/board specific callbacks
|
|
* This is not directly related to DeviceTree based dynamic device creation,
|
|
* however as part of early device tree scan, we also select the right
|
|
* callback set, by matching the DT compatible name.
|
|
*/
|
|
|
|
static const char *aa4_compat[] __initconst = {
|
|
"snps,arc-angel4",
|
|
NULL,
|
|
};
|
|
|
|
MACHINE_START(ANGEL4, "angel4")
|
|
.dt_compat = aa4_compat,
|
|
.init_early = plat_fpga_early_init,
|
|
.init_machine = plat_fpga_populate_dev,
|
|
#ifdef CONFIG_ISS_SMP_EXTN
|
|
.init_smp = iss_model_init_smp,
|
|
#endif
|
|
MACHINE_END
|
|
|
|
static const char *ml509_compat[] __initconst = {
|
|
"snps,arc-ml509",
|
|
NULL,
|
|
};
|
|
|
|
MACHINE_START(ML509, "ml509")
|
|
.dt_compat = ml509_compat,
|
|
.init_early = plat_fpga_early_init,
|
|
.init_machine = plat_fpga_populate_dev,
|
|
#ifdef CONFIG_SMP
|
|
.init_smp = iss_model_init_smp,
|
|
#endif
|
|
MACHINE_END
|
|
|
|
static const char *nsimosci_compat[] __initconst = {
|
|
"snps,nsimosci",
|
|
NULL,
|
|
};
|
|
|
|
MACHINE_START(NSIMOSCI, "nsimosci")
|
|
.dt_compat = nsimosci_compat,
|
|
.init_early = NULL,
|
|
.init_machine = plat_fpga_populate_dev,
|
|
MACHINE_END
|