Change-Id: I6eb09b8cbdbae70990f90ffc423c5be5a12e6c68
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;
#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>
{
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