Commit ac11a1d4 authored by Uwe Kleine-König's avatar Uwe Kleine-König

ARM: at91: don't use <mach/timex.h>

The platform specific <mach/timex.h> will be removed in a later patch.
So move its only still used symbol to a different header specific for
the only machine still using it. Also add a few explicit includes of
<mach/hardware.h> that are implicitly available through <mach/timex.h>.
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent a509ad0c
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/at91_st.h> #include <mach/at91_st.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "soc.h" #include "soc.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <mach/at91rm9200.h> #include <mach/at91rm9200.h>
#include <mach/at91rm9200_mc.h> #include <mach/at91rm9200_mc.h>
#include <mach/at91_ramc.h> #include <mach/at91_ramc.h>
#include <mach/hardware.h>
#include "board.h" #include "board.h"
#include "generic.h" #include "generic.h"
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <mach/at91_st.h> #include <mach/at91_st.h>
#include <mach/hardware.h>
static unsigned long last_crtr; static unsigned long last_crtr;
static u32 irqmask; static u32 irqmask;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <mach/at91_dbgu.h> #include <mach/at91_dbgu.h>
#include <mach/at91sam9260.h> #include <mach/at91sam9260.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "at91_rstc.h" #include "at91_rstc.h"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <mach/at91_matrix.h> #include <mach/at91_matrix.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/at91_adc.h> #include <mach/at91_adc.h>
#include <mach/hardware.h>
#include "board.h" #include "board.h"
#include "generic.h" #include "generic.h"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/at91sam9261.h> #include <mach/at91sam9261.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "at91_rstc.h" #include "at91_rstc.h"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <mach/at91sam9261_matrix.h> #include <mach/at91sam9261_matrix.h>
#include <mach/at91_matrix.h> #include <mach/at91_matrix.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include "board.h" #include "board.h"
#include "generic.h" #include "generic.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <mach/at91sam9263.h> #include <mach/at91sam9263.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "at91_rstc.h" #include "at91_rstc.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <mach/at91sam9263_matrix.h> #include <mach/at91sam9263_matrix.h>
#include <mach/at91_matrix.h> #include <mach/at91_matrix.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include "board.h" #include "board.h"
#include "generic.h" #include "generic.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <mach/hardware.h>
#define AT91_PIT_MR 0x00 /* Mode Register */ #define AT91_PIT_MR 0x00 /* Mode Register */
#define AT91_PIT_PITIEN (1 << 25) /* Timer Interrupt Enable */ #define AT91_PIT_PITIEN (1 << 25) /* Timer Interrupt Enable */
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <mach/at91sam9g45.h> #include <mach/at91sam9g45.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "soc.h" #include "soc.h"
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <linux/platform_data/dma-atmel.h> #include <linux/platform_data/dma-atmel.h>
#include <mach/atmel-mci.h> #include <mach/atmel-mci.h>
#include <mach/hardware.h>
#include <media/atmel-isi.h> #include <media/atmel-isi.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <mach/at91_dbgu.h> #include <mach/at91_dbgu.h>
#include <mach/at91sam9rl.h> #include <mach/at91sam9rl.h>
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "at91_rstc.h" #include "at91_rstc.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <mach/at91sam9rl_matrix.h> #include <mach/at91sam9rl_matrix.h>
#include <mach/at91_matrix.h> #include <mach/at91_matrix.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include <linux/platform_data/dma-atmel.h> #include <linux/platform_data/dma-atmel.h>
#include "board.h" #include "board.h"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/at91x40.h> #include <mach/at91x40.h>
#include <mach/at91_st.h> #include <mach/at91_st.h>
#include <mach/timex.h> #include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "generic.h" #include "generic.h"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <linux/time.h> #include <linux/time.h>
#include <linux/io.h> #include <linux/io.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/at91x40.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include "at91_tc.h" #include "at91_tc.h"
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "board.h" #include "board.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "board.h" #include "board.h"
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/at91sam9_smc.h> #include <mach/at91sam9_smc.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "board.h" #include "board.h"
......
...@@ -55,4 +55,6 @@ ...@@ -55,4 +55,6 @@
#define AT91_PS_CR (AT91_PS + 0) /* PS Control register */ #define AT91_PS_CR (AT91_PS + 0) /* PS Control register */
#define AT91_PS_CR_CPU (1 << 0) /* CPU clock disable bit */ #define AT91_PS_CR_CPU (1 << 0) /* CPU clock disable bit */
#define AT91X40_MASTER_CLOCK 40000000
#endif /* AT91X40_H */ #endif /* AT91X40_H */
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <mach/at91_pmc.h> #include <mach/at91_pmc.h>
#include <mach/cpu.h> #include <mach/cpu.h>
#include <mach/hardware.h>
#include "at91_aic.h" #include "at91_aic.h"
#include "generic.h" #include "generic.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment