]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: tegra: bpmp: Fix Tegra234-only builds
authorThierry Reding <treding@nvidia.com>
Tue, 13 Apr 2021 12:23:35 +0000 (14:23 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 11 Jun 2021 11:31:51 +0000 (13:31 +0200)
The tegra186_bpmp_ops symbol is used on Tegra234, so make sure it's
available.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/tegra/Makefile
drivers/firmware/tegra/bpmp-private.h
drivers/firmware/tegra/bpmp.c

index 49c87e00fafb3a8d2e82180e44139d0f1b7fb31a..620cf3fdd60743cf5ff3389b53707c80da95e814 100644 (file)
@@ -3,6 +3,7 @@ tegra-bpmp-y                    = bpmp.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC)        += bpmp-tegra210.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC)        += bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC)        += bpmp-tegra186.o
+tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC)        += bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_DEBUG_FS)  += bpmp-debugfs.o
 obj-$(CONFIG_TEGRA_BPMP)       += tegra-bpmp.o
 obj-$(CONFIG_TEGRA_IVC)                += ivc.o
index 54d560c48398e1a3bb1e8d40e3f7bf070766a598..182bfe39651613cbd56308599380820862f016df 100644 (file)
@@ -24,7 +24,8 @@ struct tegra_bpmp_ops {
 };
 
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
-    IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
+    IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC)
 extern const struct tegra_bpmp_ops tegra186_bpmp_ops;
 #endif
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
index 0742a90cb844eea0f479757ffbd6dad92dad616e..5654c5e9862b13031f274b2c9e67682d897e96b9 100644 (file)
@@ -809,7 +809,8 @@ static const struct dev_pm_ops tegra_bpmp_pm_ops = {
 };
 
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
-    IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
+    IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC)
 static const struct tegra_bpmp_soc tegra186_soc = {
        .channels = {
                .cpu_tx = {