diff options
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/board-dt-rm9200.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_pio.h | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-dt-rm9200.c b/arch/arm/mach-at91/board-dt-rm9200.c index 3a185faee795..f4b6e91843e4 100644 --- a/arch/arm/mach-at91/board-dt-rm9200.c +++ b/arch/arm/mach-at91/board-dt-rm9200.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/gpio.h> | 14 | #include <linux/gpio.h> |
15 | #include <linux/of.h> | 15 | #include <linux/of.h> |
16 | #include <linux/of_irq.h> | 16 | #include <linux/of_irq.h> |
17 | #include <linux/clk-provider.h> | ||
17 | 18 | ||
18 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
19 | #include <asm/irq.h> | 20 | #include <asm/irq.h> |
@@ -35,13 +36,21 @@ static void __init at91rm9200_dt_init_irq(void) | |||
35 | of_irq_init(irq_of_match); | 36 | of_irq_init(irq_of_match); |
36 | } | 37 | } |
37 | 38 | ||
39 | static void __init at91rm9200_dt_timer_init(void) | ||
40 | { | ||
41 | #if defined(CONFIG_COMMON_CLK) | ||
42 | of_clk_init(NULL); | ||
43 | #endif | ||
44 | at91rm9200_timer_init(); | ||
45 | } | ||
46 | |||
38 | static const char *at91rm9200_dt_board_compat[] __initdata = { | 47 | static const char *at91rm9200_dt_board_compat[] __initdata = { |
39 | "atmel,at91rm9200", | 48 | "atmel,at91rm9200", |
40 | NULL | 49 | NULL |
41 | }; | 50 | }; |
42 | 51 | ||
43 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") | 52 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") |
44 | .init_time = at91rm9200_timer_init, | 53 | .init_time = at91rm9200_dt_timer_init, |
45 | .map_io = at91_map_io, | 54 | .map_io = at91_map_io, |
46 | .handle_irq = at91_aic_handle_irq, | 55 | .handle_irq = at91_aic_handle_irq, |
47 | .init_early = at91rm9200_dt_initialize, | 56 | .init_early = at91rm9200_dt_initialize, |
diff --git a/arch/arm/mach-at91/include/mach/at91_pio.h b/arch/arm/mach-at91/include/mach/at91_pio.h index 732b11c37f1a..7b7366253ceb 100644 --- a/arch/arm/mach-at91/include/mach/at91_pio.h +++ b/arch/arm/mach-at91/include/mach/at91_pio.h | |||
@@ -71,4 +71,10 @@ | |||
71 | #define ABCDSR_PERIPH_C 0x2 | 71 | #define ABCDSR_PERIPH_C 0x2 |
72 | #define ABCDSR_PERIPH_D 0x3 | 72 | #define ABCDSR_PERIPH_D 0x3 |
73 | 73 | ||
74 | #define SAMA5D3_PIO_DRIVER1 0x118 /*PIO Driver 1 register offset*/ | ||
75 | #define SAMA5D3_PIO_DRIVER2 0x11C /*PIO Driver 2 register offset*/ | ||
76 | |||
77 | #define AT91SAM9X5_PIO_DRIVER1 0x114 /*PIO Driver 1 register offset*/ | ||
78 | #define AT91SAM9X5_PIO_DRIVER2 0x118 /*PIO Driver 2 register offset*/ | ||
79 | |||
74 | #endif | 80 | #endif |