TD8801 board config : fix vivanta config
authorzhanghao <zhanghao@rock-chips.com>
Fri, 6 Apr 2012 02:10:05 +0000 (10:10 +0800)
committerzhanghao <zhanghao@rock-chips.com>
Fri, 6 Apr 2012 02:10:36 +0000 (10:10 +0800)
arch/arm/mach-rk29/board-rk29-td8801_v2.c

index ccf4658563d47a2dfbea26074169001c44477e06..727824020b7e60180e0a25b658d6833342dcb6ed 100755 (executable)
@@ -3018,7 +3018,9 @@ static struct platform_device rk29sdk_rfkill = {
 };
 
 
-#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",
@@ -3038,6 +3040,13 @@ static struct resource resources_gpu[] = {
         .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",
@@ -3045,7 +3054,7 @@ static struct platform_device rk29_device_gpu = {
     .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 = {
@@ -3302,9 +3311,9 @@ static struct platform_device *devices[] __initdata = {
 #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)