diff options
| -rw-r--r-- | arch/arm/mach-at91/board-dt-rm9200.c | 11 |
1 files changed, 10 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, |
