File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
soc/nuvoton/numaker/m2l31x Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,14 @@ void soc_reset_hook(void)
5757 /* Wait for LIRC clock ready */
5858 CLK_WaitClockReady (CLK_STATUS_LIRCSTB_Msk );
5959
60- #if DT_NODE_HAS_PROP (DT_NODELABEL (scc ), hirc48 )
61- /* Enable/disable 48 MHz high-speed internal RC oscillator (HIRC48 ) */
62- if (DT_ENUM_IDX (DT_NODELABEL (scc ), hirc48 ) == NUMAKER_SCC_CLKSW_ENABLE ) {
63- CLK_EnableXtalRC (CLK_PWRCTL_HIRC48EN_Msk );
64- /* Wait for HIRC48 clock ready */
65- CLK_WaitClockReady (CLK_STATUS_HIRC48STB_Msk );
66- } else if (DT_ENUM_IDX (DT_NODELABEL (scc ), hirc48 ) == NUMAKER_SCC_CLKSW_DISABLE ) {
67- CLK_DisableXtalRC (CLK_PWRCTL_HIRC48EN_Msk );
60+ #if DT_NODE_HAS_PROP (DT_NODELABEL (scc ), hirc48m )
61+ /* Enable/disable 48 MHz high-speed internal RC oscillator (HIRC48M ) */
62+ if (DT_ENUM_IDX (DT_NODELABEL (scc ), hirc48m ) == NUMAKER_SCC_CLKSW_ENABLE ) {
63+ CLK_EnableXtalRC (CLK_PWRCTL_HIRC48MEN_Msk );
64+ /* Wait for HIRC48M clock ready */
65+ CLK_WaitClockReady (CLK_STATUS_HIRC48MSTB_Msk );
66+ } else if (DT_ENUM_IDX (DT_NODELABEL (scc ), hirc48m ) == NUMAKER_SCC_CLKSW_DISABLE ) {
67+ CLK_DisableXtalRC (CLK_PWRCTL_HIRC48MEN_Msk );
6868 }
6969#endif
7070
You can’t perform that action at this time.
0 commit comments