ARM: PXA3xx: program the CSMSADRCFG register
authorIgor Grinberg <grinberg@compulab.co.il>
Sun, 13 Jan 2013 11:49:47 +0000 (13:49 +0200)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 23 Jan 2013 08:56:32 +0000 (16:56 +0800)
commitd107a204154ddd79339203c2deeb7433f0cf6777
tree84931e8d1797c48edbc3e17cd4b76d7fae80d100
parent6a639bb83b751bfed61be13c0e3df17e5a970a94
ARM: PXA3xx: program the CSMSADRCFG register

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>
Cc: stable@vger.kernel.org
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-pxa/include/mach/smemc.h
arch/arm/mach-pxa/smemc.c