diff options
author | Tien Fong Chee <tien.fong.chee@intel.com> | 2022-04-27 12:52:42 +0800 |
---|---|---|
committer | Tien Fong Chee <tien.fong.chee@intel.com> | 2022-06-16 16:10:58 +0800 |
commit | 39bbcc341bda435899cb623a19d20727ca98c67a (patch) | |
tree | 1c63ad0eef0396a6489071a007c0a12b47445118 /drivers/ddr | |
parent | ee06c5390f2f1e2f1bc23e14a7cd8665c1e42ff4 (diff) | |
download | u-boot-39bbcc341bda435899cb623a19d20727ca98c67a.zip u-boot-39bbcc341bda435899cb623a19d20727ca98c67a.tar.gz u-boot-39bbcc341bda435899cb623a19d20727ca98c67a.tar.bz2 |
ddr: altera: Stratix10: Use phys_size_t for memory size
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.
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'drivers/ddr')
-rw-r--r-- | drivers/ddr/altera/sdram_s10.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c index d3a6d21..4d36fb4 100644 --- a/drivers/ddr/altera/sdram_s10.c +++ b/drivers/ddr/altera/sdram_s10.c @@ -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; |