Skip to content

Commit 9d5cceb

Browse files
EmilioCBendleach02
authored andcommitted
boards: nxp: frdm_mcxn947: Enabled MRT
Enabled the MRT at the board level for mcxn947. Enabled the clocking for the MRT in the clock control. Signed-off-by: Emilio Benavente <[email protected]>
1 parent ae354aa commit 9d5cceb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

boards/nxp/frdm_mcxn947/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
101101
| DISPLAY | on-chip | flexio; MIPI-DBI. Tested with |
102102
| | | :ref:`lcd_par_s035` |
103103
+-----------+------------+-------------------------------------+
104+
| MRT | on-chip | counter |
105+
+-----------+------------+-------------------------------------+
104106

105107
Targets available
106108
==================

boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,7 @@ zephyr_udc0: &usb1 {
192192
&flexio0 {
193193
status = "okay";
194194
};
195+
196+
&mrt0_channel0 {
197+
status = "okay";
198+
};

drivers/clock_control/clock_control_mcux_syscon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ static int mcux_lpc_syscon_clock_control_on(const struct device *dev,
2525
#endif /* defined(CONFIG_CAN_MCUX_MCAN) */
2626
#if defined(CONFIG_COUNTER_NXP_MRT)
2727
if ((uint32_t)sub_system == MCUX_MRT_CLK) {
28-
#if defined(CONFIG_SOC_FAMILY_LPC) || defined(CONFIG_SOC_SERIES_RW6XX)
28+
#if defined(CONFIG_SOC_FAMILY_LPC) || defined(CONFIG_SOC_SERIES_RW6XX) ||\
29+
defined(CONFIG_SOC_SERIES_MCXN)
2930
CLOCK_EnableClock(kCLOCK_Mrt);
3031
#elif defined(CONFIG_SOC_FAMILY_NXP_IMXRT)
3132
CLOCK_EnableClock(kCLOCK_Mrt0);

0 commit comments

Comments
 (0)