aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-10-21 21:12:12 -0500
committerJagan Teki <jagan@amarulasolutions.com>2020-10-22 11:43:43 +0530
commit827c420c40030c9ddca16e97c2bb01244f2c66b4 (patch)
tree623272c44c6b4cf115c15024dc33c7759b21641b /arch
parent6b7c7ed80a5a02325adcaef1eaaeb2d9ffedc314 (diff)
downloadu-boot-827c420c40030c9ddca16e97c2bb01244f2c66b4.zip
u-boot-827c420c40030c9ddca16e97c2bb01244f2c66b4.tar.gz
u-boot-827c420c40030c9ddca16e97c2bb01244f2c66b4.tar.bz2
sunxi: binman: Use a macro for the BL31 load address
This consolidates the SoC-specific part at the top of the file to avoid cluttering it up with preprocessor conditions. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/sunxi-u-boot.dtsi16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi
index b7195c5..b8a0d4b 100644
--- a/arch/arm/dts/sunxi-u-boot.dtsi
+++ b/arch/arm/dts/sunxi-u-boot.dtsi
@@ -1,5 +1,11 @@
#include <config.h>
+#ifdef CONFIG_MACH_SUN50I_H6
+#define BL31_ADDR 0x104000
+#else
+#define BL31_ADDR 0x44000
+#endif
+
/ {
aliases {
mmc1 = &mmc2;
@@ -42,14 +48,8 @@
type = "firmware";
arch = "arm64";
compression = "none";
-/* TODO: Do this with an overwrite in this board's dtb? */
-#ifdef CONFIG_MACH_SUN50I_H6
- load = <0x104000>;
- entry = <0x104000>;
-#else
- load = <0x44000>;
- entry = <0x44000>;
-#endif
+ load = <BL31_ADDR>;
+ entry = <BL31_ADDR>;
atf-bl31 {
filename = "bl31.bin";