Merge tag 'pm-extra-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[sfrench/cifs-2.6.git] / arch / arm / mach-at91 / at91sam9.c
1 /*
2  *  Setup code for AT91SAM9
3  *
4  *  Copyright (C) 2011 Atmel,
5  *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9
10 #include <linux/of.h>
11 #include <linux/of_platform.h>
12
13 #include <asm/mach/arch.h>
14 #include <asm/system_misc.h>
15
16 #include "generic.h"
17
18 static void __init at91sam9_init(void)
19 {
20         of_platform_default_populate(NULL, NULL, NULL);
21
22         at91sam9_pm_init();
23 }
24
25 static const char *const at91_dt_board_compat[] __initconst = {
26         "atmel,at91sam9",
27         NULL
28 };
29
30 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
31         /* Maintainer: Atmel */
32         .init_machine   = at91sam9_init,
33         .dt_compat      = at91_dt_board_compat,
34 MACHINE_END