projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8019780
)
sunxi: change ATF position for H6
author
Icenowy Zheng
<
[email protected]
>
Sat, 21 Jul 2018 08:20:23 +0000
(16:20 +0800)
committer
Jagan Teki
<
[email protected]
>
Tue, 31 Jul 2018 06:08:13 +0000
(11:38 +0530)
H6 has different SRAM A2 address, so the ATF load address is also
different.
Add judgment code to sunxi 64-bit FIT generation script. It will judge
the SoC by the device tree's name.
Signed-off-by: Icenowy Zheng <
[email protected]
>
Reviewed-by: Andre Przywara <
[email protected]
>
Acked-by: Maxime Ripard <
[email protected]
>
Reviewed-by: Jagan Teki <
[email protected]
>
Tested-by: Jagan Teki <
[email protected]
>
board/sunxi/mksunxi_fit_atf.sh
patch
|
blob
|
history
diff --git
a/board/sunxi/mksunxi_fit_atf.sh
b/board/sunxi/mksunxi_fit_atf.sh
index 36abe9efed45beedde0e1f278ec6f2d8b1f8ea26..88ad71974706614014619d0f1cb08fa16e68f0ab 100755
(executable)
--- a/
board/sunxi/mksunxi_fit_atf.sh
+++ b/
board/sunxi/mksunxi_fit_atf.sh
@@
-13,6
+13,12
@@
if [ ! -f $BL31 ]; then
BL31=/dev/null
fi
+if grep -q "^CONFIG_MACH_SUN50I_H6=y" .config; then
+ BL31_ADDR=0x104000
+else
+ BL31_ADDR=0x44000
+fi
+
cat << __HEADER_EOF
/dts-v1/;
@@
-35,8
+41,8
@@
cat << __HEADER_EOF
type = "firmware";
arch = "arm64";
compression = "none";
- load = <
0x44000
>;
- entry = <
0x44000
>;
+ load = <
$BL31_ADDR
>;
+ entry = <
$BL31_ADDR
>;
};
__HEADER_EOF