Path: blob/master/arch/sh/boards/mach-sh7763rdp/irq.c
15126 views
/*1* linux/arch/sh/boards/renesas/sh7763rdp/irq.c2*3* Renesas Solutions SH7763RDP Support.4*5* Copyright (C) 2008 Renesas Solutions Corp.6* Copyright (C) 2008 Nobuhiro Iwamatsu <[email protected]>7*8* This file is subject to the terms and conditions of the GNU General Public9* License. See the file "COPYING" in the main directory of this archive10* for more details.11*/1213#include <linux/init.h>14#include <linux/irq.h>15#include <asm/io.h>16#include <asm/irq.h>17#include <mach/sh7763rdp.h>1819#define INTC_BASE (0xFFD00000)20#define INTC_INT2PRI7 (INTC_BASE+0x4001C)21#define INTC_INT2MSKCR (INTC_BASE+0x4003C)22#define INTC_INT2MSKCR1 (INTC_BASE+0x400D4)2324/*25* Initialize IRQ setting26*/27void __init init_sh7763rdp_IRQ(void)28{29/* GPIO enabled */30__raw_writel(1 << 25, INTC_INT2MSKCR);3132/* enable GPIO interrupts */33__raw_writel((__raw_readl(INTC_INT2PRI7) & 0xFF00FFFF) | 0x000F0000,34INTC_INT2PRI7);3536/* USBH enabled */37__raw_writel(1 << 17, INTC_INT2MSKCR1);3839/* GETHER enabled */40__raw_writel(1 << 16, INTC_INT2MSKCR1);4142/* DMAC enabled */43__raw_writel(1 << 8, INTC_INT2MSKCR);44}454647