ARM: pxa: Access SMEMC via virtual addresses
This is important because on PXA3xx, the physical mapping of SMEMC registers differs from the one on PXA2xx. In order to get PCMCIA working on both PXA2xx and PXA320, the PCMCIA driver was adjusted accordingly as well. Also, various places in the kernel had to be patched to use __raw_read/__raw_write. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <mach/pxa2xx_spi.h>
|
||||
#include <mach/spitz.h>
|
||||
#include <mach/sharpsl_pm.h>
|
||||
#include <mach/smemc.h>
|
||||
|
||||
#include <plat/i2c.h>
|
||||
|
||||
@@ -930,9 +931,10 @@ static void spitz_poweroff(void)
|
||||
|
||||
static void spitz_restart(char mode, const char *cmd)
|
||||
{
|
||||
uint32_t msc0 = __raw_readl(MSC0);
|
||||
/* Bootloader magic for a reboot */
|
||||
if ((MSC0 & 0xffff0000) == 0x7ff00000)
|
||||
MSC0 = (MSC0 & 0xffff) | 0x7ee00000;
|
||||
if ((msc0 & 0xffff0000) == 0x7ff00000)
|
||||
__raw_writel((msc0 & 0xffff) | 0x7ee00000, MSC0);
|
||||
|
||||
spitz_poweroff();
|
||||
}
|
||||
|
Reference in New Issue
Block a user