1 #ifndef __ASM_SH_SE7724_H 2 #define __ASM_SH_SE7724_H 3 4 /* 5 * linux/include/asm-sh/se7724.h 6 * 7 * Copyright (C) 2009 Renesas Solutions Corp. 8 * 9 * Kuninori Morimoto <morimoto.kuninori@renesas.com> 10 * 11 * Hitachi UL SolutionEngine 7724 Support. 12 * 13 * Based on se7722.h 14 * Copyright (C) 2007 Nobuhiro Iwamatsu 15 * 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 18 * for more details. 19 * 20 */ 21 #include <asm/addrspace.h> 22 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) 31 32 /* IRQ */ 33 #define IRQ0_IRQ 32 34 #define IRQ1_IRQ 33 35 #define IRQ2_IRQ 34 36 37 /* Bits in IRQ012 registers */ 38 #define SE7724_FPGA_IRQ_BASE 220 39 40 /* IRQ0 */ 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 47 /* IRQ1 */ 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 52 /* IRQ2 */ 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 58 59 #define SE7724_FPGA_IRQ_NR (IRQ2_END - IRQ0_BASE) 60 61 /* arch/sh/boards/se/7724/irq.c */ 62 void init_se7724_IRQ(void); 63 64 #define __IO_PREFIX se7724 65 #include <asm/io_generic.h> 66 67 #endif /* __ASM_SH_SE7724_H */ 68