/* Get the peripheral clock speed for the USART at base specified.  */
uint32_t rcc_get_usart_clk_freq(uint32_t usart)
/* Get the peripheral clock speed for the USART at base specified.  */
uint32_t rcc_get_usart_clk_freq(uint32_t usart)
{
	if (usart == LPUART1_BASE) {
		return rcc_uart_i2c_clksel_freq_hz(rcc_apb1_frequency, RCC_CCIPR_LPUART1SEL_SHIFT);
	} else if (usart == USART1_BASE) {
		return rcc_uart_i2c_clksel_freq_hz(rcc_apb2_frequency, RCC_CCIPR_USART1SEL_SHIFT);
	} else {
		return rcc_uart_i2c_clksel_freq_hz(rcc_apb1_frequency, RCC_CCIPR_USART2SEL_SHIFT);
	}
}