]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: ea: mx7ulp_com: allocate specific region of memory to OP-TEE
authorRicardo Salveti <ricardo@foundries.io>
Wed, 25 Aug 2021 15:47:18 +0000 (18:47 +0300)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Oct 2021 11:59:26 +0000 (13:59 +0200)
commitcdf31924521b347980a2b4e9871acb4a995f5d24
treed51d714c316b9fa68da3d0d0f04bb89239002d11
parent35813490d63ac6c421f0ec1f70b53d18e5fbcd0d
board: ea: mx7ulp_com: allocate specific region of memory to OP-TEE

On the iMX7ULP uCOM board, OP-TEE uses the memory region defined by the
maximum DRAM address minus CONFIG_OPTEE_TZDRAM_SIZE, so subtract
CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size to avoid
conflicts.

Note the OPTEE boot process itself subtracts the DRAM region it
lives in from the memory map passed to Linux.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/ea/mx7ulp_com/mx7ulp_com.c