#include <linux/module.h>
#include <linux/cpufreq.h>
+#include <linux/rockchip/cpu.h>
#include <linux/rockchip/dvfs.h>
/*author@xxm*/
_mali_osk_errcode_t mali_platform_init(void)
{
+ if (cpu_is_rk3036())
+ MALI_SUCCESS;
+
MALI_CHECK(init_mali_clock(), _MALI_OSK_ERR_FAULT);
clockSetlock = _mali_osk_mutex_init(_MALI_OSK_LOCKFLAG_ORDERED,_MALI_OSK_LOCK_ORDER_UTILIZATION);
_mali_osk_errcode_t mali_platform_deinit(void)
{
+ if (cpu_is_rk3036())
+ MALI_SUCCESS;
+
deinit_mali_clock();
_mali_osk_mutex_term(clockSetlock);
}
_mali_osk_errcode_t mali_power_domain_control(u32 bpower_off)
{
+ if (cpu_is_rk3036())
+ MALI_SUCCESS;
+
if (!bpower_off)
{
if(!gpu_power_state)
void mali_gpu_utilization_handler(struct mali_gpu_utilization_data *data)
{
+ if (cpu_is_rk3036())
+ return;
+
if(data->utilization_pp > 256)
return;
utilization_global = data->utilization_pp;
#include <linux/workqueue.h>
#include <linux/dma-mapping.h>
+#include <linux/rockchip/cpu.h>
+
static int num_cores_total;
static int num_cores_enabled;
static void mali_platform_device_release(struct device *device);
};
static void mali_platform_device_add_config(struct platform_device *pdev)
{
+ if (cpu_is_rk3036())
+ mali_gpu_device_device_type.pm = NULL;
pdev->dev.id = 0;
pdev->dev.release = mali_platform_device_release;
pdev->dev.type = &mali_gpu_device_device_type;