mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] i.MX53 boards: notify clocksource after init_lowlevel
@ 2012-07-23 12:07 Wjatscheslaw Stoljarski (Slawa)
  2012-07-23 22:14 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Wjatscheslaw Stoljarski (Slawa) @ 2012-07-23 12:07 UTC (permalink / raw)
  To: barebox

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-i.MX53-boards-notify-clocksource-after-init_lowlevel.patch --]
[-- Type: text/x-patch, Size: 2385 bytes --]

From 4d9a8e960654c02205cf4a8e47b4e86cac4b2a95 Mon Sep 17 00:00:00 2001
From: "Wjatscheslaw Stoljarski" <wjatscheslaw.stoljarski@kiwigrid.com>
Date: Mon, 23 Jul 2012 13:48:07 +0200
Subject: [PATCH] i.MX53 boards: notify clocksource after init_lowlevel

This fix a clock inaccuracy in get_time_ns (used by sleep, time, etc).

Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>
---
 arch/arm/boards/freescale-mx53-loco/board.c |    2 ++
 arch/arm/boards/freescale-mx53-smd/board.c  |    2 ++
 arch/arm/boards/tqma53/board.c              |    2 ++
 3 files changed, 6 insertions(+)

diff --git a/arch/arm/boards/freescale-mx53-loco/board.c b/arch/arm/boards/freescale-mx53-loco/board.c
index 0d71555..b8e8d24 100644
--- a/arch/arm/boards/freescale-mx53-loco/board.c
+++ b/arch/arm/boards/freescale-mx53-loco/board.c
@@ -22,6 +22,7 @@
 #include <init.h>
 #include <nand.h>
 #include <net.h>
+#include <notifier.h>
 #include <partition.h>
 #include <sizes.h>
 
@@ -215,6 +216,7 @@ static int loco_console_init(void)
 	mxc_iomux_v3_setup_multiple_pads(loco_pads, ARRAY_SIZE(loco_pads));
 
 	imx53_init_lowlevel(1000);
+	clock_notifier_call_chain();
 
 	imx53_add_uart0();
 	return 0;
diff --git a/arch/arm/boards/freescale-mx53-smd/board.c b/arch/arm/boards/freescale-mx53-smd/board.c
index 0483103..74b38bd 100644
--- a/arch/arm/boards/freescale-mx53-smd/board.c
+++ b/arch/arm/boards/freescale-mx53-smd/board.c
@@ -22,6 +22,7 @@
 #include <init.h>
 #include <nand.h>
 #include <net.h>
+#include <notifier.h>
 #include <partition.h>
 #include <sizes.h>
 
@@ -161,6 +162,7 @@ static int smd_console_init(void)
 	mxc_iomux_v3_setup_multiple_pads(smd_pads, ARRAY_SIZE(smd_pads));
 
 	imx53_init_lowlevel(1000);
+	clock_notifier_call_chain();
 
 	imx53_add_uart0();
 	imx53_add_uart1();
diff --git a/arch/arm/boards/tqma53/board.c b/arch/arm/boards/tqma53/board.c
index 8c3d855..c4837cb 100644
--- a/arch/arm/boards/tqma53/board.c
+++ b/arch/arm/boards/tqma53/board.c
@@ -21,6 +21,7 @@
 #include <init.h>
 #include <nand.h>
 #include <net.h>
+#include <notifier.h>
 #include <partition.h>
 #include <sizes.h>
 #include <mci.h>
@@ -265,6 +266,7 @@ static int tqma53_console_init(void)
 {
 	mxc_iomux_v3_setup_multiple_pads(tqma53_pads, ARRAY_SIZE(tqma53_pads));
 	imx53_init_lowlevel(800);
+	clock_notifier_call_chain();
 	imx53_add_uart0();
 
 	return 0;
-- 
1.7.9.5


[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i.MX53 boards: notify clocksource after init_lowlevel
  2012-07-23 12:07 [PATCH] i.MX53 boards: notify clocksource after init_lowlevel Wjatscheslaw Stoljarski (Slawa)
@ 2012-07-23 22:14 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-07-23 22:14 UTC (permalink / raw)
  To: Wjatscheslaw Stoljarski (Slawa); +Cc: barebox

Hi Wjatscheslaw,

On Mon, Jul 23, 2012 at 02:07:25PM +0200, Wjatscheslaw Stoljarski (Slawa) wrote:
> 

> From 4d9a8e960654c02205cf4a8e47b4e86cac4b2a95 Mon Sep 17 00:00:00 2001
> From: "Wjatscheslaw Stoljarski" <wjatscheslaw.stoljarski@kiwigrid.com>
> Date: Mon, 23 Jul 2012 13:48:07 +0200
> Subject: [PATCH] i.MX53 boards: notify clocksource after init_lowlevel
> 
> @@ -215,6 +216,7 @@ static int loco_console_init(void)
>  	mxc_iomux_v3_setup_multiple_pads(loco_pads, ARRAY_SIZE(loco_pads));
>  
>  	imx53_init_lowlevel(1000);
> +	clock_notifier_call_chain();
>  

Maybe better add it to imx53_init_lowlevel?

Sascha

>  	imx53_add_uart0();
>  	return 0;
> diff --git a/arch/arm/boards/freescale-mx53-smd/board.c b/arch/arm/boards/freescale-mx53-smd/board.c
> index 0483103..74b38bd 100644
> --- a/arch/arm/boards/freescale-mx53-smd/board.c
> +++ b/arch/arm/boards/freescale-mx53-smd/board.c
> @@ -22,6 +22,7 @@
>  #include <init.h>
>  #include <nand.h>
>  #include <net.h>
> +#include <notifier.h>
>  #include <partition.h>
>  #include <sizes.h>
>  
> @@ -161,6 +162,7 @@ static int smd_console_init(void)
>  	mxc_iomux_v3_setup_multiple_pads(smd_pads, ARRAY_SIZE(smd_pads));
>  
>  	imx53_init_lowlevel(1000);
> +	clock_notifier_call_chain();
>  
>  	imx53_add_uart0();
>  	imx53_add_uart1();
> diff --git a/arch/arm/boards/tqma53/board.c b/arch/arm/boards/tqma53/board.c
> index 8c3d855..c4837cb 100644
> --- a/arch/arm/boards/tqma53/board.c
> +++ b/arch/arm/boards/tqma53/board.c
> @@ -21,6 +21,7 @@
>  #include <init.h>
>  #include <nand.h>
>  #include <net.h>
> +#include <notifier.h>
>  #include <partition.h>
>  #include <sizes.h>
>  #include <mci.h>
> @@ -265,6 +266,7 @@ static int tqma53_console_init(void)
>  {
>  	mxc_iomux_v3_setup_multiple_pads(tqma53_pads, ARRAY_SIZE(tqma53_pads));
>  	imx53_init_lowlevel(800);
> +	clock_notifier_call_chain();
>  	imx53_add_uart0();
>  
>  	return 0;
> -- 
> 1.7.9.5
> 

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-23 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-23 12:07 [PATCH] i.MX53 boards: notify clocksource after init_lowlevel Wjatscheslaw Stoljarski (Slawa)
2012-07-23 22:14 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox