blob: 6eac684bf19042cf6eb9590463ae337362b35b4e [file] [log] [blame]
Ralf Baechle23fbee92005-07-25 22:45:45 +00001/*
Uwe Zeisbergerf30c2262006-10-03 23:01:26 +02002 * linux/arch/mips/tx4938/common/irq.c
Ralf Baechle23fbee92005-07-25 22:45:45 +00003 *
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 */
Ralf Baechle23fbee92005-07-25 22:45:45 +000014#include <linux/init.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000015#include <linux/interrupt.h>
Atsushi Nemotoc87abd72007-08-02 23:36:02 +090016#include <asm/irq_cpu.h>
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +090017#include <asm/txx9/tx4938.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000018
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +090019void __init tx4938_irq_init(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +000020{
Atsushi Nemotoc87abd72007-08-02 23:36:02 +090021 mips_cpu_irq_init();
Atsushi Nemoto94a4c322008-07-19 01:51:47 +090022 txx9_irq_init(TX4938_IRC_REG & 0xfffffffffULL);
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +090023 set_irq_chained_handler(MIPS_CPU_IRQ_BASE + TX4938_IRC_INT,
24 handle_simple_irq);
Ralf Baechlee4ac58a2006-04-03 17:56:36 +010025}