extern int mali_PP0_int_cnt(void);
extern int mali_PP1_int_cnt(void);
-
+
+#if MESON_CPU_TYPE == MESON_CPU_TYPE_MESON6
static ulong * mali_mm1_regs = NULL;
static ulong * mali_mm2_regs = NULL;
static struct timer_list timer;
return mali_mmu_int_process_state[index];
return 0;
}
+#endif
void malifix_init(void)
{
return;
}
+#if MESON_CPU_TYPE == MESON_CPU_TYPE_MESON6
module_param(mali_pp1_int_count, uint, 0664);
MODULE_PARM_DESC(mali_pp1_int_count, "Mali PP1 interrupt count\n");
module_param(mali_pp2_mmu_int_count, uint, 0664);
MODULE_PARM_DESC(mali_pp2_mmu_int_count, "Mali PP2 mmu interrupt count\n");
+#endif
MODULE_DESCRIPTION("AMLOGIC mali fix driver");
MODULE_LICENSE("GPL");
/* 420 */ 0xad4bda56, 0x038002b5, 0x0007ffe0, 0x00001c10,
/* 430 */ 0xad4ad6b5, 0x038002b5, 0x4007fee0, 0x00001c00
};
-static DEFINE_SPINLOCK(lock);
+
static struct clk *mali_clk = NULL;
#if MESON_CPU_TYPE <= MESON_CPU_TYPE_MESON6
#define MMU_FLAG_PTE_WR_PERMISSION 0x04
//static int mali_revb_flag = -1;
+static DEFINE_SPINLOCK(lock);
extern int mali_revb_flag;
int mali_meson_is_revb(void)
{