boards: nxp/frdm_mcxn947: Support vref for NXP frdm_mcxn947

Support vref for NXP frdm_mcxn947

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
Zhaoxiang Jin 2024-04-19 08:52:25 +08:00 committed by Carles Cufí
commit 979d90bb95
4 changed files with 12 additions and 0 deletions

View file

@ -205,6 +205,11 @@ static int frdm_mcxn947_init(void)
flexspi_clock_set_freq(MCUX_FLEXSPI_CLK, MHZ(50));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(vref), okay)
CLOCK_EnableClock(kCLOCK_Vref);
SPC_EnableActiveModeAnalogModules(SPC0, kSPC_controlVref);
#endif
/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;