xref: /openbmc/linux/arch/riscv/include/asm/sparsemem.h (revision 3270bfdb)
1d95f1a54SLogan Gunthorpe /* SPDX-License-Identifier: GPL-2.0 */
2d95f1a54SLogan Gunthorpe 
36b57ba8eSZong Li #ifndef _ASM_RISCV_SPARSEMEM_H
46b57ba8eSZong Li #define _ASM_RISCV_SPARSEMEM_H
5d95f1a54SLogan Gunthorpe 
6d95f1a54SLogan Gunthorpe #ifdef CONFIG_SPARSEMEM
7*3270bfdbSAlexandre Ghiti #ifdef CONFIG_64BIT
8*3270bfdbSAlexandre Ghiti #define MAX_PHYSMEM_BITS	56
9*3270bfdbSAlexandre Ghiti #else
10*3270bfdbSAlexandre Ghiti #define MAX_PHYSMEM_BITS	34
11*3270bfdbSAlexandre Ghiti #endif /* CONFIG_64BIT */
12d95f1a54SLogan Gunthorpe #define SECTION_SIZE_BITS	27
13d95f1a54SLogan Gunthorpe #endif /* CONFIG_SPARSEMEM */
14d95f1a54SLogan Gunthorpe 
156b57ba8eSZong Li #endif /* _ASM_RISCV_SPARSEMEM_H */
16