18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_SE7724_H 38c2ecf20Sopenharmony_ci#define __ASM_SH_SE7724_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * linux/include/asm-sh/se7724.h 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 2009 Renesas Solutions Corp. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Kuninori Morimoto <morimoto.kuninori@renesas.com> 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * Hitachi UL SolutionEngine 7724 Support. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * Based on se7722.h 158c2ecf20Sopenharmony_ci * Copyright (C) 2007 Nobuhiro Iwamatsu 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci#include <linux/sh_intc.h> 188c2ecf20Sopenharmony_ci#include <asm/addrspace.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci/* SH Eth */ 218c2ecf20Sopenharmony_ci#define SH_ETH_ADDR (0xA4600000) 228c2ecf20Sopenharmony_ci#define SH_ETH_MAHR (SH_ETH_ADDR + 0x1C0) 238c2ecf20Sopenharmony_ci#define SH_ETH_MALR (SH_ETH_ADDR + 0x1C8) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define PA_LED (0xba203000) /* 8bit LED */ 268c2ecf20Sopenharmony_ci#define IRQ_MODE (0xba200010) 278c2ecf20Sopenharmony_ci#define IRQ0_SR (0xba200014) 288c2ecf20Sopenharmony_ci#define IRQ1_SR (0xba200018) 298c2ecf20Sopenharmony_ci#define IRQ2_SR (0xba20001c) 308c2ecf20Sopenharmony_ci#define IRQ0_MR (0xba200020) 318c2ecf20Sopenharmony_ci#define IRQ1_MR (0xba200024) 328c2ecf20Sopenharmony_ci#define IRQ2_MR (0xba200028) 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/* IRQ */ 358c2ecf20Sopenharmony_ci#define IRQ0_IRQ evt2irq(0x600) 368c2ecf20Sopenharmony_ci#define IRQ1_IRQ evt2irq(0x620) 378c2ecf20Sopenharmony_ci#define IRQ2_IRQ evt2irq(0x640) 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci/* Bits in IRQ012 registers */ 408c2ecf20Sopenharmony_ci#define SE7724_FPGA_IRQ_BASE 220 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci/* IRQ0 */ 438c2ecf20Sopenharmony_ci#define IRQ0_BASE SE7724_FPGA_IRQ_BASE 448c2ecf20Sopenharmony_ci#define IRQ0_KEY (IRQ0_BASE + 12) 458c2ecf20Sopenharmony_ci#define IRQ0_RMII (IRQ0_BASE + 13) 468c2ecf20Sopenharmony_ci#define IRQ0_SMC (IRQ0_BASE + 14) 478c2ecf20Sopenharmony_ci#define IRQ0_MASK 0x7fff 488c2ecf20Sopenharmony_ci#define IRQ0_END IRQ0_SMC 498c2ecf20Sopenharmony_ci/* IRQ1 */ 508c2ecf20Sopenharmony_ci#define IRQ1_BASE (IRQ0_END + 1) 518c2ecf20Sopenharmony_ci#define IRQ1_TS (IRQ1_BASE + 0) 528c2ecf20Sopenharmony_ci#define IRQ1_MASK 0x0001 538c2ecf20Sopenharmony_ci#define IRQ1_END IRQ1_TS 548c2ecf20Sopenharmony_ci/* IRQ2 */ 558c2ecf20Sopenharmony_ci#define IRQ2_BASE (IRQ1_END + 1) 568c2ecf20Sopenharmony_ci#define IRQ2_USB0 (IRQ1_BASE + 0) 578c2ecf20Sopenharmony_ci#define IRQ2_USB1 (IRQ1_BASE + 1) 588c2ecf20Sopenharmony_ci#define IRQ2_MASK 0x0003 598c2ecf20Sopenharmony_ci#define IRQ2_END IRQ2_USB1 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci#define SE7724_FPGA_IRQ_NR (IRQ2_END - IRQ0_BASE) 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci/* arch/sh/boards/se/7724/irq.c */ 648c2ecf20Sopenharmony_civoid init_se7724_IRQ(void); 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci#define __IO_PREFIX se7724 678c2ecf20Sopenharmony_ci#include <asm/io_generic.h> 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci#endif /* __ASM_SH_SE7724_H */ 70