diff mbox series

[U-Boot] arm: dts: socfpga: stratix10: Fix memory node

Message ID 1531394014-12620-1-git-send-email-ley.foon.tan@intel.com
State Accepted
Commit 17b3f32dd04f0008890b8bd57ba2ea50601c6f97
Delegated to: Marek Vasut
Headers show
Series [U-Boot] arm: dts: socfpga: stratix10: Fix memory node | expand

Commit Message

Ley Foon Tan July 12, 2018, 11:13 a.m. UTC
Commit 5dfd5607af2114047bd ("ARM: socfpga: Pull DRAM size from DT") get
memory size from DT. So, we need to update memory size in memory node.
Otherwise, it cause U-boot hang.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
 arch/arm/dts/socfpga_stratix10_socdk.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Marek Vasut July 12, 2018, 7:22 a.m. UTC | #1
On 07/12/2018 01:13 PM, Ley Foon Tan wrote:
> Commit 5dfd5607af2114047bd ("ARM: socfpga: Pull DRAM size from DT") get
> memory size from DT. So, we need to update memory size in memory node.
> Otherwise, it cause U-boot hang.
> 
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> ---
>  arch/arm/dts/socfpga_stratix10_socdk.dts | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/dts/socfpga_stratix10_socdk.dts b/arch/arm/dts/socfpga_stratix10_socdk.dts
> index c6ab0ae..6e8ddcd 100644
> --- a/arch/arm/dts/socfpga_stratix10_socdk.dts
> +++ b/arch/arm/dts/socfpga_stratix10_socdk.dts
> @@ -36,8 +36,8 @@
>  
>  	memory {
>  		device_type = "memory";
> -		/* We expect the bootloader to fill in the reg */
> -		reg = <0 0 0 0>;
> +		reg = <0 0 0 0x80000000>; /* 2GB */
> +		u-boot,dm-pre-reloc;
>  	};
>  };
>  
> 
Applied, thanks
diff mbox series

Patch

diff --git a/arch/arm/dts/socfpga_stratix10_socdk.dts b/arch/arm/dts/socfpga_stratix10_socdk.dts
index c6ab0ae..6e8ddcd 100644
--- a/arch/arm/dts/socfpga_stratix10_socdk.dts
+++ b/arch/arm/dts/socfpga_stratix10_socdk.dts
@@ -36,8 +36,8 @@ 
 
 	memory {
 		device_type = "memory";
-		/* We expect the bootloader to fill in the reg */
-		reg = <0 0 0 0>;
+		reg = <0 0 0 0x80000000>; /* 2GB */
+		u-boot,dm-pre-reloc;
 	};
 };