projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32eb6e8
)
MIPS: ath79: Add support for DTB passed using the UHI boot protocol
author
Alban Bedel
<
[email protected]
>
Tue, 26 Jan 2016 07:27:15 +0000
(08:27 +0100)
committer
Ralf Baechle
<
[email protected]
>
Fri, 13 May 2016 12:01:37 +0000
(14:01 +0200)
This is needed for bootloader supporting UHI and to support appended
DTB.
Signed-off-by: Alban Bedel <
[email protected]
>
Cc: Felix Fietkau <
[email protected]
>
Cc: Antony Pavlov <
[email protected]
>
Cc: Gabor Juhos <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12230/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/ath79/setup.c
patch
|
blob
|
history
diff --git
a/arch/mips/ath79/setup.c
b/arch/mips/ath79/setup.c
index be451ee4a5eaf5b8ba6de0d11fc8c76f6d6db7fa..0e60b0f4c69f377662bd7ca0399c0c118c09600f 100644
(file)
--- a/
arch/mips/ath79/setup.c
+++ b/
arch/mips/ath79/setup.c
@@
-203,6
+203,8
@@
void __init plat_mem_setup(void)
fdt_start = fw_getenvl("fdt_start");
if (fdt_start)
__dt_setup_arch((void *)KSEG0ADDR(fdt_start));
+ else if (fw_arg0 == -2)
+ __dt_setup_arch((void *)KSEG0ADDR(fw_arg1));
#ifdef CONFIG_BUILTIN_DTB
else
__dt_setup_arch(__dtb_start);