soc: nxp: s32k3: enable clock control
Enable clock control by default on S32K344 SoCs and add clock definitions. Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
parent
523591a3d5
commit
8a47dd5ff8
4 changed files with 164 additions and 10 deletions
|
@ -13,5 +13,6 @@ config SOC_SERIES_S32K3_M7
|
|||
select CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
|
||||
select PLATFORM_SPECIFIC_INIT if XIP
|
||||
select USE_DT_CODE_PARTITION if XIP
|
||||
select CLOCK_CONTROL
|
||||
help
|
||||
Enable support for NXP S32K3 MCUs family on Cortex-M7 cores
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||
|
||||
#include <OsIf.h>
|
||||
#include <Clock_Ip.h>
|
||||
|
||||
#ifdef CONFIG_XIP
|
||||
/* Image Vector Table structure definition for S32K3XX */
|
||||
|
@ -61,15 +60,6 @@ static int soc_init(void)
|
|||
|
||||
OsIf_Init(NULL);
|
||||
|
||||
/*
|
||||
* Clock for MSCM must be enabled first, before all clocks or peripherals
|
||||
* are initialized. Because for now, RTD critical sections need access MSCM
|
||||
* register to determine which core the code is running on.
|
||||
*/
|
||||
Clock_Ip_EnableModuleClock(MSCM_CLK);
|
||||
|
||||
Clock_Ip_Init(Clock_Ip_aClockConfig);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue