]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk/qcom: use function pointers for enable and set_rate
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 7 Nov 2023 12:41:03 +0000 (12:41 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:24 +0000 (12:26 +0000)
commit37ea1343ac92e614d40279273e35920a4827c310
treecfd44739bba6bc6f7e8ecd61ba97e42ae9132104
parent0e7fec02ce49556da2f045a8d04c69f2ae9fbd93
clk/qcom: use function pointers for enable and set_rate

Currently, it isn't possible to build clock drivers for more than one
platform due to how the msm_enable() and msm_set_rate() callbacks are
implemented.

Extend qcom_clk_data to include function pointers for these and convert
all platforms to use them.

Previously, clock drivers relied on include/configs/<board.h> to include the
board specific sysmap header, however as most of the header contents are clock
driver related, import the contents directly into each clock driver and
remove the header. The only exception here is the dragonboard820c board file
which includes some pinctrl macros, those are also inlined.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
[caleb: remove additional sysmap-sdm845.h mention]
17 files changed:
arch/arm/mach-snapdragon/include/mach/sysmap-apq8016.h [deleted file]
arch/arm/mach-snapdragon/include/mach/sysmap-apq8096.h [deleted file]
arch/arm/mach-snapdragon/include/mach/sysmap-qcs404.h [deleted file]
arch/arm/mach-snapdragon/include/mach/sysmap-sdm845.h [deleted file]
board/qualcomm/dragonboard820c/dragonboard820c.c
drivers/clk/qcom/clock-apq8016.c
drivers/clk/qcom/clock-apq8096.c
drivers/clk/qcom/clock-ipq4019.c
drivers/clk/qcom/clock-qcom.c
drivers/clk/qcom/clock-qcom.h
drivers/clk/qcom/clock-qcs404.c
drivers/clk/qcom/clock-sdm845.c
include/configs/dragonboard410c.h
include/configs/dragonboard820c.h
include/configs/dragonboard845c.h
include/configs/qcs404-evb.h
include/configs/sdm845.h