]> code.ossystems Code Review - bsp/u-boot.git/commit
warp: Fix RAM size runtime detection
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 13 Aug 2016 00:33:02 +0000 (21:33 -0300)
committerFabio Estevam <festevam@gmail.com>
Mon, 15 Aug 2016 13:40:41 +0000 (10:40 -0300)
commit328e7d66b553a82fc4efe99700aaeeb36b0737d4
tree105c71421dac60632028692323c5346c72fc1471
parentae973bc45dd60b9eeff2729b46498b58625fd5f2
warp: Fix RAM size runtime detection

Since commit a13d3757f7df ("warp: Use imx_ddr_size() for calculating the
DDR size") warp board no longer boots.

The reason for the breakage is that the warp board is using the DDR
configuration from mx6slevk. A fundamental difference between warp and
mx6slevk is that warp only uses one DDR chip select while mx6slevk uses two.

The imx_ddr() function calculates the RAM size in runtime by reading the
values of registers MDCTL and MDMISC.

So in order to fix this warp boot issue, create a imximage DDR file specific
to warp, where the MDCTL register is configured to only activates a single
chip select.

Reported-by: Breno Lima <breno.lima@nxp.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Breno Lima <breno.lima@nxp.com>
board/warp/imximage.cfg [new file with mode: 0644]
configs/warp_defconfig