[PATCH] ddr: socfpga: stratix10: Use phys_size_t for memory size

tien.fong.chee at intel.com tien.fong.chee at intel.com
Tue Aug 4 12:02:07 CEST 2020


From: Tien Fong Chee <tien.fong.chee at 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 at intel.com>
---
 drivers/ddr/altera/sdram_s10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.13.0



More information about the U-Boot mailing list