diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
commit | f42b6353a9620e5970202b4dc00869baeaa6c394 (patch) | |
tree | 2e0e2146effb547c681faed71e1cd042af250d90 /target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch | |
parent | 402b3d79fd509ae32bde32910c3df9202c306383 (diff) | |
download | master-187ad058-f42b6353a9620e5970202b4dc00869baeaa6c394.tar.gz master-187ad058-f42b6353a9620e5970202b4dc00869baeaa6c394.tar.bz2 master-187ad058-f42b6353a9620e5970202b4dc00869baeaa6c394.zip |
[leon] move patches to patches-2.6.36
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34220 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch')
-rw-r--r-- | target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch b/target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch new file mode 100644 index 0000000000..58f7657d40 --- /dev/null +++ b/target/linux/leon/patches-2.6.36/014-timer_irqctrl_amba_vendor_device.patch @@ -0,0 +1,32 @@ +From 12782c44d0c687b5b0400a8224a9b1bf9eb9a428 Mon Sep 17 00:00:00 2001 +From: Daniel Hellstrom <daniel@gaisler.com> +Date: Tue, 26 Oct 2010 09:59:05 +0200 +Subject: [PATCH] TIMER,IRQCTRL: added raw AMBA vendor/device number to match against. + +Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> +--- + arch/sparc/kernel/leon_kernel.c | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +--- a/arch/sparc/kernel/leon_kernel.c ++++ b/arch/sparc/kernel/leon_kernel.c +@@ -120,7 +120,8 @@ void __init leon_init_timers(irq_handler + + /* 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"))) { ++ if (rootnp && ((np=of_find_node_by_name(rootnp, "GAISLER_IRQMP")) || ++ (np=of_find_node_by_name(rootnp, "01_00d")))) { + pp = of_find_property(np, "reg", &len); + if (pp) + leon3_irqctrl_regs = *(struct leon3_irqctrl_regs_map **)pp->value; +@@ -128,7 +129,8 @@ void __init leon_init_timers(irq_handler + + /* Find GPTIMER Timer Registers base address otherwise bail out. */ + np = rootnp; +- while (np && (np=of_find_node_by_name(np, "GAISLER_GPTIMER"))) { ++ while (np && ((np=of_find_node_by_name(np, "GAISLER_GPTIMER")) || ++ (np=of_find_node_by_name(np, "01_011")))) { + ampopts = 0; + pp = of_find_property(np, "ampopts", &len); + if ( pp && ((ampopts = *(int *)pp->value) == 0) ) { |