D-Cache on a NOR flash device
Davide CASCONE
davide.cascone at st.com
Wed Jun 14 06:57:49 EDT 2006
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
More information about the linux-mtd
mailing list