diff options
Diffstat (limited to 'arch/arm/mach-at91/board-dt-sam9.c')
-rw-r--r-- | arch/arm/mach-at91/board-dt-sam9.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-dt-sam9.c b/arch/arm/mach-at91/board-dt-sam9.c index f99246aa9b38..0fe1ced608c5 100644 --- a/arch/arm/mach-at91/board-dt-sam9.c +++ b/arch/arm/mach-at91/board-dt-sam9.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/gpio.h> | 13 | #include <linux/gpio.h> |
14 | #include <linux/of.h> | 14 | #include <linux/of.h> |
15 | #include <linux/of_irq.h> | 15 | #include <linux/of_irq.h> |
16 | #include <linux/of_platform.h> | ||
16 | #include <linux/clk-provider.h> | 17 | #include <linux/clk-provider.h> |
17 | 18 | ||
18 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
@@ -23,6 +24,12 @@ | |||
23 | 24 | ||
24 | #include "generic.h" | 25 | #include "generic.h" |
25 | 26 | ||
27 | static void __init sam9_dt_device_init(void) | ||
28 | { | ||
29 | at91_sam9260_pm_init(); | ||
30 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
31 | } | ||
32 | |||
26 | static const char *at91_dt_board_compat[] __initdata = { | 33 | static const char *at91_dt_board_compat[] __initdata = { |
27 | "atmel,at91sam9", | 34 | "atmel,at91sam9", |
28 | NULL | 35 | NULL |
@@ -32,5 +39,25 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM (Device Tree)") | |||
32 | /* Maintainer: Atmel */ | 39 | /* Maintainer: Atmel */ |
33 | .map_io = at91_map_io, | 40 | .map_io = at91_map_io, |
34 | .init_early = at91_dt_initialize, | 41 | .init_early = at91_dt_initialize, |
42 | .init_machine = sam9_dt_device_init, | ||
35 | .dt_compat = at91_dt_board_compat, | 43 | .dt_compat = at91_dt_board_compat, |
36 | MACHINE_END | 44 | MACHINE_END |
45 | |||
46 | static void __init sam9g45_dt_device_init(void) | ||
47 | { | ||
48 | at91_sam9g45_pm_init(); | ||
49 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
50 | } | ||
51 | |||
52 | static const char *at91_9g45_board_compat[] __initconst = { | ||
53 | "atmel,at91sam9g45", | ||
54 | NULL | ||
55 | }; | ||
56 | |||
57 | DT_MACHINE_START(at91sam9g45_dt, "Atmel AT91SAM9G45") | ||
58 | /* Maintainer: Atmel */ | ||
59 | .map_io = at91_map_io, | ||
60 | .init_early = at91_dt_initialize, | ||
61 | .init_machine = sam9g45_dt_device_init, | ||
62 | .dt_compat = at91_9g45_board_compat, | ||
63 | MACHINE_END | ||