Skip to contentSkip to conversation

sunxi: binman: Respect the default FIT configuration

PATCH New Samuel Holland 3 participants 5 messages Feb 8, 2021 – Mar 31, 2021

Subsystems (2)
lore
Share & tools
lore

Samuel Holland

author maintainer
#0 lore raw

PATCH 1/2 sunxi: binman: Respect the default FIT configuration

binman can fill in the default FIT configuration index as selected by the "default-dt" argument, which is set to CONFIG_DEFAULT_DEVICE_TREE. Let's respect the user's configuration by taking advantage of this feature, instead of always defaulting to the first device tree in CONFIG_OF_LIST.

---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sunxi-u-boot.dtsi +1 -1
index abe629c55e5..a9062316f1d 100644
@@ -86,7 +86,7 @@
 			};
 
 			configurations {
-				default = "config-1";
+				default = "@config-DEFAULT-SEQ";
 
 				@config-SEQ {
 					description = "NAME";
Signature · 1 line
2.26.2
author maintainer
#1 lore raw

PATCH 2/2 sunxi: binman: Do not hardcode U-Boot load address

The FIT description has access to the configuration variables. Use the appropriate variable instead of hardcoding the address.

---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sunxi-u-boot.dtsi +1 -1
index a9062316f1d..bb644d6378e 100644
@@ -42,7 +42,7 @@
 					os = "u-boot";
 					arch = "arm64";
 					compression = "none";
-					load = <0x4a000000>;
+					load = <CONFIG_SYS_TEXT_BASE>;
 
 					u-boot-nodtb {
 					};
Signature · 1 line
2.26.2
#2 lore raw

PATCH 2/2 sunxi: binman: Do not hardcode U-Boot load address

Quoted 8 lines · Samuel Holland

The FIT description has access to the configuration variables. Use the appropriate variable instead of hardcoding the address.

---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw

PATCH 2/2 sunxi: binman: Do not hardcode U-Boot load address

In reply to Samuel Holland
Quoted 4 lines · On Mon, 8 Feb 2021 00:03:17 -0600 Samuel Holland <[email protected]> wrote:

The FIT description has access to the configuration variables. Use the appropriate variable instead of hardcoding the address.

Thanks, both patches queued for -next.

Cheers,
Andre

Quoted 17 lines
---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sunxi-u-boot.dtsi +1 -1
index a9062316f1d..bb644d6378e 100644
@@ -42,7 +42,7 @@
 					os = "u-boot";
 					arch = "arm64";
 					compression = "none";
-					load = <0x4a000000>;
+					load = <CONFIG_SYS_TEXT_BASE>;
 
 					u-boot-nodtb {
 					};
#4 lore raw

PATCH 1/2 sunxi: binman: Respect the default FIT configuration

In reply to Samuel Holland
Quoted 11 lines · Samuel Holland

binman can fill in the default FIT configuration index as selected by the "default-dt" argument, which is set to CONFIG_DEFAULT_DEVICE_TREE. Let's respect the user's configuration by taking advantage of this feature, instead of always defaulting to the first device tree in CONFIG_OF_LIST.

---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)