aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga
diff options
context:
space:
mode:
authorDalon Westergreen <dwesterg@gmail.com>2018-09-11 10:06:14 -0700
committerMarek Vasut <marex@denx.de>2018-09-15 03:17:01 +0200
commit02d8d3259133ea7af6031e4a780bdac1462ae057 (patch)
tree6a9a97977fcfd5cea58790329e7867d2e3d28d0d /arch/arm/mach-socfpga
parent3570469742aec30fed0b423708df346176fa9438 (diff)
downloadu-boot-02d8d3259133ea7af6031e4a780bdac1462ae057.zip
u-boot-02d8d3259133ea7af6031e4a780bdac1462ae057.tar.gz
u-boot-02d8d3259133ea7af6031e4a780bdac1462ae057.tar.bz2
socfpga: stratix10: fix sdram_calculate_size
Incorrect type of size variable results in 0 being returned for sdram sizes greater than or equal to 4GB. Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
Diffstat (limited to 'arch/arm/mach-socfpga')
-rw-r--r--arch/arm/mach-socfpga/include/mach/sdram_s10.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/sdram_s10.h b/arch/arm/mach-socfpga/include/mach/sdram_s10.h
index 91bfc0e..ca68594 100644
--- a/arch/arm/mach-socfpga/include/mach/sdram_s10.h
+++ b/arch/arm/mach-socfpga/include/mach/sdram_s10.h
@@ -7,7 +7,7 @@
#ifndef _SDRAM_S10_H_
#define _SDRAM_S10_H_
-unsigned long sdram_calculate_size(void);
+phys_size_t sdram_calculate_size(void);
int sdram_mmr_init_full(unsigned int sdr_phy_reg);
int sdram_calibration_full(void);