[PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support.

Komal Shah
2006-08-04T11:33:37Z

[-- 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