Skip to content

Commit 6562750

Browse files
clamor-sthierryreding
authored andcommitted
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>
1 parent 8e2a2f5 commit 6562750

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/soc/tegra/common.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
118118
hw_version = BIT(tegra_sku_info.soc_process_id);
119119
config.supported_hw = &hw_version;
120120
config.supported_hw_count = 1;
121-
} else if (of_machine_is_compatible("nvidia,tegra30")) {
121+
} else if (of_machine_is_compatible("nvidia,tegra30") ||
122+
of_machine_is_compatible("nvidia,tegra114")) {
122123
hw_version = BIT(tegra_sku_info.soc_speedo_id);
123124
config.supported_hw = &hw_version;
124125
config.supported_hw_count = 1;
@@ -131,7 +132,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
131132
}
132133

133134
/*
134-
* Tegra114+ doesn't support OPP yet, return early for non tegra20/30
135+
* Tegra124+ doesn't support OPP yet, return early for pre-Tegra124
135136
* case.
136137
*/
137138
if (!config.supported_hw)

0 commit comments

Comments
 (0)