|
@@ -16,6 +16,8 @@
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/stat.h>
|
|
#include <linux/stat.h>
|
|
|
|
+#include <linux/of.h>
|
|
|
|
+#include <linux/of_irq.h>
|
|
|
|
|
|
#include <asm/hardware/gic.h>
|
|
#include <asm/hardware/gic.h>
|
|
#include <asm/mach/map.h>
|
|
#include <asm/mach/map.h>
|
|
@@ -28,6 +30,11 @@
|
|
|
|
|
|
void __iomem *_PRCMU_BASE;
|
|
void __iomem *_PRCMU_BASE;
|
|
|
|
|
|
|
|
+static const struct of_device_id ux500_dt_irq_match[] = {
|
|
|
|
+ { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
|
|
|
|
+ {},
|
|
|
|
+};
|
|
|
|
+
|
|
void __init ux500_init_irq(void)
|
|
void __init ux500_init_irq(void)
|
|
{
|
|
{
|
|
void __iomem *dist_base;
|
|
void __iomem *dist_base;
|
|
@@ -42,7 +49,12 @@ void __init ux500_init_irq(void)
|
|
} else
|
|
} else
|
|
ux500_unknown_soc();
|
|
ux500_unknown_soc();
|
|
|
|
|
|
- gic_init(0, 29, dist_base, cpu_base);
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
|
+ if (of_have_populated_dt())
|
|
|
|
+ of_irq_init(ux500_dt_irq_match);
|
|
|
|
+ else
|
|
|
|
+#endif
|
|
|
|
+ gic_init(0, 29, dist_base, cpu_base);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Init clocks here so that they are available for system timer
|
|
* Init clocks here so that they are available for system timer
|