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));
|
flexspi_clock_set_freq(MCUX_FLEXSPI_CLK, MHZ(50));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if DT_NODE_HAS_STATUS(DT_NODELABEL(vref), okay)
|
||||||
|
CLOCK_EnableClock(kCLOCK_Vref);
|
||||||
|
SPC_EnableActiveModeAnalogModules(SPC0, kSPC_controlVref);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Set SystemCoreClock variable. */
|
/* Set SystemCoreClock variable. */
|
||||||
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
|
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| USDHC | on-chip | sdhc |
|
| USDHC | on-chip | sdhc |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| VREF | on-chip | REGULATOR |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
Targets available
|
Targets available
|
||||||
==================
|
==================
|
||||||
|
|
|
@ -153,3 +153,7 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&vref {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -24,4 +24,5 @@ supported:
|
||||||
- pwm
|
- pwm
|
||||||
- counter
|
- counter
|
||||||
- sdhc
|
- sdhc
|
||||||
|
- regulator
|
||||||
vendor: nxp
|
vendor: nxp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue