Skip to content

Commit

Permalink
boards: nxp: frdm_mcxn947
Browse files Browse the repository at this point in the history
Enabled one instance of lptmr
running from the 16k FRO.

Signed-off-by: Emilio Benavente <[email protected]>
  • Loading branch information
EmilioCBen committed May 24, 2024
1 parent de47798 commit b2eba64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxn947/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ static int frdm_mcxn947_init(void)
USB_EhciPhyInit(kUSB_ControllerEhci0, BOARD_XTAL0_CLK_HZ, &usbPhyConfig);
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpadc0), okay)
CLOCK_SetupClk16KClocking(kCLOCK_Clk16KToVsys);
#endif

/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;

Expand Down
3 changes: 3 additions & 0 deletions boards/nxp/frdm_mcxn947/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| USBHS | on-chip | USB device |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |
+-----------+------------+-------------------------------------+


Targets available
==================
Expand Down
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,7 @@
zephyr_udc0: &usb1 {
status = "okay";
};

&lptmr0 {
status = "okay";
};

0 comments on commit b2eba64

Please sign in to comment.