sunxi: binman: Respect the default FIT configuration
Subsystems (2)
Samuel Holland
maintainerPATCH 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
@@ -86,7 +86,7 @@ }; configurations { - default = "config-1"; + default = "@config-DEFAULT-SEQ"; @config-SEQ { description = "NAME";
Signature · 1 line
2.26.2
Samuel Holland
maintainerPATCH 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
@@ -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
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.
Signed-off-by Samuel Holland <[email protected]>--- arch/arm/dts/sunxi-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 2/2 sunxi: binman: Do not hardcode U-Boot load address
In reply to Samuel HollandQuoted 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.
Signed-off-by Samuel Holland <[email protected]>
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@@ -42,7 +42,7 @@ os = "u-boot"; arch = "arm64"; compression = "none"; - load = <0x4a000000>; + load = <CONFIG_SYS_TEXT_BASE>; u-boot-nodtb { };
PATCH 1/2 sunxi: binman: Respect the default FIT configuration
In reply to Samuel HollandQuoted 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 inCONFIG_OF_LIST.Signed-off-by Samuel Holland <[email protected]>--- arch/arm/dts/sunxi-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)