2
0
forked from Ivasoft/openwrt

cleanup and make interrupt code more robust

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34552
This commit is contained in:
Florian Fainelli
2012-12-06 22:40:02 +00:00
parent 47ccbaaa91
commit 1ed763b888
3 changed files with 39 additions and 19 deletions

View File

@@ -32,11 +32,6 @@
/** onboard uart **/
#define ADM8668_UARTCLK_FREQ 62500000
/* interrupt controller */
#define IRQ_STATUS_REG 0x00 /* Read */
#define IRQ_ENABLE_REG 0x08 /* Read/Write */
#define IRQ_DISABLE_REG 0x0C /* Write */
/* interrupt levels */
#define INT_LVL_SWI 1
#define INT_LVL_COMMS_RX 2
@@ -56,8 +51,6 @@
#define INT_LVL_MAX INT_LVL_USB
/* register access macros */
#define ADM8668_INTC_REG(_reg) \
(*((volatile unsigned long *)(KSEG1ADDR(ADM8668_INTC_BASE + (_reg)))))
#define ADM8668_LAN_REG(_reg) \
(*((volatile unsigned int *)(KSEG1ADDR(ADM8668_LAN_BASE + (_reg)))))
#define ADM8668_WAN_REG(_reg) \

View File

@@ -8,9 +8,7 @@
#ifndef __ASM_MACH_ADM8668_IRQ_H
#define __ASM_MACH_ADM8668_IRQ_H
#define NR_IRQS 32
#define NR_IRQS 32
#define MIPS_CPU_IRQ_BASE 16
#define IRQ_MASK 0xffff
#endif /* __ASM_MACH_ADM8668_IRQ_H */