#ifdef CONFIG_USB_ANDROID_RNDIS
&rk29_device_rndis,
#endif
-#ifdef CONFIG_RK29_IPP
+
+//#ifdef CONFIG_RK29_IPP
&rk29_device_ipp,
-#endif
+//#endif
+
#ifdef CONFIG_VIDEO_RK29XX_VOUT
&rk29_v4l2_output_devce,
#endif
#ifdef CONFIG_USB_ANDROID_RNDIS
&rk29_device_rndis,
#endif
-#ifdef CONFIG_RK29_IPP
+//#ifdef CONFIG_RK29_IPP
&rk29_device_ipp,
-#endif
+//#endif
#ifdef CONFIG_VIDEO_RK29XX_VOUT
&rk29_v4l2_output_devce,
#endif
.id = -1,
};
-#ifdef CONFIG_RK29_IPP
+
+//#ifdef CONFIG_RK29_IPP
/* rk29 ipp resource */
static struct resource rk29_ipp_resource[] = {
[0] = {
.num_resources = ARRAY_SIZE(rk29_ipp_resource),
.resource = rk29_ipp_resource,
};
-#endif
+//#endif
+
#ifdef CONFIG_USB20_OTG
/*DWC_OTG*/
\r
\r
int ipp_blit_async(const struct rk29_ipp_req *req);\r
-int ipp_blit_sync(const struct rk29_ipp_req *req);\r
+//int ipp_blit_sync(const struct rk29_ipp_req *req);\r
+extern int (*ipp_blit_sync)(const struct rk29_ipp_req *req);\r
#endif /*_RK29_IPP_DRIVER_H_*/
\ No newline at end of file
obj-$(CONFIG_IIO) += iio/
obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio/
#obj-$(CONFIG_VIVANTE) += rk29/vivante/
-obj-$(CONFIG_RK29_IPP) += rk29/ipp/
+obj-y += rk29/ipp/
obj-$(CONFIG_ZRAM) += zram/
obj-$(CONFIG_XVMALLOC) += zram/
obj-$(CONFIG_ZCACHE) += zcache/
menu "IPP"
config RK29_IPP
tristate "ROCKCHIP RK29 IPP"
- default y
+ default m
help
rk29 ipp module.
# Makefile for the ipp.
#
-obj-$(CONFIG_RK29_IPP) += rk29-ipp.o
-rk29ipp-objs := rk29-ipp.o
\ No newline at end of file
+obj-y += rk29-ipp-stub.o
+#obj-$(CONFIG_RK29_IPP) += rk29-ipp.o
+#rk29ipp-objs := rk29-ipp.o
--- /dev/null
+/* drivers/staging/rk29/ipp/rk29-ipp-stub.c\r
+ *\r
+ * Copyright (C) 2010 ROCKCHIP, Inc.\r
+ *\r
+ * This software is licensed under the terms of the GNU General Public\r
+ * License version 2, as published by the Free Software Foundation, and\r
+ * may be copied, distributed, and modified under those terms.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ */\r
+\r
+/*This is a dummy file */\r
+#include <linux/kernel.h>\r
+#include <linux/init.h>\r
+#include <linux/module.h>\r
+#include <linux/platform_device.h>\r
+#include <plat/ipp.h>\r
+\r
+static int ipp_blit_sync_default(const struct rk29_ipp_req *req)\r
+{\r
+ return 0;\r
+}\r
+\r
+int (*ipp_blit_sync)(const struct rk29_ipp_req *req) = ipp_blit_sync_default;\r
+EXPORT_SYMBOL(ipp_blit_sync);\r
#include <asm/cacheflush.h>\r
#include <linux/slab.h>\r
\r
+#define IPP_VERSION "1.000"\r
//#define IPP_TEST\r
#ifdef IPP_TEST\r
\r
return ret;\r
}\r
\r
-int ipp_blit_sync(const struct rk29_ipp_req *req)\r
+static int ipp_blit_sync_real(const struct rk29_ipp_req *req)\r
{\r
int status;\r
int wait_ret;\r
struct ipp_drvdata *data;\r
int ret = 0;\r
\r
-\r
data = kmalloc(sizeof(struct ipp_drvdata), GFP_KERNEL);\r
if(NULL==data)\r
{\r
{\r
int ret;\r
\r
+ //set ipp_blit_sync pointer\r
+ ipp_blit_sync = ipp_blit_sync_real;\r
+ \r
if ((ret = platform_driver_register(&rk29_ipp_driver)) != 0)\r
- {\r
- ERR("Platform device register failed (%d).\n", ret);\r
- return ret;\r
- }\r
- INFO("Module initialized.\n");\r
- return 0;\r
+ {\r
+ ERR("Platform device register failed (%d).\n", ret);\r
+ return ret;\r
+ }\r
+ \r
+ INFO("Module initialized.\n");\r
+ printk("IPP init, version %s\n",IPP_VERSION);\r
+ return 0;\r
}\r
\r
static void __exit rk29_ipp_exit(void)\r
\r
\r
\r
-device_initcall_sync(rk29_ipp_init);\r
+module_init(rk29_ipp_init);\r
module_exit(rk29_ipp_exit);\r
\r
/* Module information */\r
arch/arm/plat-rk/vpu*.c
-drivers/staging/rk29/ipp/rk29-ipp.c
+#drivers/staging/rk29/ipp/rk29-ipp.c
)
EXCLUDES=(
drivers/staging/rk29/vivante
+drivers/staging/rk29/ipp/rk29-ipp.c
+
arch/arm/mach-rk29/board-rk29sdk.c
arch/arm/configs/rk29_sdk_defconfig
arch/arm/configs/rk29_sdk_yaffs2_defconfig