18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Common tx3927 irq handler 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 58c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 68c2ecf20Sopenharmony_ci * for more details. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright 2001 MontaVista Software Inc. 98c2ecf20Sopenharmony_ci * Copyright (C) 2000-2001 Toshiba Corporation 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci#include <linux/init.h> 128c2ecf20Sopenharmony_ci#include <asm/txx9irq.h> 138c2ecf20Sopenharmony_ci#include <asm/txx9/tx3927.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid __init tx3927_irq_init(void) 168c2ecf20Sopenharmony_ci{ 178c2ecf20Sopenharmony_ci int i; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci txx9_irq_init(TX3927_IRC_REG); 208c2ecf20Sopenharmony_ci /* raise priority for timers, sio */ 218c2ecf20Sopenharmony_ci for (i = 0; i < TX3927_NR_TMR; i++) 228c2ecf20Sopenharmony_ci txx9_irq_set_pri(TX3927_IR_TMR(i), 6); 238c2ecf20Sopenharmony_ci for (i = 0; i < TX3927_NR_SIO; i++) 248c2ecf20Sopenharmony_ci txx9_irq_set_pri(TX3927_IR_SIO(i), 7); 258c2ecf20Sopenharmony_ci} 26