u32 speedbin;
int ret;
- /*
- * This can only be done before devm_pm_opp_of_add_table(), or
- * dev_pm_opp_set_config() will WARN_ON()
- */
- if (IS_ERR(devm_clk_get(dev, "core"))) {
+ /* Only handle the core clock when GMU is not in use */
+ if (config->rev.core < 6) {
/*
- * If "core" is absent, go for the legacy clock name.
- * If we got this far in probing, it's a given one of them exists.
+ * This can only be done before devm_pm_opp_of_add_table(), or
+ * dev_pm_opp_set_config() will WARN_ON()
*/
- devm_pm_opp_set_clkname(dev, "core_clk");
- } else
- devm_pm_opp_set_clkname(dev, "core");
+ if (IS_ERR(devm_clk_get(dev, "core"))) {
+ /*
+ * If "core" is absent, go for the legacy clock name.
+ * If we got this far in probing, it's a given one of
+ * them exists.
+ */
+ devm_pm_opp_set_clkname(dev, "core_clk");
+ } else
+ devm_pm_opp_set_clkname(dev, "core");
+ }
adreno_gpu->funcs = funcs;
adreno_gpu->info = adreno_info(config->rev);