* [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support.
@ 2006-07-25 11:42 Komal Shah
0 siblings, 0 replies; 2+ messages in thread
From: Komal Shah @ 2006-07-25 11:42 UTC (permalink / raw)
To: linux-mtd, tony; +Cc: david-b, jzhang, dwmw2
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
David/Tony,
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.
---Komal Shah
http://komalshah.blogspot.com
--
http://www.fastmail.fm - mmm... Fastmail...
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support.
@ 2006-08-04 11:33 Komal Shah
0 siblings, 0 replies; 2+ messages in thread
From: Komal Shah @ 2006-08-04 11:33 UTC (permalink / raw)
To: linux-kernel, linux-mtd; +Cc: david-b, jzhang, tony, dwmw2
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-04 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 11:33 [PATCH] OMAP: Add TI OMAP242x H4 EVM NOR flash support Komal Shah
-- strict thread matches above, loose matches on Subject: below --
2006-07-25 11:42 Komal Shah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox