Skip to contentSkip to conversation

am33xx: add SSC enable macro

PATCH New Yegor Yefremov 2 participants 2 messages Apr 19, 2014 – May 14, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 am33xx: add SSC enable macro

---
Changes:
v2: use CM_CLKMODE_DPLL_SSC_EN_MASK in board file of Siemens device

 arch/arm/include/asm/arch-am33xx/clock.h | 2 ++
 board/siemens/rut/board.c                | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-am33xx/clock.h +2 -0
index 7637457..f00fad3 100644
@@ -42,6 +42,8 @@
 #define MODULE_CLKCTRL_IDLEST_DISABLED		3
 
 /* CM_CLKMODE_DPLL */
+#define CM_CLKMODE_DPLL_SSC_EN_SHIFT		12
+#define CM_CLKMODE_DPLL_SSC_EN_MASK		(1 << 12)
 #define CM_CLKMODE_DPLL_REGM4XEN_SHIFT		11
 #define CM_CLKMODE_DPLL_REGM4XEN_MASK		(1 << 11)
 #define CM_CLKMODE_DPLL_LPMODE_EN_SHIFT		10
board/siemens/rut/board.c +1 -1
index e0ada3f..1752df2 100644
@@ -400,7 +400,7 @@ static int conf_disp_pll(int m, int n)
 #if defined(DISPL_PLL_SPREAD_SPECTRUM)
 	writel(0x64, &cmwkup->resv6[3]); /* 0x50 */
 	writel(0x800, &cmwkup->resv6[2]); /* 0x4c */
-	writel(readl(&cmwkup->clkmoddplldisp) | (1 << 12),
+	writel(readl(&cmwkup->clkmoddplldisp) | CM_CLKMODE_DPLL_SSC_EN_MASK,
 	       &cmwkup->clkmoddplldisp); /* 0x98 */
 #endif
 	return 0;
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 am33xx: add SSC enable macro

Quoted 1 line · Yegor Yefremov

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140513/c4d52981/attachment.pgp>