All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laine Walker-Avina <lwalkera@ieee.org>
To: linux-omap@vger.kernel.org
Cc: Laine Walker-Avina <lwalkera@ieee.org>
Subject: [PATCH 1/5] OMAP: Add in helper macros for the SDRAM timings
Date: Tue,  6 Apr 2010 09:51:04 -0700	[thread overview]
Message-ID: <1270572668-2336-2-git-send-email-lwalkera@ieee.org> (raw)
In-Reply-To: <1270572668-2336-1-git-send-email-lwalkera@ieee.org>


Signed-off-by: Laine Walker-Avina <lwalkera@ieee.org>
---
 arch/arm/plat-omap/include/plat/sdrc.h |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/sdrc.h b/arch/arm/plat-omap/include/plat/sdrc.h
index 7b76f50..c74d1e7 100644
--- a/arch/arm/plat-omap/include/plat/sdrc.h
+++ b/arch/arm/plat-omap/include/plat/sdrc.h
@@ -124,6 +124,29 @@ struct omap_sdrc_params {
 	u32 mr;
 };
 
+/* Helper macros and defines for the omap_sdrc_params registers */
+#define ACTIM_TRFC(a)		(((a) & 0x1f)<<27)
+#define ACTIM_TRC(a)		(((a) & 0x1f)<<22)
+#define ACTIM_TRAS(a)		(((a) & 0xf)<<18)
+#define ACTIM_TRP(a)		(((a) & 0x3)<<15)
+#define ACTIM_TRCD(a)		(((a) & 0x3)<<12)
+#define ACTIM_TRRD(a)		(((a) & 0x3)<<9)
+#define ACTIM_TDPL(a)		(((a) & 0x3)<<6)
+#define ACTIM_TDAL(a)		(((a) & 0x1f)<<0)
+
+#define ACTIM_TWTR(a)		(((a) & 0x3)<<16)
+#define ACTIM_TCKE(a)		(((a) & 0x7)<<12)
+#define ACTIM_TXP(a)		(((a) & 0x7)<<8)
+#define ACTIM_TXSR(a)		(((a) & 0xff)<<0)
+
+#define RFR_CTRL_ARCV(a)	(((a) & 0xffff)<<8)
+#define RFR_CTRL_ARE(a)		(((a) & 0x3)<<0)
+
+#define MR_WBST(a)			(((a) & 0x1)<<9)
+#define MR_CASL(a)			(((a) & 0x7)<<4)
+#define MR_BL(a)			(((a) & 0x7)<<0)
+
+
 void __init omap2_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
 			    struct omap_sdrc_params *sdrc_cs1);
 int omap2_sdrc_get_params(unsigned long r,
-- 
1.6.3.3


  reply	other threads:[~2010-04-06 17:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06 16:51 [PATCH 0/5] Initial change for merge of new board Laine Walker-Avina
2010-04-06 16:51 ` Laine Walker-Avina [this message]
2010-04-06 16:51   ` [PATCH 2/5] OMAP: Convert the sdram-*.h timings to use the SDRAM timing macros Laine Walker-Avina
2010-04-06 16:51     ` [PATCH 3/5] OMAP: Add SDRAM timings for Micron mt46h16m32lf-6 Laine Walker-Avina
2010-04-06 16:51       ` [PATCH 4/5] OMAP: Add support for setting the divider for sys_clkout2 using clk_set_rate Laine Walker-Avina
2010-04-06 16:51         ` [PATCH 5/5] OMAP: Make set_gpmc_timing_reg aware of the TIMEPARAGRANULARITY flag Laine Walker-Avina
2010-04-06 22:36           ` Kevin Hilman
2010-07-29 21:44             ` [PATCH v2] " Laine Walker-Avina
2010-04-23  0:55         ` [PATCH 4/5] OMAP: Add support for setting the divider for sys_clkout2 using clk_set_rate Paul Walmsley
2010-05-18 22:04           ` Paul Walmsley
2010-04-06 17:17   ` [PATCH 1/5] OMAP: Add in helper macros for the SDRAM timings Felipe Balbi
2010-04-06 17:26     ` Laine Walker-Avina
2010-04-06 17:28       ` Felipe Balbi
2010-04-06 17:31     ` [PATCH v2 " Laine Walker-Avina
2010-04-23  0:48 ` [PATCH 0/5] Initial change for merge of new board Paul Walmsley

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=1270572668-2336-2-git-send-email-lwalkera@ieee.org \
    --to=lwalkera@ieee.org \
    --cc=linux-omap@vger.kernel.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 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.