Re: [PATCH 2/3] mx25: add platform support for imxfb

From
Baruch Siach <baruch@tkos.co.il>
Date
2010-02-10 08:33:31
Also in
linux-arm-kernel
Reply to
Uwe Kleine-König, 2010-02-10
Hi Uwe,

On Wed, Feb 10, 2010 at 08:53:15AM +0100, Uwe Kleine-König wrote:
On Wed, Feb 10, 2010 at 09:25:19AM +0200, Baruch Siach wrote:
quoted
@@ -233,6 +242,9 @@ int __init mx25_clocks_init(void)
 	__raw_writel((0xf << 16) | (3 << 26), CRM_BASE + CCM_CGCR1);
 	__raw_writel((1 << 5), CRM_BASE + CCM_CGCR2);
 
+	/* Clock source for lcdc is upll */
+	__raw_writel(__raw_readl(CRM_BASE+0x64) | (1 << 7), CRM_BASE + 0x64);
+
0x64?  Please define a register name for that constant.
I just followed the precedence set in the get_rate_per() routine above.  
Defining a register name is obviously better.
Ditto for 7.
See arch/arm/mach-mx3/clock.c:mx31_clocks_init() and 
arch/arm/mach-mx3/clock-imx35.c:mx35_clocks_init(). This is probably a matter 
for a separate cleanup patch.
Note I didn't look in the hardware manual, but I wonder if that should
better go in the enable routine for lcdc?
OK. I'll do it there.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
Thread (21 messages) 21 messages, 4 authors, last reply 2010-02-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help