--- /dev/null
+#include <plat/ipp.h>
};
#endif
+#ifdef CONFIG_RK29_IPP
+static struct resource resource_ipp[] = {
+ [0] = {
+ .start = RK30_IPP_PHYS,
+ .end = RK30_IPP_PHYS + RK30_IPP_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = IRQ_IPP,
+ .end = IRQ_IPP,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device device_ipp = {
+ .name = "rk29-ipp",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(resource_ipp),
+ .resource = resource_ipp,
+};
+#endif
+
#ifdef CONFIG_KEYS_RK29
extern struct rk29_keys_platform_data rk29_keys_pdata;
static struct platform_device device_keys = {
#ifdef CONFIG_RGA_RK30
platform_device_register(&device_rga);
#endif
+#ifdef CONFIG_RK29_IPP
+ platform_device_register(&device_ipp);
+#endif
#ifdef CONFIG_LCDC_RK30
platform_device_register(&device_lcdc);
#endif
#ifndef __MACH_MEMORY_H
#define __MACH_MEMORY_H
+#include <linux/version.h>
+
/*
* Physical DRAM offset.
*/
#define SRAM_DATA_OFFSET 0xFEF03000
#define SRAM_DATA_END 0xFEF03FFF
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34))
+#define dmac_clean_range(start, end) dmac_map_area(start, end - start, DMA_TO_DEVICE)
+#define dmac_inv_range(start, end) dmac_unmap_area(start, end - start, DMA_FROM_DEVICE)
+#endif
+
#endif
#include <asm/io.h>\r
#include <linux/irq.h>\r
#include <linux/interrupt.h>\r
-#include <mach/rk29_iomap.h>\r
+#include <mach/io.h>\r
#include <mach/irqs.h>\r
#include <linux/fs.h>\r
#include <asm/uaccess.h>\r
#include <linux/wait.h>\r
#include <linux/syscalls.h>\r
#include <linux/timer.h>\r
-#include <mach/rk29-ipp.h>\r
+#include <plat/ipp.h>\r
#include <linux/time.h>\r
#include <asm/cacheflush.h>\r
#include <linux/slab.h>\r