liminix-fork/pkgs/kernel/mips-malta-fdt-from-bootloader.patch

16 lines
462 B
Diff
Raw Normal View History

2023-12-21 20:17:14 +01:00
diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-malta/malta-setup.c
2023-12-21 22:12:55 +01:00
index 21cb3ac1237b..52e731f9b4e2 100644
2023-12-21 20:17:14 +01:00
--- a/arch/mips/mti-malta/malta-setup.c
+++ b/arch/mips/mti-malta/malta-setup.c
2023-12-21 22:12:55 +01:00
@@ -192,7 +192,9 @@ static void __init bonito_quirks_setup(void)
2023-12-21 20:17:14 +01:00
void __init *plat_get_fdt(void)
{
- return (void *)__dtb_start;
2023-12-21 22:12:55 +01:00
+ return (fw_arg0 == -2) ?
+ (void *) (KSEG1ADDR(fw_arg1)) :
+ (void *) __dtb_start;
2023-12-21 20:17:14 +01:00
}
void __init plat_mem_setup(void)