u-boot/board
Jon Nettleton 51f957adf7 mx6cuboxi: fix 4GB ddr memory detection
The soms with 4GB ddr have a rowaddr of 16 not 15, this allows
the detection mechanism to properly identify them as 4GB.
However these soms can be populated with whatever amount of
memory the customer requests therefor we need a ram stride test.
We can not use the get_ram_size() function because not all 4GB's
of DDR is addressable on a 32-bit architecture.  Therefore instead
we use a memory stride of 128MB's and look for the address that
the memory wraps.  This function is used for all som types to
catch most memory configurations.

This is a revised version of Rabeeh Khoury's original code.

Signed-off-by: Jon Nettleton <jon@solid-run.com>
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-06-18 16:50:55 +02:00
..
8dtech/eco5pk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
abilis/tb100 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
advantech SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
alliedtelesis/SBx81LIFKW ARM: kirkwood: SBx81LIFKW: Enable network hardware 2018-06-05 07:29:09 +02:00
alphaproject/ap_sh4a_4a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
altera SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
amarula/vyasa-rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
amazon/kc1 fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
amlogic ARM: meson: rename GXBB to GX 2018-05-08 09:07:34 -04:00
AndesTech board: ax25-ae350: Support cfi flash 2018-05-29 14:45:04 +08:00
Arcturus/ucp1020 SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
aries SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
aristainetos SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armadeus SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armltd SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
aspeed/evb_ast2500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
astro/mcf5373l SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmark-techno/armadillo-800eva SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel board: sama5d27_som1_ek: Fix the USB vbus power 2018-05-08 09:07:36 -04:00
avionic-design SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bachmann/ot1200 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
barco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Barix/ipam390 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
beckhoff/mx53cx9020 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
birdland/bav335x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bitmain/antminer_s9 arm: zynq: Add support for Bitmain Antminer S9 control board 2018-05-31 13:50:39 +02:00
bluegiga/apx4devkit SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bluewater SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bosch/shc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
boundary/nitrogen6x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
broadcom SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bticino/mamoj Fixup various SPDX tags from the latest merge 2018-05-18 17:56:50 -04:00
buffalo/lsxl SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
BuR SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
BuS/eb_cpu5282 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cadence/xtfpga SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
calao/usb_a9263 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
CarMediaLab/flea3 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cavium/thunderx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ccv/xpress SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cei/cei-tk1-som SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
chipspark/popmetal_rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cirrus/edb93xx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cloudengines/pogo_e02 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cobra5272 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
compal/paz00 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
compulab SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
comtrend SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
congatec SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
corscience/tricorder SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
creative/xfi3 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cssi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
CZ.NIC mvebu: turris_omnia: add note about i2c slave disable 2018-06-07 14:20:09 +02:00
d-link/dns325 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
davinci SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dbau1x00 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
devboards/dbm-soc1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dhelectronics/dh_imx6 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ebv/socrates SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eets/pdu001 board: eets: pdu001: Fix wrong default value in Kconfig 2018-05-31 08:53:11 -04:00
efi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
egnite/ethernut5 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
el/el6x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
embest/mx6boards SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
emulation ARM: qemu-arm: Bump RAM size in AArch64 MMU table 2018-05-26 12:46:50 -04:00
engicam board: engicam: spl: match icore-mipi fit-config 2018-06-18 16:48:56 +02:00
esd SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
espt SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
firefly/firefly-rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
freescale LS1012AFRWY: Add Secure Boot support 2018-06-11 12:34:45 -07:00
gateworks/gw_ventana SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gdsys tpm: disociate TPMv1.x specific and generic code 2018-05-25 20:12:55 -04:00
ge board: ge: bx50v3: remove redundant targets 2018-05-17 11:58:48 +02:00
geekbuying/geekbox SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
google SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grinn SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gumstix SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
h2200 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
highbank SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hisilicon SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
htkw/mcx SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
huawei/hg556a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ids/ids8313 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
imgtec SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
inversepath/usbarmory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iomega/iconnect SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
is1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
isee SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
k+p board: Remove not needed function for the K+P's imx53 board 2018-06-18 16:42:04 +02:00
keymile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
kmc/kzm9g SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
kobol/helios4 arm: mvebu: Add Helios4 Armada 38x initial support 2018-06-12 13:17:19 +02:00
kosagi/novena SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
l+g/vinco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
LaCie SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
laird SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lego/ev3 ARM: legoev3: update boot script to load uEnv.txt and .dtb 2018-06-05 10:33:57 -04:00
lg/sniper fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
liebherr display5: Add missing environment.h include to avoid warning 2018-06-18 15:44:21 +02:00
logicpd ARM: am3517_evm: Enable SPL_OF_CONTROL and SPL_OF_PLATDATA 2018-06-13 07:49:14 -04:00
Marvell ARM: mvebu: a38x: restore support for setting timing 2018-05-14 10:01:56 +02:00
maxbcm SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
microchip/pic32mzda SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
micronas/vct SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mini-box/picosam9g45 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpc8308_p1m SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpr2 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mqmaker/miqi_rk3288 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7720se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7722se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ms7750se SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
netgear SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nokia/rx51 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nvidia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
olimex/mx23_olinuxino SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
omicron/calimain SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
opalkelly/zynq SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
overo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pandora SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pb1x00 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phytec SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ppcag/bg0900 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qca SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qemu-mips SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qualcomm MAINTAINERS: Take over DB410c maintainership 2018-06-04 11:25:30 -04:00
quipos/cairo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
radxa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raidsonic/ib62x0 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raspberrypi/rpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
renesas Merge branch 'master' of git://git.denx.de/u-boot-sh 2018-06-02 16:58:27 -04:00
rockchip SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ronetix SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sagem/f@st1704 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
samsung board: samsung: add missing line breaks for pr_err() 2018-06-07 20:06:29 -04:00
samtec SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandisk/sansa_fuze_plus SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8349 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8548 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8641d SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
schulercontrol/sc_sps_1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Seagate SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
seco SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sfr/nb4_ser SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
shmin SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
siemens SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
silica/pengwyn SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sks-kinkel/sksimx6 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
socrates SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
solidrun mx6cuboxi: fix 4GB ddr memory detection 2018-06-18 16:50:55 +02:00
spear SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sr1500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
st stm32mp1: Allow to activate CONFIG_DEBUG_UART 2018-05-26 18:19:18 -04:00
sunxi board: sun50i: Add Amarula A64-Relic initial support 2018-06-04 18:09:25 +05:30
Synology SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
synopsys ARC: HSDK: Add readme 2018-06-15 15:54:43 +03:00
sysam SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syteco/zmx25 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tbs/tbs2910 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tcl/sl50 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
technexion twister: Let SPL load U-Boot from MMC 2018-05-23 22:06:40 -04:00
technologic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
teejet/mt_ventoux SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
terasic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
theadorable SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
theobroma-systems SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
ti dra76: fix HDMI HPD pinmux 2018-06-13 07:49:14 -04:00
timll SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
topic/zynq SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
toradex apalis_t30: fix optional pcie port reset for reliable pcie operation 2018-05-10 16:34:30 -07:00
tplink/wdr4300 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tqc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
udoo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
varisys SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ve8313 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vscom/baltos SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wandboard SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
warp SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
warp7 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
woodburn SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
work-microwave/work_92105 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xes SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xilinx arm64: zynqmp: Check return value from calloc 2018-06-15 08:54:05 +02:00
zipitz2 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zyxel/nsa310s SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00