Merge branch 'drm-next-4.8' of git://people.freedesktop.org/~agd5f/linux into drm...
[deliverable/linux.git] / arch / mips / txx9 / generic / irq_tx4938.c
CommitLineData
23fbee9d 1/*
f30c2269 2 * linux/arch/mips/tx4938/common/irq.c
23fbee9d
RB
3 *
4 * Common tx4938 irq handler
5 * Copyright (C) 2000-2001 Toshiba Corporation
6 *
7 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
8 * terms of the GNU General Public License version 2. This program is
9 * licensed "as is" without any warranty of any kind, whether express
10 * or implied.
11 *
12 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
13 */
23fbee9d 14#include <linux/init.h>
23fbee9d 15#include <linux/interrupt.h>
ca4d3e67 16#include <linux/irq.h>
c87abd75 17#include <asm/irq_cpu.h>
edcaf1a6 18#include <asm/txx9/tx4938.h>
23fbee9d 19
edcaf1a6 20void __init tx4938_irq_init(void)
23fbee9d 21{
74894363
AN
22 int i;
23
c87abd75 24 mips_cpu_irq_init();
94a4c329 25 txx9_irq_init(TX4938_IRC_REG & 0xfffffffffULL);
e4ec7989 26 irq_set_chained_handler(MIPS_CPU_IRQ_BASE + TX4938_IRC_INT,
edcaf1a6 27 handle_simple_irq);
74894363
AN
28 /* raise priority for errors, timers, SIO */
29 txx9_irq_set_pri(TX4938_IR_ECCERR, 7);
30 txx9_irq_set_pri(TX4938_IR_WTOERR, 7);
31 txx9_irq_set_pri(TX4938_IR_PCIERR, 7);
32 txx9_irq_set_pri(TX4938_IR_PCIPME, 7);
33 for (i = 0; i < TX4938_NUM_IR_TMR; i++)
34 txx9_irq_set_pri(TX4938_IR_TMR(i), 6);
35 for (i = 0; i < TX4938_NUM_IR_SIO; i++)
36 txx9_irq_set_pri(TX4938_IR_SIO(i), 5);
e4ac58af 37}
This page took 0.749903 seconds and 5 git commands to generate.