Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * linux/arch/mips/tx4938/common/irq.c
0003  *
0004  * Common tx4938 irq handler
0005  * Copyright (C) 2000-2001 Toshiba Corporation
0006  *
0007  * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
0008  * terms of the GNU General Public License version 2. This program is
0009  * licensed "as is" without any warranty of any kind, whether express
0010  * or implied.
0011  *
0012  * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
0013  */
0014 #include <linux/init.h>
0015 #include <linux/interrupt.h>
0016 #include <linux/irq.h>
0017 #include <asm/irq_cpu.h>
0018 #include <asm/txx9/tx4938.h>
0019 
0020 void __init tx4938_irq_init(void)
0021 {
0022     int i;
0023 
0024     mips_cpu_irq_init();
0025     txx9_irq_init(TX4938_IRC_REG & 0xfffffffffULL);
0026     irq_set_chained_handler(MIPS_CPU_IRQ_BASE + TX4938_IRC_INT,
0027                 handle_simple_irq);
0028     /* raise priority for errors, timers, SIO */
0029     txx9_irq_set_pri(TX4938_IR_ECCERR, 7);
0030     txx9_irq_set_pri(TX4938_IR_WTOERR, 7);
0031     txx9_irq_set_pri(TX4938_IR_PCIERR, 7);
0032     txx9_irq_set_pri(TX4938_IR_PCIPME, 7);
0033     for (i = 0; i < TX4938_NUM_IR_TMR; i++)
0034         txx9_irq_set_pri(TX4938_IR_TMR(i), 6);
0035     for (i = 0; i < TX4938_NUM_IR_SIO; i++)
0036         txx9_irq_set_pri(TX4938_IR_SIO(i), 5);
0037 }