diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2008-09-09 04:19:42 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-09-09 06:13:52 -0400 |
commit | 2cf842b8967b5a9989a12e6105da9a82d24e5777 (patch) | |
tree | 5fe2dd145a57cfa260225559abb045d2dbe62df4 /arch/arm/plat-mxc/include/mach/mxc.h | |
parent | 7113cdcdc1842d797ea99af8b57606a069945f16 (diff) |
mxc: add cscr register defintions
This adds macros to get CSCR upper, lower and additional registers.
These registers are needed to configure a chip select line. The offset
layouts of these Registers are identical on mx27 and mx31, hence we can
use the macros in generic way
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/mxc.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mxc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h index 332eda4dbd3b..f6caab062131 100644 --- a/arch/arm/plat-mxc/include/mach/mxc.h +++ b/arch/arm/plat-mxc/include/mach/mxc.h | |||
@@ -33,4 +33,10 @@ | |||
33 | # define cpu_is_mx27() (0) | 33 | # define cpu_is_mx27() (0) |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX2) | ||
37 | #define CSCR_U(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10) | ||
38 | #define CSCR_L(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x4) | ||
39 | #define CSCR_A(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x8) | ||
40 | #endif | ||
41 | |||
36 | #endif /* __ASM_ARCH_MXC_H__ */ | 42 | #endif /* __ASM_ARCH_MXC_H__ */ |