mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk/qcom: apq8016: return valid rate when setting UART clock
The clk_init_uart() helper always returns 0, but we're meant to return a real clock rate. Given that we hardcode 115200 baud, just return the clock rate that we set. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
This commit is contained in:
@@ -100,8 +100,8 @@ static ulong apq8016_clk_set_rate(struct clk *clk, ulong rate)
|
||||
return clk_init_sdc(priv, 1, rate);
|
||||
break;
|
||||
case GCC_BLSP1_UART2_APPS_CLK: /* UART2 */
|
||||
return apq8016_clk_init_uart(priv->base);
|
||||
break;
|
||||
apq8016_clk_init_uart(priv->base);
|
||||
return 7372800;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user