ARM i.MX53: notify clocksource about changing clock
Subsystems (3)
PATCH 1/1 ARM i.MX53: notify clocksource about changing clock
This fix a clock inaccuracy in get_time_ns (used by sleep, time, etc).
At i.MX53 power-on GPT clock is typically 55500000 Hz, and it will be used to calc the clock multiplier. After call imx53_init_lowlevel() GPT clock will changed (e.g. to 66666666 Hz), but multiplier not. To fix this behavior call clock_notifier_call_chain() after changing clock in imx53_init_lowlevel().
--- arch/arm/mach-imx/imx53.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/mach-imx/imx53.c +3 -0
@@ -18,6 +18,7 @@#include <init.h> #include <common.h> #include <io.h> +#include <notifier.h> #include <sizes.h> #include <mach/imx5.h> #include <mach/imx-regs.h>
@@ -211,4 +212,6 @@ void imx53_init_lowlevel(unsigned int cpufreq_mhz)writel (0xffffffff , ccm +MX53_CCM_CCGR7 );writel (0 , ccm +MX5_CCM_CCDR ); + +clock_notifier_call_chain (); }
Signature · 7 lines
1.7.9.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
maintainerQuoted 10 lines · Wjatscheslaw Stoljarski (Slawa)
This fix a clock inaccuracy in
get_time_ns(used by sleep, time, etc).At i.MX53 power-on GPT clock is typically 55500000 Hz, and it will be used to calc the clock multiplier. After call
imx53_init_lowlevel()GPT clock will
changed (e.g. to 66666666 Hz), but multiplier not. To fix this behavior callclock_notifier_call_chain()after changing clock inimx53_init_lowlevel().Signed-off-by: Wjatscheslaw Stoljarski
<[email protected]>
Your patch has some formatting problems, for example the line above is broken into two. Please consider using git send-email next time.
Applied manually. Thanks
Sascha
Quoted 31 lines
--- arch/arm/mach-imx/imx53.c | 3 +++ 1 file changed, 3 insertions(+)arch/arm/mach-imx/imx53.c +3
-0@@ -18,6 +18,7 @@#include <init.h> #include <common.h> #include <io.h> +#include <notifier.h> #include <sizes.h> #include <mach/imx5.h> #include <mach/imx-regs.h> @@ -211,4 +212,6 @@ void imx53_init_lowlevel(unsigned int cpufreq_mhz)writel (0xffffffff , ccm +MX53_CCM_CCGR7 );writel (0 , ccm +MX5_CCM_CCDR ); + +clock_notifier_call_chain (); }Signature · 7 lines
1.7.9.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 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 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox