summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/Kconfig
diff options
context:
space:
mode:
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>2019-10-22 21:29:48 +0200
committerTom Rini <trini@konsulko.com>2019-11-07 18:01:13 -0500
commita43b60cc78e25fddffec8b5401afab61f3dbd5c9 (patch)
tree8dda319d5d5d8f01353a3d5c43ce8aa364dd03f4 /arch/arm/mach-socfpga/Kconfig
parent8c59ca93b839261863f0db2295a2b6b4dd4f175e (diff)
downloadu-boot-a43b60cc78e25fddffec8b5401afab61f3dbd5c9.tar.gz
u-boot-a43b60cc78e25fddffec8b5401afab61f3dbd5c9.tar.xz
u-boot-a43b60cc78e25fddffec8b5401afab61f3dbd5c9.zip
arm: socfpga: gen5: fix ERR_PTR_OFFSET
The default implementation of ERR_PTR/PTR_ERR maps errno values at the and of the address range (e.g. -EINVAL/-22 gets 0xFFFFFFEA). For socfpga gen5 SPL, this doesn't really work, as the heap is nearly at the end of the 32 bit address range. This patch adjusts the ERR_PTR_OFFSET to map errno values into the range of the Boot ROM, which should not be used for valid pointers. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'arch/arm/mach-socfpga/Kconfig')
-rw-r--r--arch/arm/mach-socfpga/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
index fc0a54214f..3770e07258 100644
--- a/arch/arm/mach-socfpga/Kconfig
+++ b/arch/arm/mach-socfpga/Kconfig
@@ -1,5 +1,8 @@
if ARCH_SOCFPGA
+config ERR_PTR_OFFSET
+ default 0xfffec000 if TARGET_SOCFPGA_GEN5 # Boot ROM range
+
config NR_DRAM_BANKS
default 1