public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Komal Shah" <komal_shah802003@yahoo.com>
To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
Cc: david-b@pacbell.net, jzhang@ti.com, tony@atomide.com,
	dwmw2@infradead.org
Subject: [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support.
Date: Fri, 04 Aug 2006 17:03:26 +0530	[thread overview]
Message-ID: <1154691206.14227.267630051@webmail.messagingengine.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Attached patch adds support for TI OMAP242x based H4 EVM
board NOR flash support.

Please review it and give the ack if it is OK.

PS:
Trying lkml this time, as my e-mail id is not considered "good" for linux-mtd :(

---Komal Shah
http://komalshah.blogspot.com

-- 
http://www.fastmail.fm - The way an email service should be


[-- Attachment #2: 0001-OMAP-Add-TI-OMAP242x-NOR-Flash.patch --]
[-- Type: application/octet-stream, Size: 1158 bytes --]

From nobody Mon Sep 17 00:00:00 2001
From: Komal Shah <komal_shah802003@yahoo.com>
Date: Tue, 25 Jul 2006 22:26:05 +0530
Subject: [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support.

Patch adds support for TI OMAP242x (http://www.ti.com/omap)
H4 EVM NOR Flash support.

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>

---

 drivers/mtd/maps/omap_nor.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

7993ebe59b0a4dc8fc1c8ddc39904e0d5eb1be9c
diff --git a/drivers/mtd/maps/omap_nor.c b/drivers/mtd/maps/omap_nor.c
index 418afff..a6e705f 100644
--- a/drivers/mtd/maps/omap_nor.c
+++ b/drivers/mtd/maps/omap_nor.c
@@ -61,12 +61,14 @@ static void omap_set_vpp(struct map_info
 {
 	static int	count;
 
-	if (enable) {
-		if (count++ == 0)
-			OMAP_EMIFS_CONFIG_REG |= OMAP_EMIFS_CONFIG_WP;
-	} else {
-		if (count && (--count == 0))
-			OMAP_EMIFS_CONFIG_REG &= ~OMAP_EMIFS_CONFIG_WP;
+	if (!cpu_is_omap24xx()) {
+		if (enable) {
+			if (count++ == 0)
+				OMAP_EMIFS_CONFIG_REG |= OMAP_EMIFS_CONFIG_WP;
+		} else {
+			if (count && (--count == 0))
+				OMAP_EMIFS_CONFIG_REG &= ~OMAP_EMIFS_CONFIG_WP;
+		}
 	}
 }
 
-- 
1.3.3


             reply	other threads:[~2006-08-04 11:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-04 11:33 Komal Shah [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-25 11:42 [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support Komal Shah

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=1154691206.14227.267630051@webmail.messagingengine.com \
    --to=komal_shah802003@yahoo.com \
    --cc=david-b@pacbell.net \
    --cc=dwmw2@infradead.org \
    --cc=jzhang@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=tony@atomide.com \
    /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