xref: /openbmc/linux/arch/mips/include/asm/sparsemem.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2384740dcSRalf Baechle #ifndef _MIPS_SPARSEMEM_H
3384740dcSRalf Baechle #define _MIPS_SPARSEMEM_H
4384740dcSRalf Baechle #ifdef CONFIG_SPARSEMEM
5384740dcSRalf Baechle 
6384740dcSRalf Baechle /*
7384740dcSRalf Baechle  * SECTION_SIZE_BITS		2^N: how big each section will be
8384740dcSRalf Baechle  * MAX_PHYSMEM_BITS		2^N: how much memory we can have in that space
9384740dcSRalf Baechle  */
10aa1762f4SDavid Daney #if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
1185f993b8SDavid Daney # define SECTION_SIZE_BITS	29
1285f993b8SDavid Daney #else
13384740dcSRalf Baechle # define SECTION_SIZE_BITS	28
1485f993b8SDavid Daney #endif
15c4617318SHuacai Chen #define MAX_PHYSMEM_BITS	48
16384740dcSRalf Baechle 
17384740dcSRalf Baechle #endif /* CONFIG_SPARSEMEM */
18384740dcSRalf Baechle #endif /* _MIPS_SPARSEMEM_H */
19