]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/mach-at91/sama5.c
Merge tag 'at91-ab-4.13-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/abellon...
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-at91 / sama5.c
1 /*
2 * Setup code for SAMA5
3 *
4 * Copyright (C) 2013 Atmel,
5 * 2013 Ludovic Desroches <ludovic.desroches@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/mach/map.h>
15 #include <asm/system_misc.h>
16
17 #include "generic.h"
18
19 static void __init sama5_dt_device_init(void)
20 {
21 of_platform_default_populate(NULL, NULL, NULL);
22 sama5_pm_init();
23 }
24
25 static const char *const sama5_dt_board_compat[] __initconst = {
26 "atmel,sama5",
27 NULL
28 };
29
30 DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
31 /* Maintainer: Atmel */
32 .init_machine = sama5_dt_device_init,
33 .dt_compat = sama5_dt_board_compat,
34 MACHINE_END
35
36 static const char *const sama5_alt_dt_board_compat[] __initconst = {
37 "atmel,sama5d4",
38 NULL
39 };
40
41 DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
42 /* Maintainer: Atmel */
43 .init_machine = sama5_dt_device_init,
44 .dt_compat = sama5_alt_dt_board_compat,
45 .l2c_aux_mask = ~0UL,
46 MACHINE_END
47
48 static void __init sama5d2_init(void)
49 {
50 of_platform_default_populate(NULL, NULL, NULL);
51 sama5d2_pm_init();
52 }
53
54 static const char *const sama5d2_compat[] __initconst = {
55 "atmel,sama5d2",
56 NULL
57 };
58
59 DT_MACHINE_START(sama5d2, "Atmel SAMA5")
60 /* Maintainer: Atmel */
61 .init_machine = sama5d2_init,
62 .dt_compat = sama5d2_compat,
63 .l2c_aux_mask = ~0UL,
64 MACHINE_END