On Mon, Feb 5, 2018 at 5:59 PM, Haojian Zhuang haojian.zhuang@linaro.org wrote:
Add hikey960 platform with OPTEE and ATF.
Signed-off-by: Haojian Zhuang haojian.zhuang@linaro.org
edk2-platforms.config | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/edk2-platforms.config b/edk2-platforms.config index 8ef82d1..48df98f 100644 --- a/edk2-platforms.config +++ b/edk2-platforms.config @@ -121,6 +121,22 @@ BUILD_TOS=yes # Uncomment this to use UART0 as the OP-TEE Trusted OS console #TOS_BUILDFLAGS=CFG_CONSOLE_UART=0
+[hikey960] +LONGNAME=Hikey960 +DSC=Platform/Hisilicon/HiKey960/HiKey960.dsc +ARCH=AARCH64 +UEFI_BIN=BL33_AP_UEFI.fd +UEFI_IMAGE_DIR=HiKey960 +BUILD_ATF=yes +ATF_SPD=opteed +TOS_BIN=tee-pager.bin +TOS_PLATFORM=hikey +TOS_PLATFORM_FLAVOR=hikey960 +BUILD_TOS=yes +SCP_BIN=Platform/Hisilicon/HiKey960/lpm3.img +# Uncomment this to use UART5 as the EDK2 console for v1 hardware +#BUILDFLAGS=-DSERIAL_BASE=0xFDF05000
Sorry, should have mentioned earlier. Can we add below please? Maybe the arm-tf one isn't needed since you have runtime detection but https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/hisili... is still hardcoded. Or maybe just that line needs to be changed to `uart_base`?
# Uncomment this to use UART5 as the ARM Trusted Firmware console #ATF_BUILDFLAGS=CONSOLE_BASE=PL011_UART5_BASE CRASH_CONSOLE_BASE=PL011_UART5_BASE # Uncomment this to use UART5 as the OP-TEE Trusted OS console #TOS_BUILDFLAGS=CFG_CONSOLE_UART=5
Thanks!
[d02] LONGNAME=Hisilicon D02 DSC=Platform/Hisilicon/D02/Pv660D02.dsc -- 2.7.4
Linaro-uefi mailing list Linaro-uefi@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-uefi