Skip to content

Commit 33cc27a

Browse files
affenull2345andersson
authored andcommitted
clk: qcom: Add global clock controller driver for MSM8917
This driver provides clocks, resets and power domains needed for various components of the MSM8917 SoC and the very similar QM215 SoC. According to [1] in the downstream kernel, the GPU clock has a different source mapping on QM215 (gcc_gfx3d_map vs gcc_gfx3d_map_qm215). [1]: https://git.codelinaro.org/clo/la/kernel/msm-4.9/-/blob/LF.UM.8.6.2-28000-89xx.0/include/dt-bindings/clock/msm-clocks-hwio-8952.h#L298 Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230223180935.60546-3-otto.pflueger@abscue.de
1 parent 518634f commit 33cc27a

3 files changed

Lines changed: 3314 additions & 0 deletions

File tree

drivers/clk/qcom/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,16 @@ config MSM_GCC_8916
204204
Say Y if you want to use devices such as UART, SPI i2c, USB,
205205
SD/eMMC, display, graphics, camera etc.
206206

207+
config MSM_GCC_8917
208+
tristate "MSM8917/QM215 Global Clock Controller"
209+
depends on ARM64 || COMPILE_TEST
210+
select QCOM_GDSC
211+
help
212+
Support for the global clock controller on msm8917 and qm215
213+
devices.
214+
Say Y if you want to use devices such as UART, SPI i2c, USB,
215+
SD/eMMC, display, graphics, camera etc.
216+
207217
config MSM_GCC_8939
208218
tristate "MSM8939 Global Clock Controller"
209219
select QCOM_GDSC

drivers/clk/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o
3535
obj-$(CONFIG_MSM_GCC_8660) += gcc-msm8660.o
3636
obj-$(CONFIG_MSM_GCC_8909) += gcc-msm8909.o
3737
obj-$(CONFIG_MSM_GCC_8916) += gcc-msm8916.o
38+
obj-$(CONFIG_MSM_GCC_8917) += gcc-msm8917.o
3839
obj-$(CONFIG_MSM_GCC_8939) += gcc-msm8939.o
3940
obj-$(CONFIG_MSM_GCC_8953) += gcc-msm8953.o
4041
obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o

0 commit comments

Comments
 (0)