mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-03 15:17:43 +03:00
[xburst] jz4740: Properly setup intc irq handler.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20082 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1deca27073
commit
95a4336b23
@ -88,7 +88,8 @@ static irqreturn_t jz4740_cascade(int irq, void *data)
|
|||||||
|
|
||||||
static struct irqaction jz4740_cascade_action = {
|
static struct irqaction jz4740_cascade_action = {
|
||||||
.handler = jz4740_cascade,
|
.handler = jz4740_cascade,
|
||||||
.name = "JZ4740 cascade interrupt"
|
.name = "JZ4740 cascade interrupt",
|
||||||
|
.flags = IRQF_DISABLED,
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init arch_init_irq(void)
|
void __init arch_init_irq(void)
|
||||||
@ -110,7 +111,7 @@ asmlinkage void plat_irq_dispatch(void)
|
|||||||
{
|
{
|
||||||
unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM;
|
unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM;
|
||||||
if (pending & STATUSF_IP2)
|
if (pending & STATUSF_IP2)
|
||||||
jz4740_cascade(2, NULL);
|
do_IRQ(2);
|
||||||
else if(pending & STATUSF_IP3)
|
else if(pending & STATUSF_IP3)
|
||||||
do_IRQ(3);
|
do_IRQ(3);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user