blob: d2da53c2c2f8eaf2419e7cc41ad33192b15dc60c [file] [log] [blame]
Chad Reeseb1c231f2006-05-30 17:16:49 -07001#ifndef _MIPS_SPARSEMEM_H
2#define _MIPS_SPARSEMEM_H
3#ifdef CONFIG_SPARSEMEM
4
5/*
6 * SECTION_SIZE_BITS 2^N: how big each section will be
7 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
8 */
David Daneyaa1762f2012-10-17 00:48:10 +02009#if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
David Daney85f993b2012-05-04 11:09:35 -070010# define SECTION_SIZE_BITS 29
11#else
12# define SECTION_SIZE_BITS 28
13#endif
Ralf Baechle70342282013-01-22 12:59:30 +010014#define MAX_PHYSMEM_BITS 35
Chad Reeseb1c231f2006-05-30 17:16:49 -070015
16#endif /* CONFIG_SPARSEMEM */
17#endif /* _MIPS_SPARSEMEM_H */