pl330: fix support RK2928/RK31
author黄涛 <huangtao@rock-chips.com>
Tue, 17 Jul 2012 06:30:05 +0000 (14:30 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 15 Jan 2013 08:20:25 +0000 (16:20 +0800)
arch/arm/common/pl330.c

index f793e77828396dd5432dba7b9c89c3035a80e536..ffbc40e550cd1e459e731b02983c6f29d44ad584 100644 (file)
@@ -379,11 +379,11 @@ static inline u32 get_id(struct pl330_info *pi, u32 off)
        void __iomem *regs = pi->base;
        u32 id = 0;
 
-#ifdef CONFIG_ARCH_RK30
+#ifdef CONFIG_PLAT_RK
        id |= ((readl(regs + off + 0x0) & 0xff) << 0);
-       id |= ((readl(regs + off + 0x4) & 0xff)<< 8);
+       id |= ((readl(regs + off + 0x4) & 0xff) << 8);
        id |= ((readl(regs + off + 0x8) & 0xff) << 16);
-       id |= ((readl(regs + off + 0xc) & 0xff)<< 24);
+       id |= ((readl(regs + off + 0xc) & 0xff) << 24);
 #else
        id |= (readb(regs + off + 0x0) << 0);
        id |= (readb(regs + off + 0x4) << 8);