The TI UDMA driver has a fixed dependency on the K3 RINGACC driver, which is not necessarily satisfied during COMPILE_TEST as the latter depends on ARCH_K3 being enabled, which is an ARM-only symbol unavailable when compile testing on other architectures. Fix this by selecting the code as needed. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/dma/ti/Kconfig | 6 ++++++ drivers/soc/Makefile | 2 +- drivers/soc/ti/Kconfig | 11 +++++++++++ drivers/soc/ti/Makefile | 4 +++- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig index 78755bb33a45..df705a23bff7 100644 --- a/drivers/dma/ti/Kconfig +++ b/drivers/dma/ti/Kconfig @@ -1,6 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Texas Instruments DMA drivers +# + config TI_K3_UDMA tristate "Texas Instruments UDMA support" depends on ARCH_K3 || COMPILE_TEST + select TI_K3_RINGACC help Enable support for the TI UDMA (Unified DMA) controller. This DMA engine is used in AM65x and j721e. diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index 5b6ebe53c39d..975304cd50b4 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -5,4 +5,4 @@ obj-$(CONFIG_KVX) += kvx/ obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/ obj-$(CONFIG_CPU_SIFIVE) += sifive/ obj-$(CONFIG_SOC_STARFIVE) += starfive/ -obj-$(CONFIG_ARCH_K3) += ti/ +obj-y += ti/ diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 8d2dd86f3fe6..d0aadbce10c3 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -2,3 +2,14 @@ config K3_ESM bool depends on ARCH_K3 && MACH_K3_CORTEX_R5 default y + +config TI_K3_RINGACC + tristate "K3 Ring accelerator Sub System" + depends on ARCH_K3 || COMPILE_TEST + help + Say y here to support the K3 Ring accelerator module. + The Ring Accelerator (RINGACC or RA) provides hardware acceleration + to enable straightforward passing of work between a producer + and a consumer. There is one RINGACC module per NAVSS on TI AM65x SoCs + If unsure, say N. + diff --git a/drivers/soc/ti/Makefile b/drivers/soc/ti/Makefile index 3109a4e9675c..6d6ff4dd2aaf 100644 --- a/drivers/soc/ti/Makefile +++ b/drivers/soc/ti/Makefile @@ -1,2 +1,4 @@ -obj-y += k3-navss-ringacc.o +# SPDX-License-Identifier: GPL-2.0-only + +obj-$(CONFIG_TI_K3_RINGACC) += k3-navss-ringacc.o obj-$(CONFIG_K3_ESM) += k3-esm.o -- 2.39.5