HAL: Expand the scope of tfm_hal_platform_init API
Several legacy HAL APIs are doing the platform initializations:
- tfm_spm_hal_enable_fault_handlers
- tfm_spm_hal_system_reset_cfg
- tfm_spm_hal_init_debug
- tfm_spm_hal_nvic_interrupt_target_state_cfg
- tfm_spm_hal_nvic_interrupt_enable
This patch moves all platform initializations that should be done
*before* SPM initialization into the tfm_hal_platform_init().
Note:
Not all platforms have initializations for the above APIs.
Change-Id: Id0e7221b1eb0e648b25ffa99cf3847beefac93c3
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
21 files changed