Commit fe45ab55 authored by Thierry Reding's avatar Thierry Reding

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: default avatarTimo Alho <talho@nvidia.com>
Reviewed-by: default avatarTimo Alho <talho@nvidia.com>
Tested-by: default avatarTimo Alho <talho@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 79d031fc
tegra-bpmp-y = bpmp.o tegra-bpmp-y = bpmp.o
tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC) += bpmp-tegra210.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_186_SOC) += bpmp-tegra186.o
tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC) += bpmp-tegra186.o
tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
obj-$(CONFIG_TEGRA_IVC) += ivc.o obj-$(CONFIG_TEGRA_IVC) += ivc.o
...@@ -23,7 +23,8 @@ struct tegra_bpmp_ops { ...@@ -23,7 +23,8 @@ struct tegra_bpmp_ops {
int (*resume)(struct tegra_bpmp *bpmp); int (*resume)(struct tegra_bpmp *bpmp);
}; };
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
extern const struct tegra_bpmp_ops tegra186_bpmp_ops; extern const struct tegra_bpmp_ops tegra186_bpmp_ops;
#endif #endif
#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC) #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
......
...@@ -813,7 +813,8 @@ static int __maybe_unused tegra_bpmp_resume(struct device *dev) ...@@ -813,7 +813,8 @@ static int __maybe_unused tegra_bpmp_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(tegra_bpmp_pm_ops, NULL, tegra_bpmp_resume); static SIMPLE_DEV_PM_OPS(tegra_bpmp_pm_ops, NULL, tegra_bpmp_resume);
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
static const struct tegra_bpmp_soc tegra186_soc = { static const struct tegra_bpmp_soc tegra186_soc = {
.channels = { .channels = {
.cpu_tx = { .cpu_tx = {
...@@ -859,7 +860,8 @@ static const struct tegra_bpmp_soc tegra210_soc = { ...@@ -859,7 +860,8 @@ static const struct tegra_bpmp_soc tegra210_soc = {
#endif #endif
static const struct of_device_id tegra_bpmp_match[] = { static const struct of_device_id tegra_bpmp_match[] = {
#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC)
{ .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc }, { .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc },
#endif #endif
#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC) #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment