ddr: socfpga: stratix10: Use phys_size_t for memory size
PATCH 1/1 ddr: socfpga: stratix10: Use phys_size_t for memory size
From: Tien Fong Chee <[email protected]>
Replace with phys_size_t for better scalable. phys_size_t is defined in arch/arm/include/asm/types.h .
--- drivers/ddr/altera/sdram_s10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ddr/altera/sdram_s10.c +1 -1
@@ -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 ;
Signature · 1 line
2.13.0
Tan
PATCH 1/1 ddr: socfpga: stratix10: Use phys_size_t for memory size
Quoted 13 lines
-----Original Message-----
From: Chee, Tien Fong <[email protected]>
Sent: Tuesday, August 4, 2020 6:02 PM
To: u-boot at lists.denx.de
Cc: Simon Goldschmidt <[email protected]>; Marek Vasut <[email protected]>; See, Chin Liang <[email protected]>; Tan, Ley Foon <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Ang, Chee Hong <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH] ddr: socfpga: stratix10: Usephys_size_tfor memory size
Quoted 7 lines
From: Tien Fong Chee <[email protected]>
Replace with
phys_size_tfor better scalable.phys_size_tis defined inarch/arm/include/asm/types.h.Signed-off-by Tien Fong Chee <[email protected]>---
Tan
PATCH 1/1 ddr: socfpga: stratix10: Use phys_size_t for memory size
In reply to tien.fong.chee at intel.comQuoted 15 lines
-----Original Message-----
From: Chee, Tien Fong <[email protected]>
Sent: Tuesday, August 4, 2020 6:02 PM
To: u-boot at lists.denx.de
Cc: Simon Goldschmidt <[email protected]>; Marek Vasut <[email protected]>; See, Chin Liang <[email protected]>; Tan, Ley Foon <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Ang, Chee Hong <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH] ddr: socfpga: stratix10: Usephys_size_tfor memory sizeFrom: Tien Fong Chee <[email protected]>
Quoted 8 lines
Replace with
phys_size_tfor better scalable.phys_size_tis defined inarch/arm/include/asm/types.h.Signed-off-by Tien Fong Chee <[email protected]>--- drivers/ddr/altera/sdram_s10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Regards
Ley Foon