};
-#ifdef CONFIG_VIVANTE
+//#ifdef CONFIG_VIVANTE
+#define GPU_HIGH_CLOCK 552
+#define GPU_LOW_CLOCK (periph_pll_default / 1000000) /* same as */
static struct resource resources_gpu[] = {
[0] = {
.name = "gpu_irq",
.end = PMEM_GPU_BASE + PMEM_GPU_SIZE - 1,
.flags = IORESOURCE_MEM,
},
+ [3] = {
+ .name = "gpu_clk",
+ .start = GPU_LOW_CLOCK,
+ .end = GPU_HIGH_CLOCK,
+ .flags = IORESOURCE_IO,
+ },
+
};
static struct platform_device rk29_device_gpu = {
.name = "galcore",
.num_resources = ARRAY_SIZE(resources_gpu),
.resource = resources_gpu,
};
-#endif
+//#endif
#ifdef CONFIG_KEYS_RK29
extern struct rk29_keys_platform_data rk29_keys_pdata;
static struct platform_device rk29_device_keys = {
#ifdef CONFIG_RK29_VMAC
&rk29_device_vmac,
#endif
-#ifdef CONFIG_VIVANTE
+//#ifdef CONFIG_VIVANTE
&rk29_device_gpu,
-#endif
+//#endif
#ifdef CONFIG_VIDEO_RK29
&rk29_device_camera, /* ddl@rock-chips.com : camera support */
#if (CONFIG_SENSOR_IIC_ADDR_0 != 0x00)