]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk/qcom: apq8016: allow apq8016_clk_init_uart() to be called externally
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 1 Mar 2024 15:00:24 +0000 (15:00 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 1 Mar 2024 15:08:59 +0000 (15:08 +0000)
commitcbf3152f6afff25c25aa69ae06488671ca0aa765
tree95a75f9a43aac12cef86a8972260fc27a072cb25
parentf70ab46df3c2768002fdfc0fca9652af732cd619
clk/qcom: apq8016: allow apq8016_clk_init_uart() to be called externally

When U-Boot as running as the first stage bootloader on MSM8916 devices,
early debug UART requires turning on the clocks (for some reason the
pre-loader turns them off?!).

To simplify developing for this platform, allow the
apq8016_clk_init_uart() function to be called externally. Developers can
call this from the serial_msm debug uart driver to configure the clocks
before the driver model is available.

As it is only possible to enable early debug UART in custom builds of
U-Boot, this solution at least gives developers the option.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/clk/qcom/clock-apq8016.c