diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-07-04 03:55:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-07-04 03:55:23 +0000 |
commit | 6b68ee7a55ee1c2f42563825fd48f3da427df415 (patch) | |
tree | 803e78185260317fee8cebd41718bf8d6b81151f /target/linux/atheros-2.6/files/arch/mips/atheros/irq.c | |
parent | b6c3f28a94eeb824837e08973103d9cc86a72dae (diff) | |
download | master-187ad058-6b68ee7a55ee1c2f42563825fd48f3da427df415.tar.gz master-187ad058-6b68ee7a55ee1c2f42563825fd48f3da427df415.tar.bz2 master-187ad058-6b68ee7a55ee1c2f42563825fd48f3da427df415.zip |
refactor atheros system code - also add support for the reset button (sends netlink messages in the same format as broadcom-diag)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7869 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/files/arch/mips/atheros/irq.c')
-rw-r--r-- | target/linux/atheros-2.6/files/arch/mips/atheros/irq.c | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c b/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c deleted file mode 100644 index 5665aa3b93..0000000000 --- a/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * Copyright (C) 2003 Atheros Communications, Inc., All Rights Reserved. - * Copyright (C) 2006 FON Technology, SL. - * Copyright (C) 2006 Imre Kaloz <kaloz@openwrt.org> - * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> - */ - -/* - * Interrupt support for AR531X WiSOC. - */ - -#include <linux/autoconf.h> -#include <linux/init.h> -#include <linux/kernel_stat.h> -#include <linux/signal.h> -#include <linux/sched.h> -#include <linux/interrupt.h> -#include <linux/slab.h> -#include <linux/random.h> -#include <linux/pm.h> -#include <linux/delay.h> -#include <linux/reboot.h> -#include <linux/irq.h> -#include <asm/bootinfo.h> -#include <asm/mipsregs.h> -#include <asm/irq_cpu.h> -#include "ar531x.h" - - -/* ARGSUSED */ -irqreturn_t -spurious_irq_handler(int cpl, void *dev_id) -{ - /* - printk("spurious_irq_handler: %d cause=0x%8.8x status=0x%8.8x\n", - cpl, cause_intrs, status_intrs); - */ - return IRQ_NONE; -} - -/* ARGSUSED */ -irqreturn_t -spurious_misc_handler(int cpl, void *dev_id) -{ - /* - printk("spurious_misc_handler: 0x%x isr=0x%8.8x imr=0x%8.8x\n", - cpl, ar531x_isr, ar531x_imr); - */ - return IRQ_NONE; -} - -static struct irqaction spurious_irq = { - .handler = spurious_irq_handler, - .flags = SA_INTERRUPT, - .name = "spurious_irq", -}; - -static struct irqaction spurious_misc = { - .handler = spurious_misc_handler, - .flags = SA_INTERRUPT, - .name = "spurious_misc", -}; - -asmlinkage void plat_irq_dispatch(void) -{ - DO_AR5312(ar5312_irq_dispatch();) - DO_AR5315(ar5315_irq_dispatch();) -} - -void __init arch_init_irq(void) -{ - clear_c0_status(ST0_IM); - mips_cpu_irq_init(); - - /* Initialize interrupt controllers */ - DO_AR5312(ar5312_misc_intr_init(AR531X_MISC_IRQ_BASE);) - DO_AR5315(ar5315_misc_intr_init(AR531X_MISC_IRQ_BASE);) - - /* Default "spurious interrupt" handlers */ - setup_irq(AR531X_IRQ_NONE, &spurious_irq); - setup_irq(AR531X_MISC_IRQ_NONE, &spurious_misc); -} |