Skip to contentSkip to conversation

MX6 SabreSD: Use readl() to read the CCM_CCGR3 register

PATCH New Liu Ying 3 participants 3 messages Nov 29, 2013 – Dec 17, 2013

lore
Share & tools
lore

Liu Ying

author
#0 lore raw

PATCH 1/1 MX6 SabreSD: Use readl() to read the CCM_CCGR3 register

Align with the context to use readl() to read the CCM_CCGR3 register with memory barrier instead of __raw_readl().

---
 board/freescale/mx6sabresd/mx6sabresd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
index 9dbe605..d4b3b99 100644
@@ -360,7 +360,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);
 
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/1 MX6 SabreSD: Use readl() to read the CCM_CCGR3 register

In reply to Liu Ying
Quoted 5 lines · Liu Ying

Align with the context to use readl() to read the CCM_CCGR3 register with memory barrier instead of __raw_readl().

---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================