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:
parent
8a701d5974
commit
01e511c7f7
1 changed files with 5 additions and 1 deletions
|
@ -96,10 +96,14 @@ static void clock_init(void)
|
|||
CLOCK_SetSimConfig(&simConfig_BOARD_BootClockRUN);
|
||||
/* Set SystemCoreClock variable. */
|
||||
SystemCoreClock = DT_PROP(DT_NODELABEL(cpu0), clock_frequency);
|
||||
/* Set LPUART0 clock source. */
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0))
|
||||
/* Set LPUART0 clock source. */
|
||||
CLOCK_SetLpuart0Clock(LPUART_CLOCK_SEL(lpuart0));
|
||||
#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)
|
||||
/* All TPM instances share common clock source for counter clock.
|
||||
* Select the clock source using an arbitrary enabled TPM node.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue