powerpc/64: Move MMU backend selection out of platform code
We move it into early_mmu_init() based on firmware features. For PS3, we have to move the setting of these into early_init_devtree(). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

کامیت شده توسط
Michael Ellerman

والد
91b6fad5cf
کامیت
166dd7d3fb
@@ -759,6 +759,12 @@ void __init early_init_devtree(void *params)
|
||||
/* Now try to figure out if we are running on LPAR and so on */
|
||||
pseries_probe_fw_features();
|
||||
|
||||
#ifdef CONFIG_PPC_PS3
|
||||
/* Identify PS3 firmware */
|
||||
if (of_flat_dt_is_compatible(of_get_flat_dt_root(), "sony,ps3"))
|
||||
powerpc_firmware_features |= FW_FEATURE_PS3_POSSIBLE;
|
||||
#endif
|
||||
|
||||
DBG(" <- early_init_devtree()\n");
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user