arch: arm: replace PLATFORM_SPECIFIC_INIT with PLATFORM_RESET_HOOK
Use generic hook infrastrucutre instead of custom Kconfig and hooks for ARM. Replace z_arm_platform_init() with platform_reset(). Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e260d03686
commit
f519dd1411
105 changed files with 150 additions and 146 deletions
|
@ -3,7 +3,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_FAMILY_NUMAKER
|
||||
select PLATFORM_SPECIFIC_INIT
|
||||
select SOC_RESET_HOOK
|
||||
|
||||
if SOC_FAMILY_NUMAKER
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
/* Hardware and starter kit includes. */
|
||||
#include <NuMicro.h>
|
||||
|
||||
void z_arm_platform_init(void)
|
||||
void soc_reset_hook(void)
|
||||
{
|
||||
SystemInit();
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
/* Hardware and starter kit includes. */
|
||||
#include <NuMicro.h>
|
||||
|
||||
void z_arm_platform_init(void)
|
||||
void soc_reset_hook(void)
|
||||
{
|
||||
SystemInit();
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Author: Saravanan Sekar <saravanan@linumiz.com>
|
||||
|
||||
config SOC_FAMILY_NUMICRO
|
||||
select PLATFORM_SPECIFIC_INIT
|
||||
select SOC_RESET_HOOK
|
||||
|
||||
if SOC_FAMILY_NUMICRO
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr/init.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
void z_arm_platform_init(void)
|
||||
void soc_reset_hook(void)
|
||||
{
|
||||
SYS_UnlockReg();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue