#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
-#include <linux/gpu_cooling.h>
-#include <linux/gpucore_cooling.h>
-#include <linux/amlogic/aml_thermal_hw.h>
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/meson_cooldev.h>
#endif
#include "mali_scaling.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#endif
err = gpufreq_cooling_register(gcdev);
#ifdef CONFIG_DEVFREQ_THERMAL
- aml_thermal_min_update(gcdev->cool_dev);
+ meson_gcooldev_min_update(gcdev->cool_dev);
#endif
if (err < 0)
printk("register GPU cooling error\n");
gccdev->set_max_pp_num=set_limit_pp_num;
err = (int)gpucore_cooling_register(gccdev);
#ifdef CONFIG_DEVFREQ_THERMAL
- aml_thermal_min_update(gccdev->cool_dev);
+ meson_gcooldev_min_update(gccdev->cool_dev);
#endif
if (err < 0)
printk("register GPU cooling error\n");
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
-#include <linux/gpu_cooling.h>
-#include <linux/gpucore_cooling.h>
-#include <linux/amlogic/aml_thermal_hw.h>
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+//#include <linux/amlogic/aml_thermal_hw.h>
+#include <linux/amlogic/meson_cooldev.h>
#endif
#include "mali_scaling.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#endif
err = gpufreq_cooling_register(gcdev);
#ifdef CONFIG_DEVFREQ_THERMAL
- aml_thermal_min_update(gcdev->cool_dev);
+ meson_gcooldev_min_update(gcdev->cool_dev);
#endif
if (err < 0)
printk("register GPU cooling error\n");
gccdev->set_max_pp_num=set_limit_pp_num;
err = (int)gpucore_cooling_register(gccdev);
#ifdef CONFIG_DEVFREQ_THERMAL
- aml_thermal_min_update(gccdev->cool_dev);
+ meson_gcooldev_min_update(gccdev->cool_dev);
#endif
if (err < 0)
printk("register GPU cooling error\n");