From: Davide CASCONE <davide.cascone@st.com>
To: <linux-mtd@lists.infradead.org>
Subject: D-Cache on a NOR flash device
Date: Wed, 14 Jun 2006 12:57:49 +0200 [thread overview]
Message-ID: <000601c68fa1$60960970$253682a4@nap.st.com> (raw)
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
reply other threads:[~2006-06-14 11:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000601c68fa1$60960970$253682a4@nap.st.com' \
--to=davide.cascone@st.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox