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
# 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
#
# 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
};
/*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
#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,
.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
#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,