diff mbox series

ddr: socfpga: stratix10: Use phys_size_t for memory size

Message ID 20200804100207.24907-1-tien.fong.chee@intel.com
State New
Delegated to: Simon Goldschmidt
Headers show
Series ddr: socfpga: stratix10: Use phys_size_t for memory size | expand

Commit Message

Chee, Tien Fong Aug. 4, 2020, 10:02 a.m. UTC
From: Tien Fong Chee <tien.fong.chee@intel.com>

Replace with phys_size_t for better scalable. phys_size_t is defined in
arch/arm/include/asm/types.h .

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
---
 drivers/ddr/altera/sdram_s10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ley Foon Tan Aug. 5, 2020, 9:30 a.m. UTC | #1
> -----Original Message-----
> From: Chee, Tien Fong <tien.fong.chee@intel.com>
> Sent: Tuesday, August 4, 2020 6:02 PM
> To: u-boot@lists.denx.de
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>; Marek Vasut
> <marex@denx.de>; See, Chin Liang <chin.liang.see@intel.com>; Tan, Ley
> Foon <ley.foon.tan@intel.com>; Lim, Elly Siew Chin
> <elly.siew.chin.lim@intel.com>; Ang, Chee Hong
> <chee.hong.ang@intel.com>; Chee, Tien Fong <tien.fong.chee@intel.com>
> Subject: [PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size
> 
> From: Tien Fong Chee <tien.fong.chee@intel.com>
> 
> Replace with phys_size_t for better scalable. phys_size_t is defined in
> arch/arm/include/asm/types.h .
> 
> Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
> ---
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
Ley Foon Tan Aug. 6, 2020, 3:50 a.m. UTC | #2
> -----Original Message-----
> From: Chee, Tien Fong <tien.fong.chee@intel.com>
> Sent: Tuesday, August 4, 2020 6:02 PM
> To: u-boot@lists.denx.de
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>; Marek Vasut
> <marex@denx.de>; See, Chin Liang <chin.liang.see@intel.com>; Tan, Ley
> Foon <ley.foon.tan@intel.com>; Lim, Elly Siew Chin
> <elly.siew.chin.lim@intel.com>; Ang, Chee Hong
> <chee.hong.ang@intel.com>; Chee, Tien Fong <tien.fong.chee@intel.com>
> Subject: [PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size
> 
> From: Tien Fong Chee <tien.fong.chee@intel.com>
> 
> Replace with phys_size_t for better scalable. phys_size_t is defined in
> arch/arm/include/asm/types.h .
> 
> Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
> ---
>  drivers/ddr/altera/sdram_s10.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>

Regards
Ley Foon
diff mbox series

Patch

diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c
index 2945f1e1df..5d24a5800a 100644
--- a/drivers/ddr/altera/sdram_s10.c
+++ b/drivers/ddr/altera/sdram_s10.c
@@ -276,7 +276,7 @@  int sdram_mmr_init_full(struct udevice *dev)
 			DDR_SCH_DEVTODEV);
 
 	/* assigning the SDRAM size */
-	unsigned long long size = sdram_calculate_size(plat);
+	phys_size_t size = sdram_calculate_size(plat);
 	/* If the size is invalid, use default Config size */
 	if (size <= 0)
 		hw_size = PHYS_SDRAM_1_SIZE;