Skip to contentSkip to conversation

firmware/tegra: add COMPILE_TEST

PATCH New Rosen Penev 1 participant 1 message Mar 26

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 firmware/tegra: add COMPILE_TEST

For this driver specifically, there's no arch specific stuff needed.

Build the tegra clk stuff as tegra_bpmp_init_clocks is defined there. CLK_TEGRA_BPMP also depends on TEGRA_BPMP.

---
v3: add a Kconfig symbol instead.
v2: also build the tegra clk stuff.

 drivers/clk/Kconfig            | 7 +++++++
 drivers/clk/Makefile           | 2 +-
 drivers/firmware/tegra/Kconfig | 4 ++--
 3 files changed, 10 insertions(+), 3 deletions(-)
drivers/clk/Kconfig +7 -0
index 8cc300b90b5f..56295cc2b74f 100644
@@ -335,6 +335,13 @@ config CLK_LS1028A_PLLDIG
           features of the PLL are currently supported by the driver. By default,
           configured bypass mode with this PLL.
 
+config CLK_TEGRA
+	bool "Clock driver for Nvidia Tegra platforms"
+	depends on ARCH_TEGRA || COMPILE_TEST
+	help
+	  This adds the clock driver support for Nvidia Tegra platforms
+	  using common clock framework.
+
 config COMMON_CLK_XGENE
 	bool "Clock driver for APM XGene SoC"
 	default ARCH_XGENE
drivers/clk/Makefile +1 -1
index 3416eea558c6..0e1331bd6295 100644
@@ -154,7 +154,7 @@ obj-$(CONFIG_ARCH_STM32)		+= stm32/
 obj-y					+= starfive/
 obj-$(CONFIG_ARCH_SUNXI)		+= sunxi/
 obj-y					+= sunxi-ng/
-obj-$(CONFIG_ARCH_TEGRA)		+= tegra/
+obj-$(CONFIG_CLK_TEGRA)			+= tegra/
 obj-y					+= tenstorrent/
 obj-$(CONFIG_ARCH_THEAD)		+= thead/
 obj-y					+= ti/
drivers/firmware/tegra/Kconfig +2 -2
index 91f2320c0d0f..ae21f460807d 100644
@@ -3,7 +3,7 @@ menu "Tegra firmware driver"
 
 config TEGRA_IVC
 	bool "Tegra IVC protocol" if COMPILE_TEST
-	depends on ARCH_TEGRA
+	depends on ARCH_TEGRA || COMPILE_TEST
 	help
 	  IVC (Inter-VM Communication) protocol is part of the IPC
 	  (Inter Processor Communication) framework on Tegra. It maintains the
@@ -13,7 +13,7 @@ config TEGRA_IVC
 
 config TEGRA_BPMP
 	bool "Tegra BPMP driver"
-	depends on ARCH_TEGRA && TEGRA_HSP_MBOX
+	depends on (ARCH_TEGRA && TEGRA_HSP_MBOX) || COMPILE_TEST
 	depends on !CPU_BIG_ENDIAN
 	select TEGRA_IVC
 	help

--
2.53.0