* D-Cache on a NOR flash device
@ 2006-06-14 10:57 Davide CASCONE
0 siblings, 0 replies; only message in thread
From: Davide CASCONE @ 2006-06-14 10:57 UTC (permalink / raw)
To: linux-mtd
How can I enable the D-CACHE on a NOR flash device? I have add in the flash probe function (omapflash_probe() in the file drivers/mtd/maps/omap_nor.c) the following instructions:
struct omapflash_info {
struct mtd_partition *parts;
struct mtd_info *mtd;
struct map_info map;
};
...
struct omapflash_info *info;
...
static int __devinit omapflash_probe(struct platform_device *pdev)
{
...
info->map.cached = ioremap_cached(res->starts, size);
if(!info->map.cached ){
printk(KERN_WARNING "Failed to ioremap cached %s\n", info->map.name);
}
...
}
Is it enough?
Thanks in advance,
Davide
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-14 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 10:57 D-Cache on a NOR flash device Davide CASCONE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox