xref: /OK3568_Linux_fs/kernel/arch/riscv/include/asm/sparsemem.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun #ifndef _ASM_RISCV_SPARSEMEM_H
4*4882a593Smuzhiyun #define _ASM_RISCV_SPARSEMEM_H
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifdef CONFIG_SPARSEMEM
7*4882a593Smuzhiyun #define MAX_PHYSMEM_BITS	CONFIG_PA_BITS
8*4882a593Smuzhiyun #define SECTION_SIZE_BITS	27
9*4882a593Smuzhiyun #endif /* CONFIG_SPARSEMEM */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #endif /* _ASM_RISCV_SPARSEMEM_H */
12