drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / arch / csky / include / asm / memory.h
blobd12179801ae3cff612749a3624c2bc2ed3b95404
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_MEMORY_H
4 #define __ASM_CSKY_MEMORY_H
6 #include <linux/compiler.h>
7 #include <linux/const.h>
8 #include <linux/types.h>
9 #include <linux/sizes.h>
11 #define FIXADDR_TOP _AC(0xffffc000, UL)
12 #define PKMAP_BASE _AC(0xff800000, UL)
13 #define VMALLOC_START (PAGE_OFFSET + LOWMEM_LIMIT + (PAGE_SIZE * 8))
14 #define VMALLOC_END (PKMAP_BASE - (PAGE_SIZE * 2))
16 #ifdef CONFIG_HAVE_TCM
17 #ifdef CONFIG_HAVE_DTCM
18 #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES)
19 #else
20 #define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES)
21 #endif
22 #define FIXADDR_TCM _AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL)
23 #endif
25 #endif