soc: rt6xx: Add NXP MRT
Add NXP MRT to RT6xx DT definition and add peripheral reset to soc.c Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
ff83745c9a
commit
93c59793c2
|
@ -458,6 +458,38 @@
|
|||
#address-cells = <3>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
mrt: mrt@2d000 {
|
||||
compatible = "nxp,mrt";
|
||||
reg = <0x2d000 0x100>;
|
||||
interrupts = <9 0>;
|
||||
num-channels = <4>;
|
||||
num-bits = <24>;
|
||||
clocks = <&clkctl1 MCUX_MRT_CLK>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
mrt_channel0: mrt_channel@0 {
|
||||
compatible = "nxp,mrt-channel";
|
||||
reg = <0>;
|
||||
status = "disabled";
|
||||
};
|
||||
mrt_channel1: mrt_channel@1 {
|
||||
compatible = "nxp,mrt-channel";
|
||||
reg = <1>;
|
||||
status = "disabled";
|
||||
};
|
||||
mrt_channel2: mrt_channel@2 {
|
||||
compatible = "nxp,mrt-channel";
|
||||
reg = <2>;
|
||||
status = "disabled";
|
||||
};
|
||||
mrt_channel3: mrt_channel@3 {
|
||||
compatible = "nxp,mrt-channel";
|
||||
reg = <3>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&flexspi {
|
||||
|
|
|
@ -321,6 +321,10 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
flexspi_setup_clock(FLEXSPI, 1U, 9U);
|
||||
#endif
|
||||
|
||||
#if CONFIG_COUNTER_NXP_MRT
|
||||
RESET_PeripheralReset(kMRT0_RST_SHIFT_RSTn);
|
||||
#endif
|
||||
|
||||
/* Set SystemCoreClock variable. */
|
||||
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
|
||||
|
||||
|
|
Loading…
Reference in a new issue