xref: /openbmc/linux/arch/sh/include/mach-common/mach/r2d.h (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
27639a454SPaul Mundt #ifndef __ASM_SH_RENESAS_RTS7751R2D_H
37639a454SPaul Mundt #define __ASM_SH_RENESAS_RTS7751R2D_H
47639a454SPaul Mundt 
57639a454SPaul Mundt /*
67639a454SPaul Mundt  * linux/include/asm-sh/renesas_rts7751r2d.h
77639a454SPaul Mundt  *
87639a454SPaul Mundt  * Copyright (C) 2000  Atom Create Engineering Co., Ltd.
97639a454SPaul Mundt  *
107639a454SPaul Mundt  * Renesas Technology Sales RTS7751R2D support
117639a454SPaul Mundt  */
127639a454SPaul Mundt 
137639a454SPaul Mundt /* Board specific addresses.  */
147639a454SPaul Mundt 
157639a454SPaul Mundt #define PA_BCR		0xa4000000	/* FPGA */
167639a454SPaul Mundt #define PA_IRLMON	0xa4000002	/* Interrupt Status control */
177639a454SPaul Mundt #define PA_CFCTL	0xa4000004	/* CF Timing control */
187639a454SPaul Mundt #define PA_CFPOW	0xa4000006	/* CF Power control */
197639a454SPaul Mundt #define PA_DISPCTL	0xa4000008	/* Display Timing control */
207639a454SPaul Mundt #define PA_SDMPOW	0xa400000a	/* SD Power control */
217639a454SPaul Mundt #define PA_RTCCE	0xa400000c	/* RTC(9701) Enable control */
2225985edcSLucas De Marchi #define PA_PCICD	0xa400000e	/* PCI Extension detect control */
237639a454SPaul Mundt #define PA_VOYAGERRTS	0xa4000020	/* VOYAGER Reset control */
247639a454SPaul Mundt 
257639a454SPaul Mundt #define PA_R2D1_AXRST		0xa4000022	/* AX_LAN Reset control */
267639a454SPaul Mundt #define PA_R2D1_CFRST		0xa4000024	/* CF Reset control */
277639a454SPaul Mundt #define PA_R2D1_ADMRTS		0xa4000026	/* SD Reset control */
2825985edcSLucas De Marchi #define PA_R2D1_EXTRST		0xa4000028	/* Extension Reset control */
297639a454SPaul Mundt #define PA_R2D1_CFCDINTCLR	0xa400002a	/* CF Insert Interrupt clear */
307639a454SPaul Mundt 
317639a454SPaul Mundt #define PA_R2DPLUS_CFRST	0xa4000022	/* CF Reset control */
327639a454SPaul Mundt #define PA_R2DPLUS_ADMRTS	0xa4000024	/* SD Reset control */
3325985edcSLucas De Marchi #define PA_R2DPLUS_EXTRST	0xa4000026	/* Extension Reset control */
347639a454SPaul Mundt #define PA_R2DPLUS_CFCDINTCLR	0xa4000028	/* CF Insert Interrupt clear */
357639a454SPaul Mundt #define PA_R2DPLUS_KEYCTLCLR	0xa400002a	/* Key Interrupt clear */
367639a454SPaul Mundt 
377639a454SPaul Mundt #define PA_POWOFF	0xa4000030	/* Board Power OFF control */
387639a454SPaul Mundt #define PA_VERREG	0xa4000032	/* FPGA Version Register */
397639a454SPaul Mundt #define PA_INPORT	0xa4000034	/* KEY Input Port control */
407639a454SPaul Mundt #define PA_OUTPORT	0xa4000036	/* LED control */
417639a454SPaul Mundt #define PA_BVERREG	0xa4000038	/* Board Revision Register */
427639a454SPaul Mundt 
437639a454SPaul Mundt #define PA_AX88796L	0xaa000400	/* AX88796L Area */
447639a454SPaul Mundt #define PA_VOYAGER	0xab000000	/* VOYAGER GX Area */
457639a454SPaul Mundt #define PA_IDE_OFFSET	0x1f0		/* CF IDE Offset */
467639a454SPaul Mundt #define AX88796L_IO_BASE	0x1000	/* AX88796L IO Base Address */
477639a454SPaul Mundt 
487639a454SPaul Mundt #define IRLCNTR1	(PA_BCR + 0)	/* Interrupt Control Register1 */
497639a454SPaul Mundt 
50*a8ac2961SSergey Shtylyov #define R2D_FPGA_IRQ_BASE	(100 + 16)
517639a454SPaul Mundt 
527639a454SPaul Mundt #define IRQ_VOYAGER		(R2D_FPGA_IRQ_BASE + 0)
537639a454SPaul Mundt #define IRQ_EXT			(R2D_FPGA_IRQ_BASE + 1)
547639a454SPaul Mundt #define IRQ_TP			(R2D_FPGA_IRQ_BASE + 2)
557639a454SPaul Mundt #define IRQ_RTC_T		(R2D_FPGA_IRQ_BASE + 3)
567639a454SPaul Mundt #define IRQ_RTC_A		(R2D_FPGA_IRQ_BASE + 4)
577639a454SPaul Mundt #define IRQ_SDCARD		(R2D_FPGA_IRQ_BASE + 5)
587639a454SPaul Mundt #define IRQ_CF_CD		(R2D_FPGA_IRQ_BASE + 6)
597639a454SPaul Mundt #define IRQ_CF_IDE		(R2D_FPGA_IRQ_BASE + 7)
607639a454SPaul Mundt #define IRQ_AX88796		(R2D_FPGA_IRQ_BASE + 8)
617639a454SPaul Mundt #define IRQ_KEY			(R2D_FPGA_IRQ_BASE + 9)
627639a454SPaul Mundt #define IRQ_PCI_INTA		(R2D_FPGA_IRQ_BASE + 10)
637639a454SPaul Mundt #define IRQ_PCI_INTB		(R2D_FPGA_IRQ_BASE + 11)
647639a454SPaul Mundt #define IRQ_PCI_INTC		(R2D_FPGA_IRQ_BASE + 12)
657639a454SPaul Mundt #define IRQ_PCI_INTD		(R2D_FPGA_IRQ_BASE + 13)
667639a454SPaul Mundt 
677639a454SPaul Mundt /* arch/sh/boards/renesas/rts7751r2d/irq.c */
687639a454SPaul Mundt void init_rts7751r2d_IRQ(void);
697639a454SPaul Mundt int rts7751r2d_irq_demux(int);
707639a454SPaul Mundt 
717639a454SPaul Mundt #endif  /* __ASM_SH_RENESAS_RTS7751R2D */
72