18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * Copyright (C) 2008 Renesas Solutions Corp. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Hitachi UL SolutionEngine 7721 Support. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __ASM_SH_SE7721_H 98c2ecf20Sopenharmony_ci#define __ASM_SH_SE7721_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/sh_intc.h> 128c2ecf20Sopenharmony_ci#include <asm/addrspace.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* Box specific addresses. */ 158c2ecf20Sopenharmony_ci#define SE_AREA0_WIDTH 2 /* Area0: 32bit */ 168c2ecf20Sopenharmony_ci#define PA_ROM 0xa0000000 /* EPROM */ 178c2ecf20Sopenharmony_ci#define PA_ROM_SIZE 0x00200000 /* EPROM size 2M byte */ 188c2ecf20Sopenharmony_ci#define PA_FROM 0xa1000000 /* Flash-ROM */ 198c2ecf20Sopenharmony_ci#define PA_FROM_SIZE 0x01000000 /* Flash-ROM size 16M byte */ 208c2ecf20Sopenharmony_ci#define PA_EXT1 0xa4000000 218c2ecf20Sopenharmony_ci#define PA_EXT1_SIZE 0x04000000 228c2ecf20Sopenharmony_ci#define PA_SDRAM 0xaC000000 /* SDRAM(Area3) 64MB */ 238c2ecf20Sopenharmony_ci#define PA_SDRAM_SIZE 0x04000000 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define PA_EXT4 0xb0000000 268c2ecf20Sopenharmony_ci#define PA_EXT4_SIZE 0x04000000 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#define PA_PERIPHERAL 0xB8000000 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define PA_PCIC PA_PERIPHERAL 318c2ecf20Sopenharmony_ci#define PA_MRSHPC (PA_PERIPHERAL + 0x003fffe0) 328c2ecf20Sopenharmony_ci#define PA_MRSHPC_MW1 (PA_PERIPHERAL + 0x00400000) 338c2ecf20Sopenharmony_ci#define PA_MRSHPC_MW2 (PA_PERIPHERAL + 0x00500000) 348c2ecf20Sopenharmony_ci#define PA_MRSHPC_IO (PA_PERIPHERAL + 0x00600000) 358c2ecf20Sopenharmony_ci#define MRSHPC_OPTION (PA_MRSHPC + 6) 368c2ecf20Sopenharmony_ci#define MRSHPC_CSR (PA_MRSHPC + 8) 378c2ecf20Sopenharmony_ci#define MRSHPC_ISR (PA_MRSHPC + 10) 388c2ecf20Sopenharmony_ci#define MRSHPC_ICR (PA_MRSHPC + 12) 398c2ecf20Sopenharmony_ci#define MRSHPC_CPWCR (PA_MRSHPC + 14) 408c2ecf20Sopenharmony_ci#define MRSHPC_MW0CR1 (PA_MRSHPC + 16) 418c2ecf20Sopenharmony_ci#define MRSHPC_MW1CR1 (PA_MRSHPC + 18) 428c2ecf20Sopenharmony_ci#define MRSHPC_IOWCR1 (PA_MRSHPC + 20) 438c2ecf20Sopenharmony_ci#define MRSHPC_MW0CR2 (PA_MRSHPC + 22) 448c2ecf20Sopenharmony_ci#define MRSHPC_MW1CR2 (PA_MRSHPC + 24) 458c2ecf20Sopenharmony_ci#define MRSHPC_IOWCR2 (PA_MRSHPC + 26) 468c2ecf20Sopenharmony_ci#define MRSHPC_CDCR (PA_MRSHPC + 28) 478c2ecf20Sopenharmony_ci#define MRSHPC_PCIC_INFO (PA_MRSHPC + 30) 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#define PA_LED 0xB6800000 /* 8bit LED */ 508c2ecf20Sopenharmony_ci#define PA_FPGA 0xB7000000 /* FPGA base address */ 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define MRSHPC_IRQ0 evt2irq(0x340) 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#define FPGA_ILSR1 (PA_FPGA + 0x02) 558c2ecf20Sopenharmony_ci#define FPGA_ILSR2 (PA_FPGA + 0x03) 568c2ecf20Sopenharmony_ci#define FPGA_ILSR3 (PA_FPGA + 0x04) 578c2ecf20Sopenharmony_ci#define FPGA_ILSR4 (PA_FPGA + 0x05) 588c2ecf20Sopenharmony_ci#define FPGA_ILSR5 (PA_FPGA + 0x06) 598c2ecf20Sopenharmony_ci#define FPGA_ILSR6 (PA_FPGA + 0x07) 608c2ecf20Sopenharmony_ci#define FPGA_ILSR7 (PA_FPGA + 0x08) 618c2ecf20Sopenharmony_ci#define FPGA_ILSR8 (PA_FPGA + 0x09) 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_civoid init_se7721_IRQ(void); 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci#define __IO_PREFIX se7721 668c2ecf20Sopenharmony_ci#include <asm/io_generic.h> 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci#endif /* __ASM_SH_SE7721_H */ 69