|
@@ -15,9 +15,7 @@
|
|
|
#include <linux/types.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/init.h>
|
|
|
-#include <linux/slab.h>
|
|
|
|
|
|
-#include <linux/dma-mapping.h>
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
#include <linux/mtd/map.h>
|
|
|
#include <linux/mtd/partitions.h>
|
|
@@ -26,7 +24,7 @@
|
|
|
#include <asm/hardware.h>
|
|
|
#include <asm/arch/pxa-regs.h>
|
|
|
#include <asm/arch/lubbock.h>
|
|
|
-
|
|
|
+#include <asm/cacheflush.h>
|
|
|
|
|
|
#define ROM_ADDR 0x00000000
|
|
|
#define FLASH_ADDR 0x04000000
|
|
@@ -35,7 +33,7 @@
|
|
|
|
|
|
static void lubbock_map_inval_cache(struct map_info *map, unsigned long from, ssize_t len)
|
|
|
{
|
|
|
- consistent_sync((char *)map->cached + from, len, DMA_FROM_DEVICE);
|
|
|
+ flush_ioremap_region(map->phys, map->cached, from, len);
|
|
|
}
|
|
|
|
|
|
static struct map_info lubbock_maps[2] = { {
|