18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * arch/arm/plat-omap/include/mach/tc.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * OMAP Traffic Controller 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (C) 2004 Nokia Corporation 88c2ecf20Sopenharmony_ci * Author: Imre Deak <imre.deak@nokia.com> 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_TC_H 128c2ecf20Sopenharmony_ci#define __ASM_ARCH_TC_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#define TCMIF_BASE 0xfffecc00 158c2ecf20Sopenharmony_ci#define OMAP_TC_OCPT1_PRIOR (TCMIF_BASE + 0x00) 168c2ecf20Sopenharmony_ci#define OMAP_TC_EMIFS_PRIOR (TCMIF_BASE + 0x04) 178c2ecf20Sopenharmony_ci#define OMAP_TC_EMIFF_PRIOR (TCMIF_BASE + 0x08) 188c2ecf20Sopenharmony_ci#define EMIFS_CONFIG (TCMIF_BASE + 0x0c) 198c2ecf20Sopenharmony_ci#define EMIFS_CS0_CONFIG (TCMIF_BASE + 0x10) 208c2ecf20Sopenharmony_ci#define EMIFS_CS1_CONFIG (TCMIF_BASE + 0x14) 218c2ecf20Sopenharmony_ci#define EMIFS_CS2_CONFIG (TCMIF_BASE + 0x18) 228c2ecf20Sopenharmony_ci#define EMIFS_CS3_CONFIG (TCMIF_BASE + 0x1c) 238c2ecf20Sopenharmony_ci#define EMIFF_SDRAM_CONFIG (TCMIF_BASE + 0x20) 248c2ecf20Sopenharmony_ci#define EMIFF_MRS (TCMIF_BASE + 0x24) 258c2ecf20Sopenharmony_ci#define TC_TIMEOUT1 (TCMIF_BASE + 0x28) 268c2ecf20Sopenharmony_ci#define TC_TIMEOUT2 (TCMIF_BASE + 0x2c) 278c2ecf20Sopenharmony_ci#define TC_TIMEOUT3 (TCMIF_BASE + 0x30) 288c2ecf20Sopenharmony_ci#define TC_ENDIANISM (TCMIF_BASE + 0x34) 298c2ecf20Sopenharmony_ci#define EMIFF_SDRAM_CONFIG_2 (TCMIF_BASE + 0x3c) 308c2ecf20Sopenharmony_ci#define EMIF_CFG_DYNAMIC_WS (TCMIF_BASE + 0x40) 318c2ecf20Sopenharmony_ci#define EMIFS_ACS0 (TCMIF_BASE + 0x50) 328c2ecf20Sopenharmony_ci#define EMIFS_ACS1 (TCMIF_BASE + 0x54) 338c2ecf20Sopenharmony_ci#define EMIFS_ACS2 (TCMIF_BASE + 0x58) 348c2ecf20Sopenharmony_ci#define EMIFS_ACS3 (TCMIF_BASE + 0x5c) 358c2ecf20Sopenharmony_ci#define OMAP_TC_OCPT2_PRIOR (TCMIF_BASE + 0xd0) 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/* external EMIFS chipselect regions */ 388c2ecf20Sopenharmony_ci#define OMAP_CS0_PHYS 0x00000000 398c2ecf20Sopenharmony_ci#define OMAP_CS0_SIZE SZ_64M 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#define OMAP_CS1_PHYS 0x04000000 428c2ecf20Sopenharmony_ci#define OMAP_CS1_SIZE SZ_64M 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define OMAP_CS1A_PHYS OMAP_CS1_PHYS 458c2ecf20Sopenharmony_ci#define OMAP_CS1A_SIZE SZ_32M 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#define OMAP_CS1B_PHYS (OMAP_CS1A_PHYS + OMAP_CS1A_SIZE) 488c2ecf20Sopenharmony_ci#define OMAP_CS1B_SIZE SZ_32M 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#define OMAP_CS2_PHYS 0x08000000 518c2ecf20Sopenharmony_ci#define OMAP_CS2_SIZE SZ_64M 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define OMAP_CS2A_PHYS OMAP_CS2_PHYS 548c2ecf20Sopenharmony_ci#define OMAP_CS2A_SIZE SZ_32M 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci#define OMAP_CS2B_PHYS (OMAP_CS2A_PHYS + OMAP_CS2A_SIZE) 578c2ecf20Sopenharmony_ci#define OMAP_CS2B_SIZE SZ_32M 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci#define OMAP_CS3_PHYS 0x0c000000 608c2ecf20Sopenharmony_ci#define OMAP_CS3_SIZE SZ_64M 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#ifndef __ASSEMBLER__ 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci/* EMIF Slow Interface Configuration Register */ 658c2ecf20Sopenharmony_ci#define OMAP_EMIFS_CONFIG_FR (1 << 4) 668c2ecf20Sopenharmony_ci#define OMAP_EMIFS_CONFIG_PDE (1 << 3) 678c2ecf20Sopenharmony_ci#define OMAP_EMIFS_CONFIG_PWD_EN (1 << 2) 688c2ecf20Sopenharmony_ci#define OMAP_EMIFS_CONFIG_BM (1 << 1) 698c2ecf20Sopenharmony_ci#define OMAP_EMIFS_CONFIG_WP (1 << 0) 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci#define EMIFS_CCS(n) (EMIFS_CS0_CONFIG + (4 * (n))) 728c2ecf20Sopenharmony_ci#define EMIFS_ACS(n) (EMIFS_ACS0 + (4 * (n))) 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci#endif /* __ASSEMBLER__ */ 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#endif /* __ASM_ARCH_TC_H */ 77