18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_CPU_SH4_DMA_SH7780_H 38c2ecf20Sopenharmony_ci#define __ASM_SH_CPU_SH4_DMA_SH7780_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/sh_intc.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#if defined(CONFIG_CPU_SUBTYPE_SH7343) || \ 88c2ecf20Sopenharmony_ci defined(CONFIG_CPU_SUBTYPE_SH7730) 98c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x800) 108c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0xb80) 118c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ 128c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFE008020 138c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_SUBTYPE_SH7722) 148c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x800) 158c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0xb80) 168c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ 178c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFE008020 188c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_SUBTYPE_SH7763) 198c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x640) 208c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0x780) 218c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0x6c0) 228c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFF608020 238c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_SUBTYPE_SH7723) 248c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x800) /* DMAC0A*/ 258c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0xb80) /* DMAC0B */ 268c2ecf20Sopenharmony_ci#define DMTE6_IRQ evt2irq(0x700) 278c2ecf20Sopenharmony_ci#define DMTE8_IRQ evt2irq(0x740) /* DMAC1A */ 288c2ecf20Sopenharmony_ci#define DMTE9_IRQ evt2irq(0x760) 298c2ecf20Sopenharmony_ci#define DMTE10_IRQ evt2irq(0xb00) /* DMAC1B */ 308c2ecf20Sopenharmony_ci#define DMTE11_IRQ evt2irq(0xb20) 318c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ 328c2ecf20Sopenharmony_ci#define DMAE1_IRQ evt2irq(0xb40) /* DMA Error IRQ*/ 338c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFE008020 348c2ecf20Sopenharmony_ci#define SH_DMAC_BASE1 0xFDC08020 358c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_SUBTYPE_SH7724) 368c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x800) /* DMAC0A*/ 378c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0xb80) /* DMAC0B */ 388c2ecf20Sopenharmony_ci#define DMTE6_IRQ evt2irq(0x700) 398c2ecf20Sopenharmony_ci#define DMTE8_IRQ evt2irq(0x740) /* DMAC1A */ 408c2ecf20Sopenharmony_ci#define DMTE9_IRQ evt2irq(0x760) 418c2ecf20Sopenharmony_ci#define DMTE10_IRQ evt2irq(0xb00) /* DMAC1B */ 428c2ecf20Sopenharmony_ci#define DMTE11_IRQ evt2irq(0xb20) 438c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ 448c2ecf20Sopenharmony_ci#define DMAE1_IRQ evt2irq(0xb40) /* DMA Error IRQ*/ 458c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFE008020 468c2ecf20Sopenharmony_ci#define SH_DMAC_BASE1 0xFDC08020 478c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_SUBTYPE_SH7780) 488c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x640) 498c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0x780) 508c2ecf20Sopenharmony_ci#define DMTE6_IRQ evt2irq(0x7c0) 518c2ecf20Sopenharmony_ci#define DMTE8_IRQ evt2irq(0xd80) 528c2ecf20Sopenharmony_ci#define DMTE9_IRQ evt2irq(0xda0) 538c2ecf20Sopenharmony_ci#define DMTE10_IRQ evt2irq(0xdc0) 548c2ecf20Sopenharmony_ci#define DMTE11_IRQ evt2irq(0xde0) 558c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0x6c0) /* DMA Error IRQ */ 568c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFC808020 578c2ecf20Sopenharmony_ci#define SH_DMAC_BASE1 0xFC818020 588c2ecf20Sopenharmony_ci#else /* SH7785 */ 598c2ecf20Sopenharmony_ci#define DMTE0_IRQ evt2irq(0x620) 608c2ecf20Sopenharmony_ci#define DMTE4_IRQ evt2irq(0x6a0) 618c2ecf20Sopenharmony_ci#define DMTE6_IRQ evt2irq(0x880) 628c2ecf20Sopenharmony_ci#define DMTE8_IRQ evt2irq(0x8c0) 638c2ecf20Sopenharmony_ci#define DMTE9_IRQ evt2irq(0x8e0) 648c2ecf20Sopenharmony_ci#define DMTE10_IRQ evt2irq(0x900) 658c2ecf20Sopenharmony_ci#define DMTE11_IRQ evt2irq(0x920) 668c2ecf20Sopenharmony_ci#define DMAE0_IRQ evt2irq(0x6e0) /* DMA Error IRQ0 */ 678c2ecf20Sopenharmony_ci#define DMAE1_IRQ evt2irq(0x940) /* DMA Error IRQ1 */ 688c2ecf20Sopenharmony_ci#define SH_DMAC_BASE0 0xFC808020 698c2ecf20Sopenharmony_ci#define SH_DMAC_BASE1 0xFCC08020 708c2ecf20Sopenharmony_ci#endif 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci#endif /* __ASM_SH_CPU_SH4_DMA_SH7780_H */ 73