512d4a26ab
When CONFIG_COMPILE_TEST is set, it is possible to build some
of the interconnect drivers into the kernel while their dependencies
are loadable modules, which is bad:
arm-linux-gnueabi-ld: drivers/interconnect/qcom/bcm-voter.o: in function `qcom_icc_bcm_voter_commit':
(.text+0x1f8): undefined reference to `rpmh_invalidate'
arm-linux-gnueabi-ld: (.text+0x20c): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: (.text+0x2b0): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: (.text+0x2e8): undefined reference to `rpmh_write_batch'
arm-linux-gnueabi-ld: drivers/interconnect/qcom/icc-rpmh.o: in function `qcom_icc_bcm_init':
(.text+0x2ac): undefined reference to `cmd_db_read_addr'
arm-linux-gnueabi-ld: (.text+0x2c8): undefined reference to `cmd_db_read_aux_data'
The exact dependencies are a bit complicated, so split them out into a
hidden Kconfig symbol that all drivers can in turn depend on to get it
right.
Fixes: 976daac4a1
("interconnect: qcom: Consolidate interconnect RPMh support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20201204165030.3747484-1-arnd@kernel.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
97 lines
2.9 KiB
Plaintext
97 lines
2.9 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config INTERCONNECT_QCOM
|
|
bool "Qualcomm Network-on-Chip interconnect drivers"
|
|
depends on ARCH_QCOM
|
|
help
|
|
Support for Qualcomm's Network-on-Chip interconnect hardware.
|
|
|
|
config INTERCONNECT_QCOM_BCM_VOTER
|
|
tristate
|
|
|
|
config INTERCONNECT_QCOM_MSM8916
|
|
tristate "Qualcomm MSM8916 interconnect driver"
|
|
depends on INTERCONNECT_QCOM
|
|
depends on QCOM_SMD_RPM
|
|
select INTERCONNECT_QCOM_SMD_RPM
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on msm8916-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_MSM8974
|
|
tristate "Qualcomm MSM8974 interconnect driver"
|
|
depends on INTERCONNECT_QCOM
|
|
depends on QCOM_SMD_RPM
|
|
select INTERCONNECT_QCOM_SMD_RPM
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on msm8974-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_OSM_L3
|
|
tristate "Qualcomm OSM L3 interconnect driver"
|
|
depends on INTERCONNECT_QCOM || COMPILE_TEST
|
|
help
|
|
Say y here to support the Operating State Manager (OSM) interconnect
|
|
driver which controls the scaling of L3 caches on Qualcomm SoCs.
|
|
|
|
config INTERCONNECT_QCOM_QCS404
|
|
tristate "Qualcomm QCS404 interconnect driver"
|
|
depends on INTERCONNECT_QCOM
|
|
depends on QCOM_SMD_RPM
|
|
select INTERCONNECT_QCOM_SMD_RPM
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on qcs404-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_RPMH_POSSIBLE
|
|
tristate
|
|
default INTERCONNECT_QCOM
|
|
depends on QCOM_RPMH || (COMPILE_TEST && !QCOM_RPMH)
|
|
depends on QCOM_COMMAND_DB || (COMPILE_TEST && !QCOM_COMMAND_DB)
|
|
depends on OF || COMPILE_TEST
|
|
help
|
|
Compile-testing RPMH drivers is possible on other platforms,
|
|
but in order to avoid link failures, drivers must not be built-in
|
|
when QCOM_RPMH or QCOM_COMMAND_DB are loadable modules
|
|
|
|
config INTERCONNECT_QCOM_RPMH
|
|
tristate
|
|
|
|
config INTERCONNECT_QCOM_SC7180
|
|
tristate "Qualcomm SC7180 interconnect driver"
|
|
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
|
|
select INTERCONNECT_QCOM_RPMH
|
|
select INTERCONNECT_QCOM_BCM_VOTER
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on sc7180-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_SDM845
|
|
tristate "Qualcomm SDM845 interconnect driver"
|
|
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
|
|
select INTERCONNECT_QCOM_RPMH
|
|
select INTERCONNECT_QCOM_BCM_VOTER
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on sdm845-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_SM8150
|
|
tristate "Qualcomm SM8150 interconnect driver"
|
|
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
|
|
select INTERCONNECT_QCOM_RPMH
|
|
select INTERCONNECT_QCOM_BCM_VOTER
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on sm8150-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_SM8250
|
|
tristate "Qualcomm SM8250 interconnect driver"
|
|
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
|
|
select INTERCONNECT_QCOM_RPMH
|
|
select INTERCONNECT_QCOM_BCM_VOTER
|
|
help
|
|
This is a driver for the Qualcomm Network-on-Chip on sm8250-based
|
|
platforms.
|
|
|
|
config INTERCONNECT_QCOM_SMD_RPM
|
|
tristate
|