Skip to content

Commit fe45ab5

Browse files
committed
firmware/tegra: Enable Tegra186 BPMP support on Tegra194
The BPMP implementation on Tegra194 is mostly compatible with the implementation on Tegra186, so make sure the latter is available when support for Tegra194 is enabled. Suggested-by: Timo Alho <talho@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 79d031f commit fe45ab5

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎drivers/firmware/tegra/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tegra-bpmp-y = bpmp.o
22
tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC) += bpmp-tegra210.o
33
tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC) += bpmp-tegra186.o
4+
tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC) += bpmp-tegra186.o
45
tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
56
obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
67
obj-$(CONFIG_TEGRA_IVC) += ivc.o

‎drivers/firmware/tegra/bpmp-private.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ struct tegra_bpmp_ops {
2323
int (*resume)(struct tegra_bpmp *bpmp);
2424
};
2525

26-
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
26+
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
27+
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
2728
extern const struct tegra_bpmp_ops tegra186_bpmp_ops;
2829
#endif
2930
#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)

‎drivers/firmware/tegra/bpmp.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,8 @@ static int __maybe_unused tegra_bpmp_resume(struct device *dev)
813813

814814
static SIMPLE_DEV_PM_OPS(tegra_bpmp_pm_ops, NULL, tegra_bpmp_resume);
815815

816-
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
816+
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
817+
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
817818
static const struct tegra_bpmp_soc tegra186_soc = {
818819
.channels = {
819820
.cpu_tx = {
@@ -859,7 +860,8 @@ static const struct tegra_bpmp_soc tegra210_soc = {
859860
#endif
860861

861862
static const struct of_device_id tegra_bpmp_match[] = {
862-
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
863+
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
864+
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
863865
{ .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc },
864866
#endif
865867
#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)

0 commit comments

Comments
 (0)