Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360075
b: refs/heads/master
c: d3d2b42
h: refs/heads/master
i:
  360073: 91050b5
  360071: 261e87b
v: v3
  • Loading branch information
Gabor Juhos authored and John Crispin committed Feb 17, 2013
1 parent 56e809c commit a9ca193
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 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: 0916b46962cbcac9465d253d0a398435b3965fd5
refs/heads/master: d3d2b4200b5a42851365e903d101f8f0882eb9eb
10 changes: 10 additions & 0 deletions trunk/arch/mips/ralink/dts/rt3050.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
bootargs = "console=ttyS0,57600 init=/init";
};

cpuintc: cpuintc@0 {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller;
compatible = "mti,cpu-interrupt-controller";
};

palmbus@10000000 {
compatible = "palmbus";
reg = <0x10000000 0x200000>;
Expand All @@ -37,6 +44,9 @@

interrupt-controller;
#interrupt-cells = <1>;

interrupt-parent = <&cpuintc>;
interrupts = <2>;
};

memc@300 {
Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/mips/ralink/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ static int __init intc_of_init(struct device_node *node,
{
struct resource res;
struct irq_domain *domain;
int irq;

mips_cpu_irq_init();
irq = irq_of_parse_and_map(node, 0);
if (!irq)
panic("Failed to get INTC IRQ");

if (of_address_to_resource(node, 0, &res))
panic("Failed to get intc memory range");
Expand All @@ -156,15 +159,16 @@ static int __init intc_of_init(struct device_node *node,

rt_intc_w32(INTC_INT_GLOBAL, INTC_REG_ENABLE);

irq_set_chained_handler(RALINK_CPU_IRQ_INTC, ralink_intc_irq_handler);
irq_set_handler_data(RALINK_CPU_IRQ_INTC, domain);
irq_set_chained_handler(irq, ralink_intc_irq_handler);
irq_set_handler_data(irq, domain);

cp0_perfcount_irq = irq_create_mapping(domain, 9);

return 0;
}

static struct of_device_id __initdata of_irq_ids[] = {
{ .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_intc_init },
{ .compatible = "ralink,rt2880-intc", .data = intc_of_init },
{},
};
Expand Down

0 comments on commit a9ca193

Please sign in to comment.