soc: mcxc: Set LPUART1 clock source from clock_init

The clock source for LPUART0 for the MCXC family is already
initialized in the corresponding soc.c -> clock_init().
Initialization for LPUART1 is missing. This is however
necessary if a user wants to configure LPUART1 as the default
console output.

Signed-off-by: Maximilian Werner <maximilian.werner96@gmail.com>
This commit is contained in:
Maximilian Werner 2025-01-24 14:55:19 +01:00 committed by Benjamin Cabé
commit 01e511c7f7

View file

@ -96,10 +96,14 @@ static void clock_init(void)
CLOCK_SetSimConfig(&simConfig_BOARD_BootClockRUN); CLOCK_SetSimConfig(&simConfig_BOARD_BootClockRUN);
/* Set SystemCoreClock variable. */ /* Set SystemCoreClock variable. */
SystemCoreClock = DT_PROP(DT_NODELABEL(cpu0), clock_frequency); SystemCoreClock = DT_PROP(DT_NODELABEL(cpu0), clock_frequency);
/* Set LPUART0 clock source. */
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0)) #if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0))
/* Set LPUART0 clock source. */
CLOCK_SetLpuart0Clock(LPUART_CLOCK_SEL(lpuart0)); CLOCK_SetLpuart0Clock(LPUART_CLOCK_SEL(lpuart0));
#endif #endif
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart1))
/* Set LPUART1 clock source. */
CLOCK_SetLpuart1Clock(LPUART_CLOCK_SEL(lpuart1));
#endif
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_tpm) #if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_tpm)
/* All TPM instances share common clock source for counter clock. /* All TPM instances share common clock source for counter clock.
* Select the clock source using an arbitrary enabled TPM node. * Select the clock source using an arbitrary enabled TPM node.