hte: allow building modules with COMPILE_TEST enabled
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Sep 2023 09:46:04 +0000 (11:46 +0200)
committerDipen Patel <dipenp@nvidia.com>
Tue, 3 Oct 2023 20:19:58 +0000 (13:19 -0700)
Allow building all HTE modules with COMPILE_TEST Kconfig option enabled.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
drivers/hte/Kconfig

index cf29e0218bae96452cd2703054d06242dabd8ac1..083e67492bf2e8903e951f10050dd0136f1073c0 100644 (file)
@@ -16,7 +16,7 @@ if HTE
 
 config HTE_TEGRA194
        tristate "NVIDIA Tegra194 HTE Support"
-       depends on ARCH_TEGRA_194_SOC
+       depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
        help
          Enable this option for integrated hardware timestamping engine also
          known as generic timestamping engine (GTE) support on NVIDIA Tegra194
@@ -25,7 +25,7 @@ config HTE_TEGRA194
 
 config HTE_TEGRA194_TEST
         tristate "NVIDIA Tegra194 HTE Test"
-        depends on HTE_TEGRA194
+        depends on (HTE_TEGRA194 || COMPILE_TEST)
         help
          The NVIDIA Tegra194 GTE test driver demonstrates how to use HTE
          framework to timestamp GPIO and LIC IRQ lines.