]> git.dujemihanovic.xyz Git - u-boot.git/commit
armv7R: K3: am654: Use full malloc in SPL both pre and post reloc
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 3 Aug 2020 06:05:06 +0000 (11:35 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:46 +0000 (20:34 +0530)
commitf9916b6d3bdfa71bedd101a442656cc699c89719
treec888bffd2fa3a1aaf9c5a794d796fceda62c0a50
parent39388aebed67a64d1bac8cd6652e8f418c116252
armv7R: K3: am654: Use full malloc in SPL both pre and post reloc

In order to be able to use things like file system drivers early on in
SPL (before relocation) in a memory-constrained environment when DDR is
not yet available we cannot use the simple malloc scheme which does not
implement the freeing of previously allocated memory blocks. To address
this issue go ahead and enable the use of the full malloc by manually
initializing the required functionality inside board_init_f by creating
a full malloc pool inside the pre-relocation malloc pool.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
arch/arm/mach-k3/am6_init.c