162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci *
362306a36Sopenharmony_ci * Copyright (C) 2008 Renesas Solutions Corp.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Hitachi UL SolutionEngine 7721 Support.
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef __ASM_SH_SE7721_H
962306a36Sopenharmony_ci#define __ASM_SH_SE7721_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <linux/sh_intc.h>
1262306a36Sopenharmony_ci#include <asm/addrspace.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/* Box specific addresses. */
1562306a36Sopenharmony_ci#define SE_AREA0_WIDTH	2		/* Area0: 32bit */
1662306a36Sopenharmony_ci#define PA_ROM		0xa0000000	/* EPROM */
1762306a36Sopenharmony_ci#define PA_ROM_SIZE	0x00200000	/* EPROM size 2M byte */
1862306a36Sopenharmony_ci#define PA_FROM		0xa1000000	/* Flash-ROM */
1962306a36Sopenharmony_ci#define PA_FROM_SIZE	0x01000000	/* Flash-ROM size 16M byte */
2062306a36Sopenharmony_ci#define PA_EXT1		0xa4000000
2162306a36Sopenharmony_ci#define PA_EXT1_SIZE	0x04000000
2262306a36Sopenharmony_ci#define PA_SDRAM	0xaC000000	/* SDRAM(Area3) 64MB */
2362306a36Sopenharmony_ci#define PA_SDRAM_SIZE	0x04000000
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#define PA_EXT4		0xb0000000
2662306a36Sopenharmony_ci#define PA_EXT4_SIZE	0x04000000
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define PA_PERIPHERAL	0xB8000000
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci#define PA_PCIC		PA_PERIPHERAL
3162306a36Sopenharmony_ci#define PA_MRSHPC	(PA_PERIPHERAL + 0x003fffe0)
3262306a36Sopenharmony_ci#define PA_MRSHPC_MW1	(PA_PERIPHERAL + 0x00400000)
3362306a36Sopenharmony_ci#define PA_MRSHPC_MW2	(PA_PERIPHERAL + 0x00500000)
3462306a36Sopenharmony_ci#define PA_MRSHPC_IO	(PA_PERIPHERAL + 0x00600000)
3562306a36Sopenharmony_ci#define MRSHPC_OPTION	(PA_MRSHPC + 6)
3662306a36Sopenharmony_ci#define MRSHPC_CSR	(PA_MRSHPC + 8)
3762306a36Sopenharmony_ci#define MRSHPC_ISR	(PA_MRSHPC + 10)
3862306a36Sopenharmony_ci#define MRSHPC_ICR	(PA_MRSHPC + 12)
3962306a36Sopenharmony_ci#define MRSHPC_CPWCR	(PA_MRSHPC + 14)
4062306a36Sopenharmony_ci#define MRSHPC_MW0CR1	(PA_MRSHPC + 16)
4162306a36Sopenharmony_ci#define MRSHPC_MW1CR1	(PA_MRSHPC + 18)
4262306a36Sopenharmony_ci#define MRSHPC_IOWCR1	(PA_MRSHPC + 20)
4362306a36Sopenharmony_ci#define MRSHPC_MW0CR2	(PA_MRSHPC + 22)
4462306a36Sopenharmony_ci#define MRSHPC_MW1CR2	(PA_MRSHPC + 24)
4562306a36Sopenharmony_ci#define MRSHPC_IOWCR2	(PA_MRSHPC + 26)
4662306a36Sopenharmony_ci#define MRSHPC_CDCR	(PA_MRSHPC + 28)
4762306a36Sopenharmony_ci#define MRSHPC_PCIC_INFO	(PA_MRSHPC + 30)
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci#define PA_LED		0xB6800000	/* 8bit LED */
5062306a36Sopenharmony_ci#define PA_FPGA		0xB7000000	/* FPGA base address */
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci#define MRSHPC_IRQ0	evt2irq(0x340)
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci#define FPGA_ILSR1	(PA_FPGA + 0x02)
5562306a36Sopenharmony_ci#define FPGA_ILSR2	(PA_FPGA + 0x03)
5662306a36Sopenharmony_ci#define FPGA_ILSR3	(PA_FPGA + 0x04)
5762306a36Sopenharmony_ci#define FPGA_ILSR4	(PA_FPGA + 0x05)
5862306a36Sopenharmony_ci#define FPGA_ILSR5	(PA_FPGA + 0x06)
5962306a36Sopenharmony_ci#define FPGA_ILSR6	(PA_FPGA + 0x07)
6062306a36Sopenharmony_ci#define FPGA_ILSR7	(PA_FPGA + 0x08)
6162306a36Sopenharmony_ci#define FPGA_ILSR8	(PA_FPGA + 0x09)
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_civoid init_se7721_IRQ(void);
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ci#define __IO_PREFIX		se7721
6662306a36Sopenharmony_ci#include <asm/io_generic.h>
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ci#endif  /* __ASM_SH_SE7721_H */
69