rk2928: hdmi: fixed reg wr
authoraddy-ubuntu <addy@ubuntu.(none)>
Tue, 7 Aug 2012 09:00:30 +0000 (02:00 -0700)
committeraddy-ubuntu <addy@ubuntu.(none)>
Tue, 7 Aug 2012 09:00:30 +0000 (02:00 -0700)
drivers/video/rockchip/hdmi/chips/rk2928/rk2928_hdmi_hw.h

index 6fd0f957a1ad526715c15ed0e7b8626bc618730c..fcc6be786bd7de09d6a2d02bea5f5e5710660434 100644 (file)
@@ -237,11 +237,11 @@ enum {
 #define PHY_PLL_LDO_PWR                        0xe7
        #define v_LDO_PWR_DOWN(n)       (n << 2)
 
-#define HDMIRdReg(addr)                                                __raw_readl(hdmi->regbase + addr)
-#define HDMIWrReg(addr, val)                   __raw_writel((val), hdmi->regbase + addr);
+#define HDMIRdReg(addr)                                                readl_relaxed(hdmi->regbase + (addr) * 0x04)
+#define HDMIWrReg(addr, val)                   writel_relaxed((val), hdmi->regbase + (addr) * 0x04);
 #define HDMIMskReg(temp, addr, msk, val)       \
-       temp = __raw_readl(hdmi->regbase + addr) & (0xFF - (msk)) ; \
-       __raw_writel(temp | ( (val) & (msk) ),  hdmi->regbase + addr); 
+       temp = readl_relaxed(hdmi->regbase + (addr) * 0x04) & (0xFF - (msk)) ; \
+       writel_relaxed(temp | ( (val) & (msk) ),  hdmi->regbase + (addr) * 0x04); 
        
 extern int rk2928_hdmi_initial(void);