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/audio.h>
|
||||
#include <mach/arcom-pcmcia.h>
|
||||
#include <mach/zeus.h>
|
||||
#include <mach/smemc.h>
|
||||
|
||||
#include "generic.h"
|
||||
|
||||
@@ -823,13 +824,16 @@ static mfp_cfg_t zeus_pin_config[] __initdata = {
|
||||
static void __init zeus_init(void)
|
||||
{
|
||||
u16 dm9000_msc = DM9K_MSC_VALUE;
|
||||
u32 msc0, msc1;
|
||||
|
||||
system_rev = __raw_readw(ZEUS_CPLD_VERSION);
|
||||
pr_info("Zeus CPLD V%dI%d\n", (system_rev & 0xf0) >> 4, (system_rev & 0x0f));
|
||||
|
||||
/* Fix timings for dm9000s (CS1/CS2)*/
|
||||
MSC0 = (MSC0 & 0xffff) | (dm9000_msc << 16);
|
||||
MSC1 = (MSC1 & 0xffff0000) | dm9000_msc;
|
||||
msc0 = __raw_readl(MSC0) & 0x0000ffff | (dm9000_msc << 16);
|
||||
msc1 = __raw_readl(MSC1) & 0xffff0000 | dm9000_msc;
|
||||
__raw_writel(msc0, MSC0);
|
||||
__raw_writel(msc1, MSC1);
|
||||
|
||||
pm_power_off = zeus_power_off;
|
||||
zeus_setup_apm();
|
||||
|
Viittaa uudesa ongelmassa
Block a user