Skip to content

Commit 976daac

Browse files
David DaiGeorgi Djakov
authored andcommitted
interconnect: qcom: Consolidate interconnect RPMh support
Add bcm voter driver and add support for RPMh specific interconnect providers which implements the set and aggregate functionalities that translates bandwidth requests into RPMh messages. These modules provide a common set of functionalities for all Qualcomm RPMh based interconnect providers and should help reduce code duplication when adding new providers. Signed-off-by: David Dai <[email protected]> Signed-off-by: Odelu Kukatla <[email protected]> Reviewed-by: Evan Green <[email protected]> Signed-off-by: Sibi Sankar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 6f690e1 commit 976daac

File tree

6 files changed

+704
-0
lines changed

6 files changed

+704
-0
lines changed

drivers/interconnect/qcom/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ config INTERCONNECT_QCOM
55
help
66
Support for Qualcomm's Network-on-Chip interconnect hardware.
77

8+
config INTERCONNECT_QCOM_BCM_VOTER
9+
tristate
10+
811
config INTERCONNECT_QCOM_MSM8916
912
tristate "Qualcomm MSM8916 interconnect driver"
1013
depends on INTERCONNECT_QCOM
@@ -32,10 +35,15 @@ config INTERCONNECT_QCOM_QCS404
3235
This is a driver for the Qualcomm Network-on-Chip on qcs404-based
3336
platforms.
3437

38+
config INTERCONNECT_QCOM_RPMH
39+
tristate
40+
3541
config INTERCONNECT_QCOM_SDM845
3642
tristate "Qualcomm SDM845 interconnect driver"
3743
depends on INTERCONNECT_QCOM
3844
depends on (QCOM_RPMH && QCOM_COMMAND_DB && OF) || COMPILE_TEST
45+
select INTERCONNECT_QCOM_RPMH
46+
select INTERCONNECT_QCOM_BCM_VOTER
3947
help
4048
This is a driver for the Qualcomm Network-on-Chip on sdm845-based
4149
platforms.

drivers/interconnect/qcom/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3+
icc-bcm-voter-objs := bcm-voter.o
34
qnoc-msm8916-objs := msm8916.o
45
qnoc-msm8974-objs := msm8974.o
56
qnoc-qcs404-objs := qcs404.o
7+
icc-rpmh-obj := icc-rpmh.o
68
qnoc-sdm845-objs := sdm845.o
79
icc-smd-rpm-objs := smd-rpm.o
810

11+
obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o
912
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o
1013
obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o
1114
obj-$(CONFIG_INTERCONNECT_QCOM_QCS404) += qnoc-qcs404.o
15+
obj-$(CONFIG_INTERCONNECT_QCOM_RPMH) += icc-rpmh.o
1216
obj-$(CONFIG_INTERCONNECT_QCOM_SDM845) += qnoc-sdm845.o
1317
obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o

0 commit comments

Comments
 (0)