Skip to content

Commit e9c8ed1

Browse files
DerekSnellfabiobaltieri
authored andcommitted
boards: nxp: frdm_mcxn947 and mcx_n9xx_evk: enable LPADC1 clock
Enable clock for LPADC1. Signed-off-by: Derek Snell <[email protected]>
1 parent 3416ed2 commit e9c8ed1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

boards/nxp/frdm_mcxn947/board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ void board_early_init_hook(void)
300300
CLOCK_AttachClk(kFRO_HF_to_ADC0);
301301
#endif
302302

303+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpadc1))
304+
CLOCK_SetClkDiv(kCLOCK_DivAdc1Clk, 1U);
305+
CLOCK_AttachClk(kFRO_HF_to_ADC1);
306+
#endif
307+
303308
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb1)) && (CONFIG_USB_DC_NXP_EHCI || CONFIG_UDC_NXP_EHCI)
304309
SPC0->ACTIVE_VDELAY = 0x0500;
305310
/* Change the power DCDC to 1.8v (By default, DCDC is 1.8V), CORELDO to 1.1v (By default,

boards/nxp/mcx_n9xx_evk/board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,11 @@ void board_early_init_hook(void)
325325
CLOCK_AttachClk(kFRO_HF_to_ADC0);
326326
#endif
327327

328+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpadc1))
329+
CLOCK_SetClkDiv(kCLOCK_DivAdc1Clk, 1U);
330+
CLOCK_AttachClk(kFRO_HF_to_ADC1);
331+
#endif
332+
328333
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb0)) && (CONFIG_USB_KINETIS || CONFIG_UDC_KINETIS)
329334
CLOCK_AttachClk(kCLK_48M_to_USB0);
330335
CLOCK_EnableClock(kCLOCK_Usb0Ram);

0 commit comments

Comments
 (0)