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:
parent
71c60a84f1
commit
979d90bb95
4 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue