diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:08 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:08 +0000 |
commit | c398e877022f5e76f06e54d4eb0601f166859062 (patch) | |
tree | 98addc02f41d652e39ae1f7afa251108ab606416 /target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch | |
parent | 9ada69d709f3406488f57d895fea6c14fac44cf1 (diff) | |
download | master-187ad058-c398e877022f5e76f06e54d4eb0601f166859062.tar.gz master-187ad058-c398e877022f5e76f06e54d4eb0601f166859062.tar.bz2 master-187ad058-c398e877022f5e76f06e54d4eb0601f166859062.zip |
leon: R.I.P.
It is broken since ~9 months and nobody takes care of that.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35488 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch')
-rw-r--r-- | target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch b/target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch deleted file mode 100644 index 18d7f8beac..0000000000 --- a/target/linux/leon/patches-2.6.36/001-find_irq_and_timer_via_of.patch +++ /dev/null @@ -1,48 +0,0 @@ -From af1da1d5a8701f39cdbae4a0ab8e04b450eef298 Mon Sep 17 00:00:00 2001 -From: Daniel Hellstrom <daniel@gaisler.com> -Date: Wed, 8 Sep 2010 18:05:38 +0200 -Subject: [PATCH] SPARC/LEON: find IRQ and Timer via OF-Tree, instead of hardcoded. - -Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> ---- - arch/sparc/kernel/leon_kernel.c | 23 ++++++++++++++++++++++- - 1 files changed, 22 insertions(+), 1 deletions(-) - ---- a/arch/sparc/kernel/leon_kernel.c -+++ b/arch/sparc/kernel/leon_kernel.c -@@ -105,13 +105,34 @@ static void leon_disable_irq(unsigned in - void __init leon_init_timers(irq_handler_t counter_fn) - { - int irq; -+ struct device_node *rootnp, *np; -+ struct property *pp; -+ int len; - - leondebug_irq_disable = 0; - leon_debug_irqout = 0; - master_l10_counter = (unsigned int *)&dummy_master_l10_counter; - dummy_master_l10_counter = 0; - -- if (leon3_gptimer_regs && leon3_irqctrl_regs) { -+ /* Find IRQMP IRQ Controller Registers base address otherwise bail out. */ -+ rootnp = of_find_node_by_path("/ambapp0"); -+ if (rootnp && (np=of_find_node_by_name(rootnp, "GAISLER_IRQMP"))) { -+ pp = of_find_property(np, "reg", &len); -+ if (pp) -+ leon3_irqctrl_regs = *(struct leon3_irqctrl_regs_map **)pp->value; -+ } -+ -+ /* Find GPTIMER Timer Registers base address otherwise bail out. */ -+ if (rootnp && (np=of_find_node_by_name(rootnp, "GAISLER_GPTIMER"))) { -+ pp = of_find_property(np, "reg", &len); -+ if (pp) -+ leon3_gptimer_regs = *(struct leon3_gptimer_regs_map **)pp->value; -+ pp = of_find_property(np, "interrupts", &len); -+ if (pp) -+ leon3_gptimer_irq = *(unsigned int *)pp->value; -+ } -+ -+ if (leon3_gptimer_regs && leon3_irqctrl_regs && leon3_gptimer_irq) { - LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].val, 0); - LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].rld, - (((1000000 / HZ) - 1))); |