linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: mvebu: use the main timer as clock source from DT
@ 2013-09-18 15:53 Jean Pihet
  2013-09-18 16:18 ` Jason Cooper
  2013-09-18 16:45 ` Thomas Petazzoni
  0 siblings, 2 replies; 9+ messages in thread
From: Jean Pihet @ 2013-09-18 15:53 UTC (permalink / raw)
  To: linux-arm-kernel

This commit:
  573145f08c2b92c45498468afbbba909f6ce6135
  clocksource: armada-370-xp: Use CLOCKSOURCE_OF_DECLARE

replaced a call to the driver's timer initialization by a call to
clocksource_of_init(). However, it failed to select CONFIG_CLKSRC_OF.

Fix this by selecting CONFIG_CLKSRC_OF for Armada370/XP machines.
Without this change the kernel is stuck at: 'Calibrating delay loop...'.

Signed-off-by: Jean Pihet <jean.pihet@linaro.org>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 arch/arm/mach-mvebu/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 9eb63d7..25e6c00 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -26,6 +26,7 @@ config MACH_ARMADA_370_XP
 	select HAVE_SMP
 	select CACHE_L2X0
 	select CPU_PJ4B
+	select CLKSRC_OF
 
 config MACH_ARMADA_370
 	bool "Marvell Armada 370 boards"
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH] arm: mvebu: use the main timer as clock source from DT
@ 2013-09-18 18:49 Jean Pihet
  2013-09-18 18:56 ` Jason Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Pihet @ 2013-09-18 18:49 UTC (permalink / raw)
  To: linux-arm-kernel

This commit:
  573145f08c2b92c45498468afbbba909f6ce6135
  clocksource: armada-370-xp: Use CLOCKSOURCE_OF_DECLARE

replaced a call to the driver's timer initialization by a call to
clocksource_of_init(). However, it failed to select CONFIG_CLKSRC_OF.

Fix this by selecting CONFIG_CLKSRC_OF for Armada370/XP machines.
Without this change the kernel is stuck at: 'Calibrating delay loop...'.

Signed-off-by: Jean Pihet <jean.pihet@linaro.org>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 41c6946..971d796 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -26,6 +26,7 @@ config DW_APB_TIMER_OF
 
 config ARMADA_370_XP_TIMER
 	bool
+	select CLKSRC_OF
 
 config ORION_TIMER
 	select CLKSRC_OF
-- 
1.7.11.7

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

end of thread, other threads:[~2013-09-25 23:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 15:53 [PATCH] arm: mvebu: use the main timer as clock source from DT Jean Pihet
2013-09-18 16:18 ` Jason Cooper
2013-09-18 16:45 ` Thomas Petazzoni
2013-09-18 16:54   ` Jason Cooper
2013-09-18 18:52     ` Jean Pihet
  -- strict thread matches above, loose matches on Subject: below --
2013-09-18 18:49 Jean Pihet
2013-09-18 18:56 ` Jason Cooper
2013-09-25 10:39   ` Ezequiel Garcia
2013-09-25 23:06     ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).