]> git.sur5r.net Git - u-boot/commit
armv8: fsl-layerscape: Avoid running dram_init_banksize again
authorYork Sun <york.sun@nxp.com>
Thu, 28 Sep 2017 15:42:12 +0000 (08:42 -0700)
committerYork Sun <york.sun@nxp.com>
Mon, 9 Oct 2017 15:48:44 +0000 (08:48 -0700)
commit7eb40f0f9de8fee968ae983b1c5d51375315b320
tree4ddb16a33fcd8c03c8157c92beaa5fec39c2f5a7
parentb65ac633f52da596cfa573bb4a597e2edd2318c8
armv8: fsl-layerscape: Avoid running dram_init_banksize again

gd->ram_size is reduced in this function to reserve secure memory.
Avoid running this function again to further reduce memory size.
This fixes issue for SPL boot with PPA image loaded in which case
secure memory is incorrectly allocated due to repeated calling.

Signed-off-by: York Sun <york.sun@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c