rv1126-uboot/board
Fabio Estevam 3b30eece27 mx6sabresd: Make SPL DDR configuration to match the DCD table
When using SPL on i.mx6 we frequently notice some DDR initialization
mismatches between the SPL code and the non-SPL code.

This causes stability issues like the ones reported at 7dbda25ecd
("mx6ul_14x14_evk: Pass refsel and refr fields to avoid hang") and also:
http://lists.denx.de/pipermail/u-boot/2016-September/266355.html .

As the non-SPL code have been tested for long time and proves to be reliable,
let's configure the DDR in the exact same way as the non-SPL case.

The idea is simple: just use the DCD table and write directly to the DDR
registers.

Retrieved the DCD tables from:
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg
and
board/freescale/mx6sabresd/mx6qp.cfg
(NXP U-Boot branch imx_v2015.04_4.1.15_1.0.0_ga)

This method makes it easier for people converting from non-SPL to SPL code.

Other benefit is that the SPL binary size is reduced from 44 kB to 39.9 kB.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
2016-10-04 12:01:14 +02:00
..
8dtech/eco5pk
AndesTech/adp-ag101p
Arcturus/ucp1020 usb: fsl: Rename fdt_fixup_dr_usb 2016-09-27 23:30:27 +02:00
Barix/ipam390 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
BuR
BuS/eb_cpu5282
CarMediaLab/flea3 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
LaCie
Marvell arm64: mvebu: Add Armada 7K db-88f7040 development board support 2016-09-27 17:29:54 +02:00
Seagate
Synology/ds414
a3m071
a4m072
abilis/tb100
advantech treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
alphaproject/ap_sh4a_4a
altera
amazon/kc1
amcc treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
amlogic/odroid-c2
aristainetos treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
armadeus/apf27 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
armltd
astro/mcf5373l
atmark-techno/armadillo-800eva
atmel
avionic-design
bachmann/ot1200
barco
bct-brettl2
bf506f-ezkit
bf518f-ezbrd
bf525-ucr2
bf526-ezbrd
bf527-ad7160-eval
bf527-ezkit
bf527-sdp
bf533-ezkit
bf533-stamp
bf537-minotaur
bf537-pnav
bf537-srv1
bf537-stamp
bf538f-ezkit
bf548-ezkit
bf561-acvilon
bf561-ezkit
bf609-ezkit
birdland/bav335x
blackstamp
blackvme
bluegiga/apx4devkit
bluewater
bosch/shc
boundary/nitrogen6x treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
br4
broadcom
buffalo/lsxl
cadence/xtfpga
calao/usb_a9263
canmb
cavium/thunderx
ccv/xpress
cei/cei-tk1-som
chipspark/popmetal_rk3288
cirrus/edb93xx
cloudengines/pogo_e02
cm-bf527
cm-bf533
cm-bf537e
cm-bf537u
cm-bf548
cm-bf561
cm5200
cobra5272
compal/paz00
compulab treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
congatec
coreboot
corscience/tricorder arch, board: squash lines for immediate return 2016-09-23 17:53:53 -04:00
creative/xfi3
d-link/dns325
davedenx/aria
davinci treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
dbau1x00
denx treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
dfi
dnp5370
ebv/socrates
efi
egnite/ethernut5
el/el6x treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
embest/mx6boards treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
emulation
esd treewide: use #include <...> to include public headers 2016-09-23 17:53:56 -04:00
espt
firefly/firefly-rk3288
freescale mx6sabresd: Make SPL DDR configuration to match the DCD table 2016-10-04 12:01:14 +02:00
gaisler
gateworks/gw_ventana treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
gdsys usb: fsl: Rename fdt_fixup_dr_usb 2016-09-27 23:30:27 +02:00
ge/bx50v3 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
google
gumstix
h2200
highbank
hisilicon/hikey
htkw/mcx treewide: use #include <...> to include public headers 2016-09-23 17:53:56 -04:00
ibf-dsp561
ids/ids8313
ifm
imgtec boston: Introduce support for the MIPS Boston development board 2016-09-21 16:24:36 +02:00
imx31_phycore
in-circuit/grasshopper
inka4x0
intel
intercontrol/digsy_mtc
inversepath/usbarmory treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
iomega/iconnect
ip04
ipek01
is1
isee
jupiter
keymile usb: fsl: Rename fdt_fixup_dr_usb 2016-09-27 23:30:27 +02:00
kmc/kzm9g
kosagi/novena treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
l+g/vinco
lego/ev3 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
lg/sniper
liebherr/lwmon5
logicpd treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
maxbcm
microchip/pic32mzda
micronas/vct treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
mini-box/picosam9g45
mosaixtech/icon treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
motionpro
mpc8308_p1m usb: fsl: Rename fdt_fixup_dr_usb 2016-09-27 23:30:27 +02:00
mpl PowerPC: Update last users of CONFIG_ISO_STRING to Kconfig 2016-09-20 09:30:26 -04:00
mpr2
ms7720se
ms7722se
ms7750se
munices
nokia/rx51
nvidia ARM: tegra: fix ULPI PHY on Ventana and Seaboard 2016-09-27 09:11:03 -07:00
olimex/mx23_olinuxino
omicron/calimain
openrisc/openrisc-generic
overo
pandora
pb1x00
pdm360ng
phytec treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ppcag/bg0900
pr1
qca
qemu-mips
qualcomm/dragonboard410c
quipos/cairo
radxa/rock2
raidsonic/ib62x0
raspberrypi/rpi
renesas treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
rockchip rockchip: add boot-mode support for rk3288, rk3036 2016-10-01 18:36:55 -06:00
ronetix
samsung arch, board: squash lines for immediate return 2016-09-23 17:53:53 -04:00
samtec/vining_fpga
sandbox sandbox: document support of block device emulation 2016-09-18 21:04:38 -06:00
sandisk/sansa_fuze_plus
sbc8349
sbc8548
sbc8641d
schulercontrol/sc_sps_1
seco treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
shmin
siemens
silica/pengwyn
socrates treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
solidrun treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
spear
sr1500
st
sunxi Kconfig: Move config IDENT_STRING to Kconfig 2016-09-20 09:30:23 -04:00
synopsys
sysam/amcore board: amcore: update to use dm serial driver 2016-09-25 14:26:22 +02:00
syteco/zmx25
t3corp
tbs/tbs2910 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
tcl/sl50
tcm-bf518
tcm-bf537
technexion
technologic/ts4800 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
teejet/mt_ventoux
terasic
theadorable arm: mvebu: theadorable: Configure board for PCIe 2.0 capability 2016-09-24 10:00:41 +02:00
ti board: am33xx-hs: Allow post-processing of FIT image on AM33xx 2016-10-02 08:10:01 -04:00
timll
toradex
tplink/wdr4300
tqc treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
udoo treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
v38b
varisys usb: fsl: Rename fdt_fixup_dr_usb 2016-09-27 23:30:27 +02:00
ve8313
vscom/baltos
wandboard wandboard: Fix hang when going into low frequency 2016-10-04 12:01:14 +02:00
warp
warp7
woodburn treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
work-microwave/work_92105
xes
xilinx ARM64: zynqmp: Add support for chip ID detection 2016-09-22 07:33:21 +02:00
zipitz2
zyxel/nsa310s