Skip to contentSkip to conversation

mx53: Fix mask for SATA reference clock

PATCH New Fabio Estevam 2 participants 4 messages May 12, 2012 – Jun 12, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx53: Fix mask for SATA reference clock

From: Fabio Estevam <[email protected]>

SATA_ALT_REF_CLK field corresponds to bits 1 and 2 of offset 0x180c.

Fix the mask for these bits.

---
Stefano,

I don't have a SATA disk handy to try this.

 arch/arm/cpu/armv7/mx5/clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/mx5/clock.c +1 -1
index fc2406b..64862b3 100644
@@ -843,7 +843,7 @@ void mxc_set_sata_internal_clock(void)
 
 	set_usb_phy1_clk();
 
-	writel((readl(tmp_base) & (~0x7)) | 0x4, tmp_base);
+	writel((readl(tmp_base) & (~0x6)) | 0x4, tmp_base);
 }
 #endif
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 mx53: Fix mask for SATA reference clock

Quoted 3 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

SATA_ALT_REF_CLK field corresponds to bits 1 and 2 of offset 0x180c.

Just in case someone would like to check the mx53 fuse map, it is now available at:
http://cache.freescale.com/files/dsp/doc/ref_manual/IMX53RMAD.pdf?fpsp=1&WT_TYPE=Reference%20Manuals&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation

Regards,

Fabio Estevam

#2 lore raw

PATCH 1/1 mx53: Fix mask for SATA reference clock

Quoted 9 lines · Fabio Estevam
Quoted 3 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

SATA_ALT_REF_CLK field corresponds to bits 1 and 2 of offset 0x180c.

Just in case someone would like to check the mx53 fuse map, it is now available at:
http://cache.freescale.com/files/dsp/doc/ref_manual/IMX53RMAD.pdf?fpsp=1&WT_TYPE=Reference%20Manuals&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation

Thanks, Fabio !

Regards,
Stefano

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
=====================================================================
#3 lore raw

PATCH 1/1 mx53: Fix mask for SATA reference clock

In reply to Fabio Estevam
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

SATA_ALT_REF_CLK field corresponds to bits 1 and 2 of offset 0x180c.

Fix the mask for these bits.

---

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
=====================================================================