Skip to contentSkip to conversation

ddr: socfpga: stratix10: Use phys_size_t for memory size

PATCH New tien.fong.chee at intel.com 2 participants 3 messages Aug 4, 2020 – Aug 6, 2020

lore
Share & tools
lore
#0 lore raw

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
index 2945f1e1df..5d24a5800a 100644
@@ -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
#1 lore raw

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: Use phys_size_t for memory size

Quoted 7 lines

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 .

---

#2 lore raw

PATCH 1/1 ddr: socfpga: stratix10: Use phys_size_t for memory size

In reply to tien.fong.chee at intel.com
Quoted 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: Use phys_size_t for memory size

From: Tien Fong Chee <[email protected]>

Quoted 8 lines

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(-)

Regards
Ley Foon