feat(hikey960): upgrade to xlat_tables_v2Allow 36-bit addresses.Don't map BL32 memory into BL31 to save spaceChange-Id: I033132354dc4b9876f4a384491097b9b5238e700Signed-off-by: vallau01 <valenti
feat(hikey960): upgrade to xlat_tables_v2Allow 36-bit addresses.Don't map BL32 memory into BL31 to save spaceChange-Id: I033132354dc4b9876f4a384491097b9b5238e700Signed-off-by: vallau01 <valentin.laurent@trustonic.com>Signed-off-by: Lukas Hanel <lukas.hanel@trustonic.com>
show more ...
Don't return error information from console_flushAnd from crash_console_flush.We ignore the error information return by console_flush in _every_place where we call it, and casting the return typ
Don't return error information from console_flushAnd from crash_console_flush.We ignore the error information return by console_flush in _every_place where we call it, and casting the return type to void does notwork around the MISRA violation that this causes. Instead, we collectthe error information from the driver (to avoid changing that API), anddon't return it to the caller.Change-Id: I1e35afe01764d5c8f0efd04f8949d333ffb688c1Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- inclu
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- include/lib/el3_runtime/${ARCH}The reason for this change is that having a global namespace forincludes isn't a good idea. It defeats one of the advantages of havingfolders and it introduces problems that are sometimes subtle (becauseyou may not know the header you are actually including if there are twoof them).For example, this patch had to be created because two headers werecalled the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platformto avoid collision."). More recently, this patch has had similarproblems: 46f9b2c3a282 ("drivers: add tzc380 support").This problem was introduced in commit 4ecca33988b9 ("Move include andsource files to logical locations"). At that time, there weren't toomany headers so it wasn't a real issue. However, time has shown thatthis creates problems.Platforms that want to preserve the way they include headers may add theremoved paths to PLAT_INCLUDES, but this is discouraged.Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8fSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960: Use new console APIsSwitch to the new console APIs enabled by setting MULTI_CONSOLE_API=1.Enables building with ERROR_DEPRECATED=1.Signed-off-by: Jerome Forissier <jerome.forissier@lin
hikey960: Use new console APIsSwitch to the new console APIs enabled by setting MULTI_CONSOLE_API=1.Enables building with ERROR_DEPRECATED=1.Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Add plat_crash_console_flush to platforms without itEven though at this point plat_crash_console_flush is optional, it willstop being optional in a following patch.The console driver of warp7 do
Add plat_crash_console_flush to platforms without itEven though at this point plat_crash_console_flush is optional, it willstop being optional in a following patch.The console driver of warp7 doesn't support flush, so the implementationis a placeholder.TI had ``plat_crash_console_init`` and ``plat_crash_console_putc``, butthey weren't global so they weren't actually used. Also, they werecalling the wrong functions.imx8_helpers.S only has placeholders for all of the functions.Change-Id: I8d17bbf37c7dad74e134c61ceb92acb9af497718Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960: Migrate to new interfaces- Migrate to new GIC interfaces.- Remove unused bl1_init_bl2_mem_layout().- Migrate to bl31_early_platform_setup2().- Use PLAT_VIRT_ADDR_SPACE_SIZE and PLAT_PH
hikey960: Migrate to new interfaces- Migrate to new GIC interfaces.- Remove unused bl1_init_bl2_mem_layout().- Migrate to bl31_early_platform_setup2().- Use PLAT_VIRT_ADDR_SPACE_SIZE and PLAT_PHY_ADDR_SPACE_SIZE.- Remove references to removed build options.- Update Makefile paths.Change-Id: I583fd893555e6535f32d87ed67bbae430b8e6afeTested-by: Haojian Zhuang <haojian.zhuang@linaro.org>Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960: fix memory overlapped in memory mapMAP_TSP_MEM could be either in SRAM or DRAM. When MAP_TSP_MEM is inDRAM, it's overlapped with MAP_DDR.Since TSP_MEM is always configured in DRAM case
hikey960: fix memory overlapped in memory mapMAP_TSP_MEM could be either in SRAM or DRAM. When MAP_TSP_MEM is inDRAM, it's overlapped with MAP_DDR.Since TSP_MEM is always configured in DRAM case, it meansMAP_OPTEE_PAGEABLE is always disabled. Just remove it.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Hikey960: Change CPU standby state for WFIAt early time, the CPU CA73 retention state has been supported onHikey960. Later we found the system has the hang issue and forresolving this issue Hisi
Hikey960: Change CPU standby state for WFIAt early time, the CPU CA73 retention state has been supported onHikey960. Later we found the system has the hang issue and forresolving this issue Hisilicon released new MCU firmware, butunfortunately the new MCU firmware has side effect and results in theCA73 CPU cannot really enter retention state and roll back to WFI state.After discussion we cannot see the possibility to enable CA73 retentionstate anymore on Hikey960, based on this conclusion we should removethis state supporting from ARM-TF and roll back to WFI state only. Wewill commit one patch to remove CA73 CPU retention state in kernel DTbinding as well.Cc: Daniel Lezcano <daniel.lezcano@linaro.org>Cc: Haojian Zhuang <haojian.zhuang@linaro.org>Cc: Kevin Wang <jean.wangtao@linaro.org>Cc: Vincent Guittot <vincent.guittot@linaro.org>Signed-off-by: Leo Yan <leo.yan@linaro.org>
Fix usage of IMAGE_BLx macrosThese macros are only defined for corresponding image,and they are undefined for other images. It means that we haveto use ifdef or defined() instead of relying on be
Fix usage of IMAGE_BLx macrosThese macros are only defined for corresponding image,and they are undefined for other images. It means that we haveto use ifdef or defined() instead of relying on being 0 by default.Change-Id: Iad11efab9830ddf471599b46286e1c56581ef5a7Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
hikey*: Support Trusted OS extra image (OP-TEE header) parsingSigned-off-by: Victor Chong <victor.chong@linaro.org>
hikey960: Add BL32 (OP-TEE) supportSigned-off-by: Victor Chong <victor.chong@linaro.org>Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
hikey960: migrate to use A53 specific definesThe patch fb7d32e5881ef2445e8fe2305005f5590d4a7cfa migrated the CPUlibraries to have unique defines, prefixing them with the CPU name.This patch migr
hikey960: migrate to use A53 specific definesThe patch fb7d32e5881ef2445e8fe2305005f5590d4a7cfa migrated the CPUlibraries to have unique defines, prefixing them with the CPU name.This patch migrates the hikey960 platform port to use the A53 specificdefines.Change-Id: Id76f544b0b236bbd4974ab5ffa1203f073c20021Signed-off-by: David Cunado <david.cunado@arm.com>
hikey960: support BL31Support BL31 on HiKey960 platform. Implement PSCI.Signed-off-by: Leo Yan <leo.yan@linaro.org>Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
hikey960: support BL1 on hikey960 platformSupport BL1 on HiKey960 platform. When recovery mode is detected,BL1 loads NS BL1U that flushs images into UFS. When normal bootmode is detected, BL1 loa
hikey960: support BL1 on hikey960 platformSupport BL1 on HiKey960 platform. When recovery mode is detected,BL1 loads NS BL1U that flushs images into UFS. When normal bootmode is detected, BL1 loads BL2.Fix for https://github.com/ARM-software/tf-issues/issues/486Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>