hikey: configure 4 MB of secure DRAM for OP-TEE Secure Data Path
authorPeter Griffin <peter.griffin@linaro.org>
Thu, 21 Dec 2017 18:03:46 +0000 (18:03 +0000)
committerPeter Griffin <peter.griffin@linaro.org>
Wed, 24 Jan 2018 03:30:23 +0000 (03:30 +0000)
commit52988b38c0165c3765e578b0584fdaea7774f94f
tree2e65cb949cb49d965de38d0355e9008b892bbe92
parent3d5d9f5aa87b3468fb931562f46c93e4840da8c1
hikey: configure 4 MB of secure DRAM for OP-TEE Secure Data Path

Update the memory firewall configuration to reserve 4 MB of secure RAM
for use by the kernel and OP-TEE as the Secure Data Path pool.
Note that this address range (0x3E800000 - 0x3EC00000) falls in the
range already set aside by UEFI (which reserves the upper 32 MB of the
1GB DRAM for OP-TEE [1]) and was previously unused.

[1] https://github.com/96boards-hikey/edk2/blob/hikey/HisiPkg/HiKeyPkg/Library/HiKeyLib/HiKeyMem.c#L44
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Acked-by: Victor Chong <victor.chong@linaro.org>
plat/hisilicon/hikey/hikey_security.c