PD #96069: new cts doesn't need change driver name
authorKasin Lee <kasin.li@amlogic.com>
Fri, 15 Aug 2014 07:10:30 +0000 (15:10 +0800)
committereric <eric.zhong@amlogic.com>
Tue, 19 Aug 2014 01:43:59 +0000 (09:43 +0800)
Change-Id: I6eb09b8cbdbae70990f90ffc423c5be5a12e6c68

mali/linux/mali_kernel_linux.c
mali/platform/mpgpu.c

index 4b35bda4389e34f67f919289cd46fe5dfc8c384b..fc71a9a654a36bc62079cb3a6c785e6e4775fc7b 100755 (executable)
@@ -114,7 +114,7 @@ static u32 mali_cpu_clock_last_value[8] = {0,};
 EXPORT_SYMBOL(mali_set_user_setting);
 EXPORT_SYMBOL(mali_get_user_setting);
 
-static char mali_dev_name[] = "mali0"; /* should be const, but the functions we call requires non-cost */
+static char mali_dev_name[] = "mali"; /* should be const, but the functions we call requires non-cost */
 
 /* This driver only supports one Mali device, and this variable stores this single platform device */
 struct platform_device *mali_platform_device = NULL;
index fe0f63753a677f57f345181068e4d0a524af2727..8c63c33c8bc4d04f3628fcfa0da9ac91b2742114 100755 (executable)
@@ -20,6 +20,8 @@
 #include <linux/slab.h>
 #include <linux/list.h>
 
+#include <mach/io.h>
+#include <plat/io.h>
 #include <asm/io.h>
 
 #include <linux/mali/mali_utgard.h>
@@ -32,14 +34,11 @@ static ssize_t domain_stat_read(struct class *class,
 {
        unsigned int val;
 #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8
-       if (mali_pm_statue == 1) {
-               val = mali_pmu_get_status();
-       } else
-               val = 0x7;
+       val = readl((u32 *)(IO_AOBUS_BASE + 0xf0)) & 0xff;
 #else
-       val = 0;
+       val = 0xffffffff;
 #endif
-       return sprintf(buf, "%x\n", val);
+       return sprintf(buf, "%x\n", val>>4);
 }
 
 #if MESON_CPU_TYPE > MESON_CPU_TYPE_MESON6TVD