xref: /linux/arch/sh/include/mach-se/mach/se.h (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2939a24a6SPaul Mundt #ifndef __ASM_SH_HITACHI_SE_H
3939a24a6SPaul Mundt #define __ASM_SH_HITACHI_SE_H
4939a24a6SPaul Mundt 
5939a24a6SPaul Mundt /*
6939a24a6SPaul Mundt  * linux/include/asm-sh/hitachi_se.h
7939a24a6SPaul Mundt  *
8939a24a6SPaul Mundt  * Copyright (C) 2000  Kazumoto Kojima
9939a24a6SPaul Mundt  *
10939a24a6SPaul Mundt  * Hitachi SolutionEngine support
11939a24a6SPaul Mundt  */
12b894701eSPaul Mundt #include <linux/sh_intc.h>
13939a24a6SPaul Mundt 
14939a24a6SPaul Mundt /* Box specific addresses.  */
15939a24a6SPaul Mundt 
16939a24a6SPaul Mundt #define PA_ROM		0x00000000	/* EPROM */
17939a24a6SPaul Mundt #define PA_ROM_SIZE	0x00400000	/* EPROM size 4M byte */
18939a24a6SPaul Mundt #define PA_FROM		0x01000000	/* EPROM */
19939a24a6SPaul Mundt #define PA_FROM_SIZE	0x00400000	/* EPROM size 4M byte */
20939a24a6SPaul Mundt #define PA_EXT1		0x04000000
21939a24a6SPaul Mundt #define PA_EXT1_SIZE	0x04000000
22939a24a6SPaul Mundt #define PA_EXT2		0x08000000
23939a24a6SPaul Mundt #define PA_EXT2_SIZE	0x04000000
24939a24a6SPaul Mundt #define PA_SDRAM	0x0c000000
25939a24a6SPaul Mundt #define PA_SDRAM_SIZE	0x04000000
26939a24a6SPaul Mundt 
27939a24a6SPaul Mundt #define PA_EXT4		0x12000000
28939a24a6SPaul Mundt #define PA_EXT4_SIZE	0x02000000
29939a24a6SPaul Mundt #define PA_EXT5		0x14000000
30939a24a6SPaul Mundt #define PA_EXT5_SIZE	0x04000000
31939a24a6SPaul Mundt #define PA_PCIC		0x18000000	/* MR-SHPC-01 PCMCIA */
32939a24a6SPaul Mundt 
33939a24a6SPaul Mundt #define PA_83902	0xb0000000	/* DP83902A */
34939a24a6SPaul Mundt #define PA_83902_IF	0xb0040000	/* DP83902A remote io port */
35939a24a6SPaul Mundt #define PA_83902_RST	0xb0080000	/* DP83902A reset port */
36939a24a6SPaul Mundt 
37939a24a6SPaul Mundt #define PA_SUPERIO	0xb0400000	/* SMC37C935A super io chip */
38939a24a6SPaul Mundt #define PA_DIPSW0	0xb0800000	/* Dip switch 5,6 */
39939a24a6SPaul Mundt #define PA_DIPSW1	0xb0800002	/* Dip switch 7,8 */
40939a24a6SPaul Mundt #define PA_LED		0xb0c00000	/* LED */
41939a24a6SPaul Mundt #if defined(CONFIG_CPU_SUBTYPE_SH7705)
42939a24a6SPaul Mundt #define PA_BCR		0xb0e00000
43939a24a6SPaul Mundt #else
44939a24a6SPaul Mundt #define PA_BCR		0xb1400000	/* FPGA */
45939a24a6SPaul Mundt #endif
46939a24a6SPaul Mundt 
47939a24a6SPaul Mundt #define PA_MRSHPC	0xb83fffe0	/* MR-SHPC-01 PCMCIA controller */
48939a24a6SPaul Mundt #define PA_MRSHPC_MW1	0xb8400000	/* MR-SHPC-01 memory window base */
49939a24a6SPaul Mundt #define PA_MRSHPC_MW2	0xb8500000	/* MR-SHPC-01 attribute window base */
50939a24a6SPaul Mundt #define PA_MRSHPC_IO	0xb8600000	/* MR-SHPC-01 I/O window base */
51939a24a6SPaul Mundt #define MRSHPC_OPTION   (PA_MRSHPC + 6)
52939a24a6SPaul Mundt #define MRSHPC_CSR      (PA_MRSHPC + 8)
53939a24a6SPaul Mundt #define MRSHPC_ISR      (PA_MRSHPC + 10)
54939a24a6SPaul Mundt #define MRSHPC_ICR      (PA_MRSHPC + 12)
55939a24a6SPaul Mundt #define MRSHPC_CPWCR    (PA_MRSHPC + 14)
56939a24a6SPaul Mundt #define MRSHPC_MW0CR1   (PA_MRSHPC + 16)
57939a24a6SPaul Mundt #define MRSHPC_MW1CR1   (PA_MRSHPC + 18)
58939a24a6SPaul Mundt #define MRSHPC_IOWCR1   (PA_MRSHPC + 20)
59939a24a6SPaul Mundt #define MRSHPC_MW0CR2   (PA_MRSHPC + 22)
60939a24a6SPaul Mundt #define MRSHPC_MW1CR2   (PA_MRSHPC + 24)
61939a24a6SPaul Mundt #define MRSHPC_IOWCR2   (PA_MRSHPC + 26)
62939a24a6SPaul Mundt #define MRSHPC_CDCR     (PA_MRSHPC + 28)
63939a24a6SPaul Mundt #define MRSHPC_PCIC_INFO (PA_MRSHPC + 30)
64939a24a6SPaul Mundt 
65939a24a6SPaul Mundt #define BCR_ILCRA	(PA_BCR + 0)
66939a24a6SPaul Mundt #define BCR_ILCRB	(PA_BCR + 2)
67939a24a6SPaul Mundt #define BCR_ILCRC	(PA_BCR + 4)
68939a24a6SPaul Mundt #define BCR_ILCRD	(PA_BCR + 6)
69939a24a6SPaul Mundt #define BCR_ILCRE	(PA_BCR + 8)
70939a24a6SPaul Mundt #define BCR_ILCRF	(PA_BCR + 10)
71939a24a6SPaul Mundt #define BCR_ILCRG	(PA_BCR + 12)
72939a24a6SPaul Mundt 
738085ac75SSteve Glendinning #if defined(CONFIG_CPU_SUBTYPE_SH7709)
748085ac75SSteve Glendinning #define INTC_IRR0       0xa4000004UL
758085ac75SSteve Glendinning #define INTC_IRR1       0xa4000006UL
768085ac75SSteve Glendinning #define INTC_IRR2       0xa4000008UL
778085ac75SSteve Glendinning 
788085ac75SSteve Glendinning #define INTC_ICR0       0xfffffee0UL
798085ac75SSteve Glendinning #define INTC_ICR1       0xa4000010UL
808085ac75SSteve Glendinning #define INTC_ICR2       0xa4000012UL
818085ac75SSteve Glendinning #define INTC_INTER      0xa4000014UL
828085ac75SSteve Glendinning 
838085ac75SSteve Glendinning #define INTC_IPRC       0xa4000016UL
848085ac75SSteve Glendinning #define INTC_IPRD       0xa4000018UL
858085ac75SSteve Glendinning #define INTC_IPRE       0xa400001aUL
868085ac75SSteve Glendinning 
87b894701eSPaul Mundt #define IRQ0_IRQ        evt2irq(0x600)
88b894701eSPaul Mundt #define IRQ1_IRQ        evt2irq(0x620)
898085ac75SSteve Glendinning #endif
908085ac75SSteve Glendinning 
91939a24a6SPaul Mundt #if defined(CONFIG_CPU_SUBTYPE_SH7705)
92b894701eSPaul Mundt #define IRQ_STNIC	evt2irq(0x380)
93b894701eSPaul Mundt #define IRQ_CFCARD	evt2irq(0x3c0)
94939a24a6SPaul Mundt #else
95b894701eSPaul Mundt #define IRQ_STNIC	evt2irq(0x340)
96b894701eSPaul Mundt #define IRQ_CFCARD	evt2irq(0x2e0)
97939a24a6SPaul Mundt #endif
98939a24a6SPaul Mundt 
99939a24a6SPaul Mundt /* SH Ether support (SH7710/SH7712) */
100939a24a6SPaul Mundt /* Base address */
101939a24a6SPaul Mundt #define SH_ETH0_BASE 0xA7000000
102939a24a6SPaul Mundt #define SH_ETH1_BASE 0xA7000400
103*f9a531d6SSergei Shtylyov #define SH_TSU_BASE  0xA7000800
104939a24a6SPaul Mundt /* PHY ID */
105939a24a6SPaul Mundt #if defined(CONFIG_CPU_SUBTYPE_SH7710)
106939a24a6SPaul Mundt # define PHY_ID 0x00
107939a24a6SPaul Mundt #elif defined(CONFIG_CPU_SUBTYPE_SH7712)
108939a24a6SPaul Mundt # define PHY_ID 0x01
109939a24a6SPaul Mundt #endif
110939a24a6SPaul Mundt /* Ether IRQ */
111b894701eSPaul Mundt #define SH_ETH0_IRQ	evt2irq(0xc00)
112b894701eSPaul Mundt #define SH_ETH1_IRQ	evt2irq(0xc20)
113b894701eSPaul Mundt #define SH_TSU_IRQ	evt2irq(0xc40)
114939a24a6SPaul Mundt 
115939a24a6SPaul Mundt void init_se_IRQ(void);
116939a24a6SPaul Mundt 
117939a24a6SPaul Mundt #define __IO_PREFIX	se
118939a24a6SPaul Mundt #include <asm/io_generic.h>
119939a24a6SPaul Mundt 
120939a24a6SPaul Mundt #endif  /* __ASM_SH_HITACHI_SE_H */
121