aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-pxa/include/mach/smemc.h
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2013-01-13 13:49:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-28 06:32:26 -0800
commit928de5bcadf8540f58ba6b12c6b7547d33dcde89 (patch)
treee8bbc72619f7a200b981345ae8fb50fa6d54a855 /arch/arm/mach-pxa/include/mach/smemc.h
parent02424a5539959f519256b3a1a9e046f4caed6e65 (diff)
ARM: PXA3xx: program the CSMSADRCFG register
commit d107a204154ddd79339203c2deeb7433f0cf6777 upstream. The Chip Select Configuration Register must be programmed to 0x2 in order to achieve the correct behavior of the Static Memory Controller. Without this patch devices wired to DFI and accessed through SMC cannot be accessed after resume from S2. Do not rely on the boot loader to program the CSMSADRCFG register by programming it in the kernel smemc module. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach/smemc.h')
-rw-r--r--arch/arm/mach-pxa/include/mach/smemc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/smemc.h b/arch/arm/mach-pxa/include/mach/smemc.h
index 654adc90c9a..301bf0eefe1 100644
--- a/arch/arm/mach-pxa/include/mach/smemc.h
+++ b/arch/arm/mach-pxa/include/mach/smemc.h
@@ -37,6 +37,7 @@
#define CSADRCFG1 (SMEMC_VIRT + 0x84) /* Address Configuration Register for CS1 */
#define CSADRCFG2 (SMEMC_VIRT + 0x88) /* Address Configuration Register for CS2 */
#define CSADRCFG3 (SMEMC_VIRT + 0x8C) /* Address Configuration Register for CS3 */
+#define CSMSADRCFG (SMEMC_VIRT + 0xA0) /* Chip Select Configuration Register */
/*
* More handy macros for PCMCIA