ION : Add ION to td8801\a22\phonesdk
authorzhanghao <zhanghao@rock-chips.com>
Mon, 19 Dec 2011 02:09:46 +0000 (10:09 +0800)
committerzhanghao <zhanghao@rock-chips.com>
Mon, 19 Dec 2011 02:10:01 +0000 (10:10 +0800)
arch/arm/configs/rk29_a22_defconfig
arch/arm/configs/rk29_phonesdk_defconfig
arch/arm/configs/rk29_td8801_v2_defconfig
arch/arm/mach-rk29/board-rk29-a22.c
arch/arm/mach-rk29/board-rk29-phonesdk.c

index 46a3a989065446ecffe97ffbd14ff4881a3a0266..f2c1803f802ce752866fff6464a81c29246fcf76 100755 (executable)
@@ -272,6 +272,8 @@ CONFIG_SOC_CAMERA=y
 CONFIG_SOC_CAMERA_MT9T111=y
 CONFIG_SOC_CAMERA_GC0309=y
 CONFIG_VIDEO_RK29=y
+CONFIG_ION=y
+CONFIG_ION_ROCKCHIP=y
 CONFIG_FB=y
 CONFIG_FB_RK29=y
 CONFIG_FB_WORK_IPP=y
index 61d129b9a4c6565e58c514869d0b0064e8020512..8f4d09c735193e2171ee6ed46d2881a6968104b2 100755 (executable)
@@ -1641,7 +1641,8 @@ CONFIG_RADIO_ADAPTERS=y
 # Graphics support
 #
 # CONFIG_DRM is not set
-# CONFIG_ION is not set
+CONFIG_ION=y
+CONFIG_ION_ROCKCHIP=y
 # CONFIG_VGASTATE is not set
 # CONFIG_VIDEO_OUTPUT_CONTROL is not set
 CONFIG_FB=y
index 4c9b0242d81eb778b12df49575f13fbe835d2f16..733eb1191a4314a6c732b83c3e4b8340243b0352 100755 (executable)
@@ -1393,6 +1393,9 @@ CONFIG_SMS_SIANO_MDTV=m
 #
 # Graphics support
 #
+# CONFIG_DRM is not set
+CONFIG_ION=y
+CONFIG_ION_ROCKCHIP=y
 # CONFIG_VGASTATE is not set
 # CONFIG_VIDEO_OUTPUT_CONTROL is not set
 CONFIG_FB=y
index 0accc992cf117a9580550d71369103dd3b0e25f6..62918bbb4e6eede8b285ba4ff58cbfca94dd7d52 100755 (executable)
@@ -459,6 +459,29 @@ static struct platform_device rk29_v4l2_output_devce = {
 };
 
 /*HANNSTAR_P1003 touch*/
+
+#ifdef CONFIG_ION
+static struct ion_platform_data rk29_ion_pdata = {
+       .nr = 1,
+       .heaps = {
+               {
+                       .type = ION_HEAP_TYPE_CARVEOUT,
+                       .id = 0,
+                       .name = "ui",
+                       .base = PMEM_UI_BASE,
+                       .size = PMEM_UI_SIZE,
+               }
+       },
+};
+
+static struct platform_device rk29_ion_device = {
+       .name = "ion-rockchip",
+       .id = 0,
+       .dev = {
+               .platform_data = &rk29_ion_pdata,
+       },
+};
+#endif
 #if defined (CONFIG_HANNSTAR_P1003)
 #define TOUCH_RESET_PIN RK29_PIN6_PC3
 #define TOUCH_INT_PIN   RK29_PIN4_PD5
@@ -3188,6 +3211,9 @@ static struct platform_device *devices[] __initdata = {
        #endif
        &rk29_soc_camera_pdrv_1,
        &android_pmem_cam_device,
+#endif
+#ifdef CONFIG_ION
+       &rk29_ion_device,
 #endif
        &android_pmem_device,
        &rk29_vpu_mem_device,
index ff58befc20e204d832c16588c49ed8011a161123..cef8a03d2a93224cbd1da68482de103008050644 100755 (executable)
@@ -437,6 +437,30 @@ static struct platform_device rk29_v4l2_output_devce = {
        .name           = "rk29_vout",
 };
 
+#ifdef CONFIG_ION
+static struct ion_platform_data rk29_ion_pdata = {
+       .nr = 1,
+       .heaps = {
+               {
+                       .type = ION_HEAP_TYPE_CARVEOUT,
+                       .id = 0,
+                       .name = "ui",
+                       .base = PMEM_UI_BASE,
+                       .size = PMEM_UI_SIZE,
+               }
+       },
+};
+
+static struct platform_device rk29_ion_device = {
+       .name = "ion-rockchip",
+       .id = 0,
+       .dev = {
+               .platform_data = &rk29_ion_pdata,
+       },
+};
+#endif
+
+
 /* HANNSTAR_P1003 touch I2C */
 #if defined (CONFIG_HANNSTAR_P1003)
 #define TOUCH_RESET_PIN RK29_PIN6_PC3
@@ -3156,6 +3180,9 @@ static struct platform_device *devices[] __initdata = {
        #endif
        &rk29_soc_camera_pdrv_1,
        &android_pmem_cam_device,
+#endif
+#ifdef CONFIG_ION
+        &rk29_ion_device,
 #endif
        &android_pmem_device,
        &rk29_vpu_mem_device,