arm: nxp_mpu: enable module's clock only when needed
NXP SYSMPU is used in other SoCs besides the Kinetis series. For devices like S32K1xx, its bus interface clock lacks of clock gating and it's driven by the system clock. Hence, only enable the module clock for the Kinetis series. Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
parent
da3d9197a6
commit
92fb8b2238
|
@ -37,8 +37,10 @@ static uint8_t static_regions_num;
|
|||
/* Global MPU configuration at system initialization. */
|
||||
static void mpu_init(void)
|
||||
{
|
||||
#if defined(CONFIG_SOC_FAMILY_KINETIS)
|
||||
/* Enable clock for the Memory Protection Unit (MPU). */
|
||||
CLOCK_EnableClock(kCLOCK_Sysmpu0);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue