Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296704
b: refs/heads/master
c: dab6487
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Arnd Bergmann committed Mar 16, 2012
1 parent 8b30f81 commit 4aa53bb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e0ce270b2ef3d0d00c3f0725f48aa3127d73edf
refs/heads/master: dab6487e35680ac5043c58a60554c49052276f5e
11 changes: 11 additions & 0 deletions trunk/arch/arm/boot/dts/db8500.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "stericsson,db8500";
interrupt-parent = <&intc>;
ranges;

intc: interrupt-controller@a0411000 {
compatible = "arm,cortex-a9-gic";
#interrupt-cells = <3>;
#address-cells = <1>;
interrupt-controller;
interrupt-parent;
reg = <0xa0411000 0x1000>,
<0xa0410100 0x100>;
};

pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 7 0x4>;
Expand Down
14 changes: 13 additions & 1 deletion trunk/arch/arm/mach-ux500/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/of.h>
#include <linux/of_irq.h>

#include <asm/hardware/gic.h>
#include <asm/mach/map.h>
Expand All @@ -28,6 +30,11 @@

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 __iomem *dist_base;
Expand All @@ -42,7 +49,12 @@ void __init ux500_init_irq(void)
} else
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
Expand Down

0 comments on commit 4aa53bb

Please sign in to comment.