$(MAKE) -C $(shell pwd)/$(PRODUCT_OUT)/obj/KERNEL_OBJ M=$(shell pwd)/$(PRODUCT_OUT)/obj/mali \
ARCH=$(3) CROSS_COMPILE=$(PREFIX_CROSS_COMPILE) CONFIG_MALI400=m CONFIG_MALI450=m \
EXTRA_CFLAGS="-DCONFIG_MALI400=m -DCONFIG_MALI450=m" \
- CONFIG_GPU_THERMAL=y CONFIG_AM_VDEC_H264_4K2K=y modules
+ CONFIG_AM_VDEC_H264_4K2K=y modules
@echo "GPU_MODS_OUT is $(GPU_MODS_OUT)"
mkdir -p $(PRODUCT_OUT)/$(GPU_MODS_OUT)
$(MAKE) -C $(shell pwd)/$(PRODUCT_OUT)/obj/KERNEL_OBJ M=$(shell pwd)/$(MALI_OUT)/ \
ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(PREFIX_CROSS_COMPILE) CONFIG_MALI400=m CONFIG_MALI450=m \
EXTRA_CFLAGS="-DCONFIG_MALI400=m -DCONFIG_MALI450=m" \
- CONFIG_GPU_THERMAL=y CONFIG_AM_VDEC_H264_4K2K=y modules
+ CONFIG_AM_VDEC_H264_4K2K=y modules
@echo "GPU_MODS_OUT is $(GPU_MODS_OUT)"
mkdir -p $(PRODUCT_OUT)/$(GPU_MODS_OUT)
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined (CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined (CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(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
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(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
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(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
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
+#include <linux/gpu_cooling.h>
+#include <linux/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#endif
#include <asm/io.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#include <linux/amlogic/aml_thermal_hw.h>
#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#include <linux/amlogic/aml_thermal_hw.h>
+#endif
#include "mali_scaling.h"
#include "mali_clock.h"
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(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
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_GPU_THERMAL) || defined(CONFIG_AMLOGIC_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <common/mali_ukk.h>
#endif
#endif
+#ifdef CONFIG_AMLOGIC_GPU_THERMAL
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#ifdef CONFIG_DEVFREQ_THERMAL
+#include <linux/amlogic/aml_thermal_hw.h>
+#include <common/mali_ukk.h>
+#endif
+#endif
#include <common/mali_kernel_common.h>
#include <common/mali_osk_profiling.h>
#include <common/mali_pmu.h>
return mali_plat_data.cfg_clock;
}
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
#endif
#endif
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
gcdev->get_online_pp = mali_get_online_pp;
#endif
err = gpufreq_cooling_register(gcdev);
-#ifdef CONFIG_DEVFREQ_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
aml_thermal_min_update(gcdev->cool_dev);
#endif
if (err < 0)
#endif
#include <asm/io.h>
#include <linux/mali/mali_utgard.h>
-#ifdef CONFIG_GPU_THERMAL
+#if defined (CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
#endif
+#if defined (CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#endif
#include <common/mali_kernel_common.h>
#include <common/mali_osk_profiling.h>
#include <common/mali_pmu.h>
INT_MALI_PP)
};
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static void set_limit_mali_freq(u32 idx)
{
if (mali_plat_data.limit_on == 0)
}
#endif
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
static u32 set_limit_pp_num(u32 num)
{
u32 ret = -1;
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;
#include <mach/io.h>
#include <asm/io.h>
#include <linux/mali/mali_utgard.h>
+#if defined(CONFIG_GPU_THERMAL)
#include <linux/gpu_cooling.h>
#include <linux/gpucore_cooling.h>
+#endif
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL)
+#include <linux/amlogic/gpu_cooling.h>
+#include <linux/amlogic/gpucore_cooling.h>
+#endif
+
#include <common/mali_kernel_common.h>
#include <common/mali_osk_profiling.h>
#include <common/mali_pmu.h>
void mali_post_init(void)
{
-#ifdef CONFIG_GPU_THERMAL
+#if defined(CONFIG_AMLOGIC_GPU_THERMAL) || defined(CONFIG_GPU_THERMAL)
int err;
struct gpufreq_cooling_device *gcdev = NULL;
struct gpucore_cooling_device *gccdev = NULL;