mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
ARM: use common irqchip_init for GIC init
Convert all GIC DT initialization over to use common irqchip_init function. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: David Brown <davidb@codeaurora.org> Cc: Daniel Walker <dwalker@fifo99.com> Cc: Bryan Huntsman <bryanh@codeaurora.org> Cc: Tony Lindgren <tony@atomide.com> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Magnus Damm <magnus.damm@gmail.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Viresh Kumar <viresh.linux@gmail.com> Cc: Shiraz Hashim <shiraz.hashim@st.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Cc: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
81243e444c
commit
0529e315bb
18 changed files with 35 additions and 145 deletions
|
@ -15,12 +15,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <linux/dw_apb_timer.h>
|
||||
#include <linux/irqchip.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/of_platform.h>
|
||||
|
||||
#include <asm/hardware/cache-l2x0.h>
|
||||
#include <asm/hardware/gic.h>
|
||||
#include <asm/mach/arch.h>
|
||||
#include <asm/mach/map.h>
|
||||
|
||||
|
@ -62,11 +62,6 @@ static void __init socfpga_map_io(void)
|
|||
early_printk("Early printk initialized\n");
|
||||
}
|
||||
|
||||
const static struct of_device_id irq_match[] = {
|
||||
{ .compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
|
||||
{}
|
||||
};
|
||||
|
||||
void __init socfpga_sysmgr_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
|
@ -78,9 +73,9 @@ void __init socfpga_sysmgr_init(void)
|
|||
rst_manager_base_addr = of_iomap(np, 0);
|
||||
}
|
||||
|
||||
static void __init gic_init_irq(void)
|
||||
static void __init socfpga_init_irq(void)
|
||||
{
|
||||
of_irq_init(irq_match);
|
||||
irqchip_init();
|
||||
socfpga_sysmgr_init();
|
||||
}
|
||||
|
||||
|
@ -105,7 +100,7 @@ static const char *altera_dt_match[] = {
|
|||
DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA")
|
||||
.smp = smp_ops(socfpga_smp_ops),
|
||||
.map_io = socfpga_map_io,
|
||||
.init_irq = gic_init_irq,
|
||||
.init_irq = socfpga_init_irq,
|
||||
.timer = &dw_apb_timer,
|
||||
.init_machine = socfpga_cyclone5_init,
|
||||
.restart = socfpga_cyclone5_restart,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue