#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/slab.h>
+#include <mach/hardware.h>
#define _GC_OBJ_ZONE gcvZONE_DEVICE
if (IrqLine != -1) {
device->clk_3d_core = clk_get(NULL, "gpu3d_clk");
if (!IS_ERR(device->clk_3d_core)) {
- device->clk_3d_shader = clk_get(NULL, "gpu3d_shader_clk");
- if (IS_ERR(device->clk_3d_shader)) {
- IrqLine = -1;
- clk_put(device->clk_3d_core);
- device->clk_3d_core = NULL;
- device->clk_3d_shader = NULL;
- gckOS_Print("galcore: clk_get gpu3d_shader_clk failed, disable 3d!\n");
+ if (cpu_is_mx6q()) {
+ device->clk_3d_shader = clk_get(NULL, "gpu3d_shader_clk");
+ if (IS_ERR(device->clk_3d_shader)) {
+ IrqLine = -1;
+ clk_put(device->clk_3d_core);
+ device->clk_3d_core = NULL;
+ device->clk_3d_shader = NULL;
+ gckOS_Print("galcore: clk_get gpu3d_shader_clk failed, disable 3d!\n");
+ }
}
} else {
IrqLine = -1;
#include <asm/atomic.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
+#include <mach/hardware.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
#include <linux/math64.h>
#endif
case gcvCORE_MAJOR:
if (!Os->device->clk_flag[gcvCORE_MAJOR]) {
clk_enable(clk_3dcore);
- clk_enable(clk_3dshader);
+ if (cpu_is_mx6q())
+ clk_enable(clk_3dshader);
}
Os->device->clk_flag[gcvCORE_MAJOR] = gcvTRUE;
break;
switch (Core) {
case gcvCORE_MAJOR:
if (Os->device->clk_flag[gcvCORE_MAJOR]) {
- clk_disable(clk_3dshader);
+ if (cpu_is_mx6q())
+ clk_disable(clk_3dshader);
clk_disable(clk_3dcore);
}
Os->device->clk_flag[gcvCORE_MAJOR] = gcvFALSE;