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:
@@ -47,6 +47,7 @@
|
||||
#include <mach/mmc.h>
|
||||
#include <mach/irda.h>
|
||||
#include <mach/ohci.h>
|
||||
#include <mach/smemc.h>
|
||||
#include <plat/i2c.h>
|
||||
|
||||
#include "generic.h"
|
||||
@@ -542,7 +543,7 @@ static void __init trizeps4_map_io(void)
|
||||
pxa27x_map_io();
|
||||
iotable_init(trizeps4_io_desc, ARRAY_SIZE(trizeps4_io_desc));
|
||||
|
||||
if ((MSC0 & 0x8) && (BOOT_DEF & 0x1)) {
|
||||
if ((__raw_readl(MSC0) & 0x8) && (__raw_readl(BOOT_DEF) & 0x1)) {
|
||||
/* if flash is 16 bit wide its a Trizeps4 WL */
|
||||
__machine_arch_type = MACH_TYPE_TRIZEPS4WL;
|
||||
trizeps4_flash_data[0].width = 2;
|
||||
|
Reference in New Issue
Block a user