2 * Setup code for AT91SAM Evaluation Kits with Device Tree support
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
7 * Licensed under GPLv2 or later.
10 #include <linux/types.h>
11 #include <linux/init.h>
12 #include <linux/module.h>
13 #include <linux/gpio.h>
15 #include <linux/of_irq.h>
16 #include <linux/of_platform.h>
17 #include <linux/clk-provider.h>
19 #include <asm/setup.h>
21 #include <asm/mach/arch.h>
22 #include <asm/mach/map.h>
23 #include <asm/mach/irq.h>
27 static void __init sam9_dt_device_init(void)
29 at91_sam9260_pm_init();
30 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
33 static const char *at91_dt_board_compat[] __initdata = {
38 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM (Device Tree)")
39 /* Maintainer: Atmel */
40 .map_io = at91_map_io,
41 .init_early = at91_dt_initialize,
42 .init_machine = sam9_dt_device_init,
43 .dt_compat = at91_dt_board_compat,
46 static void __init sam9g45_dt_device_init(void)
48 at91_sam9g45_pm_init();
49 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
52 static const char *at91_9g45_board_compat[] __initconst = {
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,
65 static void __init sam9x5_dt_device_init(void)
67 at91_sam9x5_pm_init();
68 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
71 static const char *at91_9x5_board_compat[] __initconst = {
77 DT_MACHINE_START(at91sam9x5_dt, "Atmel AT91SAM9")
78 /* Maintainer: Atmel */
79 .map_io = at91_map_io,
80 .init_early = at91_dt_initialize,
81 .init_machine = sam9x5_dt_device_init,
82 .dt_compat = at91_9x5_board_compat,