diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2009-11-28 22:17:37 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2009-11-28 22:17:37 +0000 |
commit | b1d12c1feb88218b3d60dc61a16380ee09be90a2 (patch) | |
tree | f9c0860e6341d2d8c2f4c8f529bf96a6caddc0f5 /target/linux/amazon/patches-2.6.30/240-irq_fix.patch | |
parent | d4f45a44bd71cd5845b53a33097b0ad8d8a5c474 (diff) | |
download | upstream-b1d12c1feb88218b3d60dc61a16380ee09be90a2.tar.gz upstream-b1d12c1feb88218b3d60dc61a16380ee09be90a2.tar.bz2 upstream-b1d12c1feb88218b3d60dc61a16380ee09be90a2.zip |
[amazon] Add kernel 2.6.30 support
The device is booting and Ethernet is working, but nothing more was tested.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18589 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon/patches-2.6.30/240-irq_fix.patch')
-rw-r--r-- | target/linux/amazon/patches-2.6.30/240-irq_fix.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/amazon/patches-2.6.30/240-irq_fix.patch b/target/linux/amazon/patches-2.6.30/240-irq_fix.patch new file mode 100644 index 0000000000..151f1b4fcc --- /dev/null +++ b/target/linux/amazon/patches-2.6.30/240-irq_fix.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/amazon/interrupt.c ++++ b/arch/mips/amazon/interrupt.c +@@ -177,12 +177,11 @@ void __init arch_init_irq(void) + setup_irq(i, &cascade); + } + +- for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++) { +- irq_desc[i].status = IRQ_DISABLED; +- irq_desc[i].action = 0; +- irq_desc[i].depth = 1; +- set_irq_chip(i, &amazon_irq_type); +- } ++ for (i = INT_NUM_IRQ0; i <= INT_NUM_IM4_IRL31; i++) ++ set_irq_chip_and_handler(i, &amazon_irq_type, ++ handle_level_irq); ++ ++ set_c0_status(IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5); + } + + void __cpuinit arch_fixup_c0_irqs(void) |