Skip to contentSkip to conversation

clocksource: enable pxa_timer for SA-1100 platform

PATCH Superseded Dmitry Eremin-Solenikov 3 participants 6 messages Oct 15, 2014 – Nov 6, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 clocksource: enable pxa_timer for SA-1100 platform

SA-11x0 platform used the same IP block as was used on PXA. Consequently it makes sense to have only one driver. Enable pxa_timer clocksource for StrongARM platform.

---
 drivers/clocksource/Kconfig  | 6 ++++++
 drivers/clocksource/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/clocksource/Kconfig +6 -0
index cfd6519..fd99b08 100644
@@ -216,4 +216,10 @@ config CLKSRC_VERSATILE
 	  ARM Versatile, RealView and Versatile Express reference
 	  platforms.
 
+config CLKSRC_PXA
+	def_bool y if ARCH_PXA || ARCH_SA1100
+	help
+	  This enables OST0 support available on PXA and SA-11x0
+	  platforms.
+
 endmenu
drivers/clocksource/Makefile +1 -1
index 7fd9fd1..6d9822e 100644
@@ -20,7 +20,7 @@ obj-$(CONFIG_ARCH_CLPS711X)	+= clps711x-timer.o
 obj-$(CONFIG_ARCH_MARCO)	+= timer-marco.o
 obj-$(CONFIG_ARCH_MOXART)	+= moxart_timer.o
 obj-$(CONFIG_ARCH_MXS)		+= mxs_timer.o
-obj-$(CONFIG_ARCH_PXA)		+= pxa_timer.o
+obj-$(CONFIG_CLKSRC_PXA)	+= pxa_timer.o
 obj-$(CONFIG_ARCH_PRIMA2)	+= timer-prima2.o
 obj-$(CONFIG_ARCH_U300)		+= timer-u300.o
 obj-$(CONFIG_SUN4I_TIMER)	+= sun4i_timer.o
Signature · 1 line
2.1.1
#1 lore raw

PATCH 2/2 ARM: sa1100: use pxa_timer clocksource driver

Use pxa_timer clocksource driver.

---
 arch/arm/mach-sa1100/Makefile  |   2 +-
 arch/arm/mach-sa1100/generic.c |   6 ++
 arch/arm/mach-sa1100/time.c    | 139 -----------------------------------------
 3 files changed, 7 insertions(+), 140 deletions(-)
 delete mode 100644 arch/arm/mach-sa1100/time.c
arch/arm/mach-sa1100/Makefile +1 -1
index 2732eef..8eb9a6f 100644
@@ -3,7 +3,7 @@
 #
 
 # Common support
-obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o
+obj-y := clock.o generic.o irq.o #nmi-oopser.o
 obj-m :=
 obj-n :=
 obj-  :=
arch/arm/mach-sa1100/generic.c +6 -0
index d4ea142..40e0d86 100644
@@ -33,6 +33,7 @@
 #include <mach/irqs.h>
 
 #include "generic.h"
+#include <clocksource/pxa.h>
 
 unsigned int reset_status;
 EXPORT_SYMBOL(reset_status);
@@ -369,6 +370,11 @@ void __init sa1100_map_io(void)
 	iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc));
 }
 
+void __init sa1100_timer_init(void)
+{
+	pxa_timer_nodt_init(IRQ_OST0, io_p2v(0x90000000), 3686400);
+}
+
 /*
  * Disable the memory bus request/grant signals on the SA1110 to
  * ensure that we don't receive spurious memory requests.  We set
arch/arm/mach-sa1100/time.c deleted +0 -139

139 lines not on this page · raw message

Signature · 1 line
2.1.1
Acked-by on v1 1/2
#2 lore raw
In reply to Dmitry Eremin-Solenikov
Quoted 5 lines · On Wednesday 15 October 2014 16:50:04 Dmitry Eremin-Solenikov wrote:

SA-11x0 platform used the same IP block as was used on PXA. Consequently it makes sense to have only one driver. Enable pxa_timer clocksource for StrongARM platform.

Both patches look good to me.

Should we merge them through arm-soc or through the clocksource tree?

Arnd

#3 lore raw

2014-10-20 23:07 GMT+04:00 Arnd Bergmann <[email protected]>:

Quoted 5 lines · On Wednesday 15 October 2014 16:50:04 Dmitry Eremin-Solenikov wrote:
Quoted 4 lines

SA-11x0 platform used the same IP block as was used on PXA. Consequently it makes sense to have only one driver. Enable pxa_timer clocksource for StrongARM platform.

Quoted 7 lines
Quoted 1 line

Both patches look good to me.

Should we merge them through arm-soc or through the clocksource tree?

I'm fine with any of the approaches. Russell, Daniel, Thomas - any preferences?

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw
In reply to Arnd Bergmann
Quoted 5 lines · Arnd Bergmann
Quoted 4 lines · On Wednesday 15 October 2014 16:50:04 Dmitry Eremin-Solenikov wrote:

SA-11x0 platform used the same IP block as was used on PXA. Consequently it makes sense to have only one driver. Enable pxa_timer clocksource for StrongARM platform.

Quoted 7 lines
Quoted 1 line

Both patches look good to me.

Should we merge them through arm-soc or through the clocksource tree?

It touches arm, so please take it through arm-soc with my acked-by.

Thanks,

tglx

#5 lore raw
In reply to Arnd Bergmann

Hello,

2014-10-20 23:07 GMT+04:00 Arnd Bergmann <[email protected]>:

Quoted 5 lines · On Wednesday 15 October 2014 16:50:04 Dmitry Eremin-Solenikov wrote:
Quoted 4 lines

SA-11x0 platform used the same IP block as was used on PXA. Consequently it makes sense to have only one driver. Enable pxa_timer clocksource for StrongARM platform.

Quoted 7 lines
Quoted 1 line

Both patches look good to me.

Should we merge them through arm-soc or through the clocksource tree?

Thomas added his blessing (and an ack) to merge these patches through arm-soc. Should I gather any additional Acks before it cn hit arm-soc/for-next?

Signature · 2 lines
With best wishes
Dmitry