hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.h
....@@ -25,7 +25,7 @@
2525 int kbase_devfreq_init(struct kbase_device *kbdev);
2626
2727 void kbase_devfreq_term(struct kbase_device *kbdev);
28
-int kbase_platform_rk_init_opp_table(struct kbase_device *kbdev);
28
+int kbase_devfreq_opp_helper(struct dev_pm_set_opp_data *data);
2929
3030 /**
3131 * kbase_devfreq_force_freq - Set GPU frequency on L2 power on/off.
....@@ -49,7 +49,6 @@
4949 * core mask
5050 * @kbdev: Device pointer
5151 * @freq: Nominal frequency
52
- * @volt: Target voltage in microvolts corresponding to this frequency
5352 * @core_mask: Pointer to u64 to store core mask to
5453 * @freqs: Pointer to array of frequencies
5554 * @volts: Pointer to array of voltages
....@@ -57,7 +56,8 @@
5756 * This function will only perform translation if an operating-points-v2-mali
5857 * table is present in devicetree. If one is not present then it will return an
5958 * untranslated frequency (and corresponding voltage) and all cores enabled.
59
+ * The voltages returned are in micro Volts (uV).
6060 */
6161 void kbase_devfreq_opp_translate(struct kbase_device *kbdev, unsigned long freq,
62
- unsigned long volt, u64 *core_mask, unsigned long *freqs, unsigned long *volts);
62
+ u64 *core_mask, unsigned long *freqs, unsigned long *volts);
6363 #endif /* _BASE_DEVFREQ_H_ */