diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2016-02-09 17:08:12 +0100 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-03-12 00:18:02 +0100 |
commit | 7ee5cf6bfad7990cc33d10888d869c1eb7d4a927 (patch) | |
tree | 80afe672697313aef39e701d063fff07148827cc /arch/powerpc/include/asm/mmu-8xx.h | |
parent | powerpc32: remove ioremap_base (diff) | |
download | linux-7ee5cf6bfad7990cc33d10888d869c1eb7d4a927.tar.xz linux-7ee5cf6bfad7990cc33d10888d869c1eb7d4a927.zip |
powerpc/8xx: Add missing SPRN defines into reg_8xx.h
Add missing SPRN defines into reg_8xx.h
Some of them are defined in mmu-8xx.h, so we include mmu-8xx.h in
reg_8xx.h, for that we remove references to PAGE_SHIFT in mmu-8xx.h
to have it self sufficient, as includers of reg_8xx.h don't all
include asm/page.h
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc/include/asm/mmu-8xx.h')
-rw-r--r-- | arch/powerpc/include/asm/mmu-8xx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/mmu-8xx.h b/arch/powerpc/include/asm/mmu-8xx.h index f05500a29a60..0a566f15f985 100644 --- a/arch/powerpc/include/asm/mmu-8xx.h +++ b/arch/powerpc/include/asm/mmu-8xx.h @@ -171,9 +171,9 @@ typedef struct { } mm_context_t; #endif /* !__ASSEMBLY__ */ -#if (PAGE_SHIFT == 12) +#if defined(CONFIG_PPC_4K_PAGES) #define mmu_virtual_psize MMU_PAGE_4K -#elif (PAGE_SHIFT == 14) +#elif defined(CONFIG_PPC_16K_PAGES) #define mmu_virtual_psize MMU_PAGE_16K #else #error "Unsupported PAGE_SIZE" |