public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Stefan Roese <ml@stefan-roese.de>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] [MTD] physmap: Add support for 64 bit resources on PPC44x
Date: Thu, 18 Jan 2007 18:07:53 +0100 (MET)	[thread overview]
Message-ID: <200701181808.11143.ml@stefan-roese.de> (raw)

[PATCH] [MTD] physmap: Add support for 64 bit resources on PPC44x

This patch adds support for 64 bit resources and can be used on
PPC440 platforms to pass the complete 64 bit address from the
platform file to the physmap driver. This is first used on the
AMCC Taishan 440GX evaluation board.

Signed-off-by: Stefan Roese <sr@denx.de>

---
commit 428858620a600f991662969be6d6b3e3720da1ac
tree cf3c861fbdddd841401a1e66f441623f0b3fb83c
parent d637c5644df789f15dfe06550fab1dddb87083ca
author Stefan Roese <sr@denx.de> Thu, 18 Jan 2007 14:40:53 +0100
committer Stefan Roese <sr@denx.de> Thu, 18 Jan 2007 14:40:53 +0100

 drivers/mtd/maps/physmap.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c
index d171776..23072e3 100644
--- a/drivers/mtd/maps/physmap.c
+++ b/drivers/mtd/maps/physmap.c
@@ -116,7 +116,14 @@ static int physmap_flash_probe(struct platform_device 
*dev)
 	info->map.bankwidth = physmap_data->width;
 	info->map.set_vpp = physmap_data->set_vpp;
 
+#ifdef CONFIG_44x
+	if (sizeof(dev->resource->start) == 4)
+		info->map.virt = ioremap(info->map.phys, info->map.size);
+	else
+		info->map.virt = ioremap64(dev->resource->start, info->map.size);
+#else
 	info->map.virt = ioremap(info->map.phys, info->map.size);
+#endif
 	if (info->map.virt == NULL) {
 		dev_err(&dev->dev, "Failed to ioremap flash region\n");
 		err = EIO;

             reply	other threads:[~2007-01-18 17:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-18 17:07 Stefan Roese [this message]
2007-01-18 17:24 ` [PATCH] [MTD] physmap: Add support for 64 bit resources on PPC44x Sergei Shtylyov
2007-01-18 17:46   ` Stefan Roese
2007-01-18 23:59 ` Lennert Buytenhek
2007-01-19  1:29   ` Josh Boyer
2007-01-19  7:35     ` Stefan Roese

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=200701181808.11143.ml@stefan-roese.de \
    --to=ml@stefan-roese.de \
    --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