diff mbox series

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

Message ID 20210208060317.58912-2-samuel@sholland.org
State Accepted
Commit 925cd8d77eedfc5a05d7a9559da4e30b9277920a
Delegated to: Andre Przywara
Headers show
Series [1/2] sunxi: binman: Respect the default FIT configuration | expand

Commit Message

Samuel Holland Feb. 8, 2021, 6:03 a.m. UTC
The FIT description has access to the configuration variables. Use the
appropriate variable instead of hardcoding the address.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---
 arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Feb. 8, 2021, 5:08 p.m. UTC | #1
On Sun, 7 Feb 2021 at 23:03, Samuel Holland <samuel@sholland.org> wrote:
>
> The FIT description has access to the configuration variables. Use the
> appropriate variable instead of hardcoding the address.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---
>  arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Andre Przywara March 31, 2021, 3:49 p.m. UTC | #2
On Mon,  8 Feb 2021 00:03:17 -0600
Samuel Holland <samuel@sholland.org> wrote:

> The FIT description has access to the configuration variables. Use the
> appropriate variable instead of hardcoding the address.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Thanks, both patches queued for -next.

Cheers,
Andre

> ---
>  arch/arm/dts/sunxi-u-boot.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi
> index a9062316f1d..bb644d6378e 100644
> --- a/arch/arm/dts/sunxi-u-boot.dtsi
> +++ b/arch/arm/dts/sunxi-u-boot.dtsi
> @@ -42,7 +42,7 @@
>  					os = "u-boot";
>  					arch = "arm64";
>  					compression = "none";
> -					load = <0x4a000000>;
> +					load = <CONFIG_SYS_TEXT_BASE>;
>  
>  					u-boot-nodtb {
>  					};
diff mbox series

Patch

diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi
index a9062316f1d..bb644d6378e 100644
--- a/arch/arm/dts/sunxi-u-boot.dtsi
+++ b/arch/arm/dts/sunxi-u-boot.dtsi
@@ -42,7 +42,7 @@ 
 					os = "u-boot";
 					arch = "arm64";
 					compression = "none";
-					load = <0x4a000000>;
+					load = <CONFIG_SYS_TEXT_BASE>;
 
 					u-boot-nodtb {
 					};