summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-08-20 23:35:20 -0700
committerYe Li <ye.li@nxp.com>2018-08-21 02:22:55 -0700
commitced8dc6ce85f2227a29a52d55836b73223e71e73 (patch)
tree075533f3870b88df426a7e5f907b9e640001864a /common
parentebdf2c75f3c820c74d7d9a5ee0993a0937cf3443 (diff)
MLK-19263-2 imx8mq_evk: Adjust SPL malloc pool and stack address
Currently the SRAM is allocated to malloc pool due to large malloc needed by USB SDP. The stack is moved to OCRAM. This causes a problem when enabling HAB. The HAB authentication needs large memory on stack, so after ATF image loaded, the stack overwrites the ATF image in OCRAM and causes authentication failed. This patch moves the malloc pool to DDR and set back stack to SRAM. So SDP still can run with enough memory on DDR. And the stack overwrite issue can be fixed by enough memory 24KB left on SRAM. This change also need to use a early malloc pool by defining the CONFIG_MALLOC_F_ADDR. And in SPL codes, we have to adjust DDR init before board_init_r. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions