]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MX6 SabreSD: Use readl() to read the CCM_CCGR3 register
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 29 Nov 2013 14:38:39 +0000 (22:38 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Dec 2013 17:38:42 +0000 (18:38 +0100)
Align with the context to use readl() to read the CCM_CCGR3
register with memory barrier instead of __raw_readl().

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx6sabresd/mx6sabresd.c

index 851cbe9b32d845a3bd5966f13d11ac059d50f139..3a1fb20fff59c291b96a1d81da2777e52f572448 100644 (file)
@@ -390,7 +390,7 @@ static void setup_display(void)
        imx_setup_hdmi();
 
        /* Turn on LDB0, LDB1, IPU,IPU DI0 clocks */
-       reg = __raw_readl(&mxc_ccm->CCGR3);
+       reg = readl(&mxc_ccm->CCGR3);
        reg |=  MXC_CCM_CCGR3_LDB_DI0_MASK | MXC_CCM_CCGR3_LDB_DI1_MASK;
        writel(reg, &mxc_ccm->CCGR3);