summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2026-01-26 22:02:06 +0300
committerThierry Reding <treding@nvidia.com>2026-03-28 03:02:38 +0300
commit656275069fad4bd90b39d5fc163cc5757986900d (patch)
treec68be3b43ea5af99e88e61541e838d462207f4b8
parent8e2a2f5851d33f99a475c1dbd8eae74ef72c517c (diff)
downloadlinux-656275069fad4bd90b39d5fc163cc5757986900d.tar.xz
soc/tegra: common: Add Tegra114 support to devm_tegra_core_dev_init_opp_table
Determine the Tegra114 hardware version using the SoC Speedo ID bit macro, mirroring the approach already used for Tegra30 and Tegra124. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/soc/tegra/common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
index d82b7670abb7..0864eb0185b4 100644
--- a/drivers/soc/tegra/common.c
+++ b/drivers/soc/tegra/common.c
@@ -118,7 +118,8 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
hw_version = BIT(tegra_sku_info.soc_process_id);
config.supported_hw = &hw_version;
config.supported_hw_count = 1;
- } else if (of_machine_is_compatible("nvidia,tegra30")) {
+ } else if (of_machine_is_compatible("nvidia,tegra30") ||
+ of_machine_is_compatible("nvidia,tegra114")) {
hw_version = BIT(tegra_sku_info.soc_speedo_id);
config.supported_hw = &hw_version;
config.supported_hw_count = 1;
@@ -131,7 +132,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
}
/*
- * Tegra114+ doesn't support OPP yet, return early for non tegra20/30
+ * Tegra124+ doesn't support OPP yet, return early for pre-Tegra124
* case.
*/
if (!config.supported_hw)