]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk/qcom: apq8016: return valid rate when setting UART clock
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 15 Apr 2024 15:03:38 +0000 (16:03 +0100)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 23 Apr 2024 11:29:14 +0000 (13:29 +0200)
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>
drivers/clk/qcom/clock-apq8016.c

index 5a5868169c8979d667a2f4cd929078c9de60f7b4..6210fba8798475fdf53cd8cada948310386865c0 100644 (file)
@@ -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;
        }