From: Adrian Hunter <ext-adrian.hunter@nokia.com>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Subject: [PATCH 2/3] ARM: OMAP: Add fields to GPMC for OMAP3
Date: Wed, 06 Aug 2008 09:56:51 +0300 [thread overview]
Message-ID: <48994B33.20006@nokia.com> (raw)
In-Reply-To: <48994A83.8040904@nokia.com>
Add fields wr_access and wr_data_mux_bus.
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
---
arch/arm/mach-omap2/gpmc.c | 5 +++++
include/asm-arm/arch-omap/gpmc.h | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 83984f7..3edcc17 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -217,6 +217,11 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t)
GPMC_SET_ONE(GPMC_CS_CONFIG5, 24, 27, page_burst_access);
+ if (cpu_is_omap34xx()) {
+ GPMC_SET_ONE(GPMC_CS_CONFIG6, 16, 19, wr_data_mux_bus);
+ GPMC_SET_ONE(GPMC_CS_CONFIG6, 24, 28, wr_access);
+ }
+
/* caller is expected to have initialized CONFIG1 to cover
* at least sync vs async
*/
diff --git a/include/asm-arm/arch-omap/gpmc.h b/include/asm-arm/arch-omap/gpmc.h
index 53dc246..2aa1920 100644
--- a/include/asm-arm/arch-omap/gpmc.h
+++ b/include/asm-arm/arch-omap/gpmc.h
@@ -84,6 +84,10 @@ struct gpmc_timings {
u16 access; /* Start-cycle to first data valid delay */
u16 rd_cycle; /* Total read cycle time */
u16 wr_cycle; /* Total write cycle time */
+
+ /* The following are only on OMAP3430 */
+ u16 wr_access; /* WRACCESSTIME */
+ u16 wr_data_mux_bus; /* WRDATAONADMUXBUS */
};
extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);
--
1.5.4.3
next prev parent reply other threads:[~2008-08-06 6:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 8:11 [PATCH] ARM: OMAP: OneNAND for OMAP3 Adrian Hunter
2008-08-01 16:45 ` Paul Walmsley
2008-08-04 6:56 ` Adrian Hunter
2008-08-04 14:02 ` Tony Lindgren
2008-08-06 6:53 ` Adrian Hunter
2008-08-06 6:55 ` [PATCH 1/3] " Adrian Hunter
2008-08-06 6:56 ` Adrian Hunter [this message]
2008-08-06 6:57 ` [PATCH 3/3] ARM: OMAP: Update OneNAND support Adrian Hunter
2008-08-08 8:48 ` [PATCH] ARM: OMAP: OneNAND for OMAP3 Tony Lindgren
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=48994B33.20006@nokia.com \
--to=ext-adrian.hunter@nokia.com \
--cc=linux-omap@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.