Commit 1a01dc87 authored by Michael Ellerman's avatar Michael Ellerman

powerpc/mm: Add mmu_early_init_devtree()

Empty for now, but we'll add to it in the next patch.
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent bad60e6f
...@@ -107,6 +107,7 @@ extern int mmu_vmemmap_psize; ...@@ -107,6 +107,7 @@ extern int mmu_vmemmap_psize;
extern int mmu_io_psize; extern int mmu_io_psize;
/* MMU initialization */ /* MMU initialization */
void mmu_early_init_devtree(void);
extern void radix_init_native(void); extern void radix_init_native(void);
extern void hash__early_init_mmu(void); extern void hash__early_init_mmu(void);
extern void radix__early_init_mmu(void); extern void radix__early_init_mmu(void);
......
...@@ -210,6 +210,7 @@ extern void early_init_mmu(void); ...@@ -210,6 +210,7 @@ extern void early_init_mmu(void);
extern void early_init_mmu_secondary(void); extern void early_init_mmu_secondary(void);
extern void setup_initial_memory_limit(phys_addr_t first_memblock_base, extern void setup_initial_memory_limit(phys_addr_t first_memblock_base,
phys_addr_t first_memblock_size); phys_addr_t first_memblock_size);
static inline void mmu_early_init_devtree(void) { }
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif #endif
......
...@@ -750,6 +750,8 @@ void __init early_init_devtree(void *params) ...@@ -750,6 +750,8 @@ void __init early_init_devtree(void *params)
if (disable_radix) if (disable_radix)
cur_cpu_spec->mmu_features &= ~MMU_FTR_RADIX; cur_cpu_spec->mmu_features &= ~MMU_FTR_RADIX;
mmu_early_init_devtree();
#ifdef CONFIG_PPC_POWERNV #ifdef CONFIG_PPC_POWERNV
/* Scan and build the list of machine check recoverable ranges */ /* Scan and build the list of machine check recoverable ranges */
of_scan_flat_dt(early_init_dt_scan_recoverable_ranges, NULL); of_scan_flat_dt(early_init_dt_scan_recoverable_ranges, NULL);
......
...@@ -411,3 +411,9 @@ struct page *realmode_pfn_to_page(unsigned long pfn) ...@@ -411,3 +411,9 @@ struct page *realmode_pfn_to_page(unsigned long pfn)
EXPORT_SYMBOL_GPL(realmode_pfn_to_page); EXPORT_SYMBOL_GPL(realmode_pfn_to_page);
#endif /* CONFIG_SPARSEMEM_VMEMMAP/CONFIG_FLATMEM */ #endif /* CONFIG_SPARSEMEM_VMEMMAP/CONFIG_FLATMEM */
#ifdef CONFIG_PPC_STD_MMU_64
void __init mmu_early_init_devtree(void)
{
}
#endif /* CONFIG_PPC_STD_MMU_64 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment