public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Macro for getting the BASEADDRESS field in omap's gpmc configuration
@ 2011-08-04 15:06 David Wagner
  2011-08-04 15:06 ` [PATCH 2/2] Use existing GPMC macros instead of bit manipulation David Wagner
  2011-08-11 15:00 ` [PATCH 1/2] Macro for getting the BASEADDRESS field in omap's gpmc configuration David Wagner
  0 siblings, 2 replies; 4+ messages in thread
From: David Wagner @ 2011-08-04 15:06 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: David Wagner, LKML, linux-omap, Russell King

BASEADDRESS is located in the 6 lower bits of the CONFIG7 register.
See OMAP 35x Technical Reference Manual, p. 1169.

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
---
 arch/arm/plat-omap/include/plat/gpmc.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h
index 1527929..154456d 100644
--- a/arch/arm/plat-omap/include/plat/gpmc.h
+++ b/arch/arm/plat-omap/include/plat/gpmc.h
@@ -72,6 +72,7 @@
 #define GPMC_CONFIG1_FCLK_DIV3          (GPMC_CONFIG1_FCLK_DIV(2))
 #define GPMC_CONFIG1_FCLK_DIV4          (GPMC_CONFIG1_FCLK_DIV(3))
 #define GPMC_CONFIG7_CSVALID		(1 << 6)
+#define GPMC_CONFIG7_BASEADDRESS(val)	(val & 0x3F)
 
 #define GPMC_DEVICETYPE_NOR		0
 #define GPMC_DEVICETYPE_NAND		2
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-11 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 15:06 [PATCH 1/2] Macro for getting the BASEADDRESS field in omap's gpmc configuration David Wagner
2011-08-04 15:06 ` [PATCH 2/2] Use existing GPMC macros instead of bit manipulation David Wagner
2011-08-04 15:15   ` David Wagner
2011-08-11 15:00 ` [PATCH 1/2] Macro for getting the BASEADDRESS field in omap's gpmc configuration David Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox