arch/arm/mach-mx3/clock-imx35.c
A message that is not in the archive (sent off-list or not yet received): [email protected]
[Added alkml to cc:]
Please do not send patches to me directly without ccing the list.
Quoted 9 lines · Alexei Babich
Good morning, Sascha.
I propose a patch forget_rate_uart() UART for iMX35:----
arch/arm/mach-mx3/clock-imx35.c +0
-0
arch/arm/mach-mx3/clock-imx35.c static unsigned long get_rate_uart(struct clk *clk) · line 188
Quoted 5 lines
arch/arm/mach-mx3/clock-imx35.c +1
-1@@ -185,7 +185,7 @@ static unsigned long get_rate_uart(struct clk *clk) {unsigned long pdr3 =__raw_readl (CCM_BASE +CCM_PDR3 );unsigned long pdr4 =__raw_readl (CCM_BASE +CCM_PDR4 ); -unsigned long div =get_3_3_div (pdr4 >>10 ); +unsigned long div = ((pdr4 >>10 ) &0x3f ) +1 ;
The get_3_3_div function was implemented based on an old datasheet which describes the dividers as
(div[5:3] + 1) * (div[2:0] + 1)
Looking at the current datasheet it seems that Freescale dropped this completely and the actual divider is just register value + 1.
I don't know if there is hardware around which needs get_3_3_div or if we can drop this function completely. Does anyone have information about this?
Anyway, this is not the only place affected. The otg clock, perclk0, csi and sdhc clock need a fix aswell.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |