|
@@ -0,0 +1,99 @@
|
|
|
+/*
|
|
|
+ * R8A7740 processor support
|
|
|
+ *
|
|
|
+ * Copyright (C) 2011 Renesas Solutions Corp.
|
|
|
+ * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
|
+ *
|
|
|
+ * This program is free software; you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
+ * the Free Software Foundation; version 2 of the License.
|
|
|
+ *
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU General Public License for more details.
|
|
|
+ *
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with this program; if not, write to the Free Software
|
|
|
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
+ */
|
|
|
+
|
|
|
+#include <linux/kernel.h>
|
|
|
+#include <linux/init.h>
|
|
|
+#include <linux/interrupt.h>
|
|
|
+#include <linux/irq.h>
|
|
|
+#include <linux/io.h>
|
|
|
+#include <linux/sh_intc.h>
|
|
|
+#include <mach/intc.h>
|
|
|
+#include <mach/irqs.h>
|
|
|
+#include <asm/mach-types.h>
|
|
|
+#include <asm/mach/arch.h>
|
|
|
+
|
|
|
+/*
|
|
|
+ * INTCA
|
|
|
+ */
|
|
|
+enum {
|
|
|
+ UNUSED_INTCA = 0,
|
|
|
+
|
|
|
+ /* interrupt sources INTCA */
|
|
|
+ DIRC,
|
|
|
+ ATAPI,
|
|
|
+ IIC1_ALI, IIC1_TACKI, IIC1_WAITI, IIC1_DTEI,
|
|
|
+ AP_ARM_COMMTX, AP_ARM_COMMRX,
|
|
|
+ MFI, MFIS,
|
|
|
+ BBIF1, BBIF2,
|
|
|
+ USBHSDMAC,
|
|
|
+ USBF_OUL_SOF, USBF_IXL_INT,
|
|
|
+ SGX540,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