Skip to contentSkip to conversation

ddr: altera: Stratix10: Use phys_size_t for memory size

PATCH New [email protected] 1 participant 1 message Apr 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ddr: altera: Stratix10: Use phys_size_t for memory size

From: Tien Fong Chee <[email protected]>

Replace with phys_size_t for all memory size variables declaration for the sake of scalability. phys_size_t is defined in /arch/arm/include/asm/types.h.

---
 drivers/ddr/altera/sdram_s10.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ddr/altera/sdram_s10.c +2 -2
index d3a6d21860..4d36fb4533 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (C) 2016-2018 Intel Corporation <www.intel.com>
+ * Copyright (C) 2016-2022 Intel Corporation <www.intel.com>
  *
  */
 
@@ -277,7 +277,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.19.0