1f525bb2cSGuo Ren /* SPDX-License-Identifier: GPL-2.0 */ 2f525bb2cSGuo Ren 3f525bb2cSGuo Ren #ifndef __ASM_CSKY_MEMORY_H 4f525bb2cSGuo Ren #define __ASM_CSKY_MEMORY_H 5f525bb2cSGuo Ren 6f525bb2cSGuo Ren #include <linux/compiler.h> 7f525bb2cSGuo Ren #include <linux/const.h> 8f525bb2cSGuo Ren #include <linux/types.h> 9f525bb2cSGuo Ren #include <linux/sizes.h> 10f525bb2cSGuo Ren 11f525bb2cSGuo Ren #define FIXADDR_TOP _AC(0xffffc000, UL) 12f136008fSGuo Ren #define PKMAP_BASE _AC(0xff800000, UL) 13*0c8a32eeSGuo Ren #define VMALLOC_START (PAGE_OFFSET + LOWMEM_LIMIT + (PAGE_SIZE * 8)) 14f136008fSGuo Ren #define VMALLOC_END (PKMAP_BASE - (PAGE_SIZE * 2)) 15f525bb2cSGuo Ren 16f525bb2cSGuo Ren #ifdef CONFIG_HAVE_TCM 17f525bb2cSGuo Ren #ifdef CONFIG_HAVE_DTCM 18f525bb2cSGuo Ren #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES) 19f525bb2cSGuo Ren #else 20f525bb2cSGuo Ren #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES) 21f525bb2cSGuo Ren #endif 22f525bb2cSGuo Ren #define FIXADDR_TCM _AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL) 23f525bb2cSGuo Ren #endif 24f525bb2cSGuo Ren 25f525bb2cSGuo Ren #endif 26