nxp_s32: enable clock control for S32ZE

Enable clock control driver for NXP S32ZE SoCs and add clock sources
definitions for devicetree.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-09-15 13:40:02 +07:00 committed by Fabio Baltieri
commit 7fca0aa8a6
5 changed files with 318 additions and 19 deletions

View file

@ -14,5 +14,6 @@ config SOC_SERIES_S32ZE_R52
select VFP_DP_D16
select PLATFORM_SPECIFIC_INIT
select SOC_FAMILY_NXP_S32
select CLOCK_CONTROL
help
Enable support for NXP S32Z/E MCUs family on Cortex-R52 cores.

View file

@ -26,14 +26,6 @@ config SOC_PART_NUMBER_S32ZE_R52
that you should not set directly. The part number selection choice defines
the default value for this string.
config INIT_CLOCK_AT_BOOT_TIME
bool "Initialize clocks at boot time"
default y
help
Initialize clocks at boot time with the configuration generated through the
driver's configurator, instead of using the default SoC clock configuration
at reset.
config NXP_S32_RTU_INDEX
int
range 0 1

View file

@ -12,11 +12,6 @@
#include <OsIf.h>
#ifdef CONFIG_INIT_CLOCK_AT_BOOT_TIME
#include <Clock_Ip.h>
#include <Clock_Ip_Cfg.h>
#endif
void z_arm_platform_init(void)
{
/* enable peripheral port access at EL1 and EL0 */
@ -47,11 +42,6 @@ static int soc_init(void)
{
OsIf_Init(NULL);
#ifdef CONFIG_INIT_CLOCK_AT_BOOT_TIME
/* Initialize clocks with tool generated code */
Clock_Ip_Init(Clock_Ip_aClockConfig);
#endif
return 0;
}