Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ath79: Add support for DTB passed using the UHI boot protocol

This is needed for bootloader supporting UHI and to support appended
DTB.

Signed-off-by: Alban Bedel <albeu@free.fr>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12230/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Alban Bedel and committed by
Ralf Baechle
8f4d4d1b 32eb6e8b

+2
+2
arch/mips/ath79/setup.c
··· 203 203 fdt_start = fw_getenvl("fdt_start"); 204 204 if (fdt_start) 205 205 __dt_setup_arch((void *)KSEG0ADDR(fdt_start)); 206 + else if (fw_arg0 == -2) 207 + __dt_setup_arch((void *)KSEG0ADDR(fw_arg1)); 206 208 #ifdef CONFIG_BUILTIN_DTB 207 209 else 208 210 __dt_setup_arch(__dtb_start);