1 #ifndef __ASM_SH_SE7724_H
2 #define __ASM_SH_SE7724_H
5 * linux/include/asm-sh/se7724.h
7 * Copyright (C) 2009 Renesas Solutions Corp.
9 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
11 * Hitachi UL SolutionEngine 7724 Support.
14 * Copyright (C) 2007 Nobuhiro Iwamatsu
16 * This file is subject to the terms and conditions of the GNU General Public
17 * License. See the file "COPYING" in the main directory of this archive
21 #include <asm/addrspace.h>
23 #define PA_LED (0xba203000) /* 8bit LED */
24 #define IRQ_MODE (0xba200010)
25 #define IRQ0_SR (0xba200014)
26 #define IRQ1_SR (0xba200018)
27 #define IRQ2_SR (0xba20001c)
28 #define IRQ0_MR (0xba200020)
29 #define IRQ1_MR (0xba200024)
30 #define IRQ2_MR (0xba200028)
37 /* Bits in IRQ012 registers */
38 #define SE7724_FPGA_IRQ_BASE 220
41 #define IRQ0_BASE SE7724_FPGA_IRQ_BASE
42 #define IRQ0_KEY (IRQ0_BASE + 12)
43 #define IRQ0_RMII (IRQ0_BASE + 13)
44 #define IRQ0_SMC (IRQ0_BASE + 14)
45 #define IRQ0_MASK 0x7fff
46 #define IRQ0_END IRQ0_SMC
48 #define IRQ1_BASE (IRQ0_END + 1)
49 #define IRQ1_TS (IRQ1_BASE + 0)
50 #define IRQ1_MASK 0x0001
51 #define IRQ1_END IRQ1_TS
53 #define IRQ2_BASE (IRQ1_END + 1)
54 #define IRQ2_USB0 (IRQ1_BASE + 0)
55 #define IRQ2_USB1 (IRQ1_BASE + 1)
56 #define IRQ2_MASK 0x0003
57 #define IRQ2_END IRQ2_USB1
59 #define SE7724_FPGA_IRQ_NR (IRQ2_END - IRQ0_BASE)
61 /* arch/sh/boards/se/7724/irq.c */
62 void init_se7724_IRQ(void);
64 #define __IO_PREFIX se7724
65 #include <asm/io_generic.h>
67 #endif /* __ASM_SH_SE7724_H */