Merge tag 'dropmachtimexh-v2' of git://git.pengutronix.de/git/ukl/linux into next...
authorOlof Johansson <olof@lixom.net>
Wed, 19 Feb 2014 06:19:33 +0000 (22:19 -0800)
committerOlof Johansson <olof@lixom.net>
Wed, 19 Feb 2014 06:19:33 +0000 (22:19 -0800)
This cleanup series gets rid of <mach/timex.h> for platforms not using
ARCH_MULTIPLATFORM. (For multi-platform code it's already unused since
387798b (ARM: initial multiplatform support).)

To make this work some code out of arch/arm needed to be adapted. The
respective changes got acks by their maintainers to be taken via armsoc
(with Andrew Morton substituting for Alessandro Zummo as rtc maintainer).

Compared to the previous pull request there was another patch added that
fixes a (non-critical) regression on ixp4xx. Olof Johansson asked to not
squash this fix into the original commit to save him from the need to
reverify the series.

* tag 'dropmachtimexh-v2' of git://git.pengutronix.de/git/ukl/linux:
  ARM: ixp4xx: fix timer latch calculation
  ARM: drop <mach/timex.h> for !ARCH_MULTIPLATFORM, too
  ARM: rpc: stop using <mach/timex.h>
  ARM: ixp4xx: stop using <mach/timex.h>
  input: ixp4xx-beeper: don't use symbols from <mach/timex.h>
  ARM: at91: don't use <mach/timex.h>
  ARM: ep93xx: stop using mach/timex.h
  ARM: mmp: stop using mach/timex.h
  ARM: netx: stop using mach/timex.h
  ARM: sa1100: stop using mach/timex.h
  clocksource: sirf/marco+prima2: drop usage of CLOCK_TICK_RATE
  rtc: pxa: drop unused #define TIMER_FREQ
  rtc: at91sam9: include <mach/hardware.h> explicitly
  ARM/serial: at91: switch atmel serial to use gpiolib

Signed-off-by: Olof Johansson <olof@lixom.net>
15 files changed:
1  2 
Documentation/devicetree/bindings/serial/atmel-usart.txt
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/at91rm9200_time.c
arch/arm/mach-at91/at91sam9260.c
arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam926x_time.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9rl.c
arch/arm/mach-at91/pm.c
arch/arm/mach-ep93xx/core.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-mmp/time.c
arch/arm/mach-sa1100/time.c
drivers/tty/serial/atmel_serial.c

@@@ -29,10 -28,9 +31,11 @@@ Example
                compatible = "atmel,at91sam9260-usart";
                reg = <0xfff8c000 0x4000>;
                interrupts = <7>;
 +              clocks = <&usart0_clk>;
 +              clock-names = "usart";
                atmel,use-dma-rx;
                atmel,use-dma-tx;
+               rts-gpios = <&pioD 15 0>;
        };
  
  - use DMA:
  #include <asm/mach/map.h>
  #include <asm/system_misc.h>
  #include <mach/at91rm9200.h>
 -#include <mach/at91_pmc.h>
  #include <mach/at91_st.h>
  #include <mach/cpu.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "soc.h"
Simple merge
@@@ -21,6 -20,8 +21,7 @@@
  #include <mach/cpu.h>
  #include <mach/at91_dbgu.h>
  #include <mach/at91sam9260.h>
 -#include <mach/at91_pmc.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "at91_rstc.h"
@@@ -20,6 -19,8 +20,7 @@@
  #include <asm/system_misc.h>
  #include <mach/cpu.h>
  #include <mach/at91sam9261.h>
 -#include <mach/at91_pmc.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "at91_rstc.h"
@@@ -19,6 -18,8 +19,7 @@@
  #include <asm/mach/map.h>
  #include <asm/system_misc.h>
  #include <mach/at91sam9263.h>
 -#include <mach/at91_pmc.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "at91_rstc.h"
Simple merge
@@@ -19,7 -18,9 +19,8 @@@
  #include <asm/mach/map.h>
  #include <asm/system_misc.h>
  #include <mach/at91sam9g45.h>
 -#include <mach/at91_pmc.h>
  #include <mach/cpu.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "soc.h"
@@@ -20,6 -19,8 +20,7 @@@
  #include <mach/cpu.h>
  #include <mach/at91_dbgu.h>
  #include <mach/at91sam9rl.h>
 -#include <mach/at91_pmc.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "at91_rstc.h"
@@@ -26,7 -25,9 +26,8 @@@
  #include <asm/mach/time.h>
  #include <asm/mach/irq.h>
  
 -#include <mach/at91_pmc.h>
  #include <mach/cpu.h>
+ #include <mach/hardware.h>
  
  #include "at91_aic.h"
  #include "generic.h"
Simple merge
Simple merge
@@@ -195,7 -201,7 +201,7 @@@ void __init timer_init(int irq
  {
        timer_config();
  
-       sched_clock_register(mmp_read_sched_clock, 32, CLOCK_TICK_RATE);
 -      setup_sched_clock(mmp_read_sched_clock, 32, MMP_CLOCK_FREQ);
++      sched_clock_register(mmp_read_sched_clock, 32, MMP_CLOCK_FREQ);
  
        ckevt.cpumask = cpumask_of(0);
  
  #include <mach/hardware.h>
  #include <mach/irqs.h>
  
 -static u32 notrace sa1100_read_sched_clock(void)
+ #define SA1100_CLOCK_FREQ 3686400
+ #define SA1100_LATCH DIV_ROUND_CLOSEST(SA1100_CLOCK_FREQ, HZ)
 +static u64 notrace sa1100_read_sched_clock(void)
  {
        return readl_relaxed(OSCR);
  }
Simple merge