@@ -213,10 +213,34 @@ uint32_t get_uart_clock_freq(UART_Type *base)
213
213
uint32_t pre , post ;
214
214
215
215
switch ((uint32_t )base ) {
216
+ case UART1_BASE :
217
+ root = CCM_GetRootMux (CCM , ccmRootUart1 );
218
+ CCM_GetRootDivider (CCM , ccmRootUart1 , & pre , & post );
219
+ break ;
216
220
case UART2_BASE :
217
221
root = CCM_GetRootMux (CCM , ccmRootUart2 );
218
222
CCM_GetRootDivider (CCM , ccmRootUart2 , & pre , & post );
219
223
break ;
224
+ case UART3_BASE :
225
+ root = CCM_GetRootMux (CCM , ccmRootUart3 );
226
+ CCM_GetRootDivider (CCM , ccmRootUart3 , & pre , & post );
227
+ break ;
228
+ case UART4_BASE :
229
+ root = CCM_GetRootMux (CCM , ccmRootUart4 );
230
+ CCM_GetRootDivider (CCM , ccmRootUart4 , & pre , & post );
231
+ break ;
232
+ case UART5_BASE :
233
+ root = CCM_GetRootMux (CCM , ccmRootUart5 );
234
+ CCM_GetRootDivider (CCM , ccmRootUart5 , & pre , & post );
235
+ break ;
236
+ case UART6_BASE :
237
+ root = CCM_GetRootMux (CCM , ccmRootUart6 );
238
+ CCM_GetRootDivider (CCM , ccmRootUart6 , & pre , & post );
239
+ break ;
240
+ case UART7_BASE :
241
+ root = CCM_GetRootMux (CCM , ccmRootUart7 );
242
+ CCM_GetRootDivider (CCM , ccmRootUart7 , & pre , & post );
243
+ break ;
220
244
default :
221
245
return 0 ;
222
246
}
0 commit comments