]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - 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
CommitLineData
8f4b4794 1/*
cac01723 2 * Setup code for SAMA5
8f4b4794
LD
3 *
4 * Copyright (C) 2013 Atmel,
5 * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
8f4b4794 10#include <linux/of.h>
8f4b4794 11#include <linux/of_platform.h>
8f4b4794 12
8f4b4794
LD
13#include <asm/mach/arch.h>
14#include <asm/mach/map.h>
e7336083
AB
15#include <asm/system_misc.h>
16
8f4b4794
LD
17#include "generic.h"
18
8f4b4794
LD
19static void __init sama5_dt_device_init(void)
20{
b32de9dd 21 of_platform_default_populate(NULL, NULL, NULL);
fbc7edca 22 sama5_pm_init();
8f4b4794
LD
23}
24
19c233b7 25static const char *const sama5_dt_board_compat[] __initconst = {
8f4b4794
LD
26 "atmel,sama5",
27 NULL
28};
29
ad3fc3e3 30DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
8f4b4794 31 /* Maintainer: Atmel */
8f4b4794
LD
32 .init_machine = sama5_dt_device_init,
33 .dt_compat = sama5_dt_board_compat,
34MACHINE_END
726d32bf 35
19c233b7 36static const char *const sama5_alt_dt_board_compat[] __initconst = {
726d32bf
NF
37 "atmel,sama5d4",
38 NULL
39};
40
ad3fc3e3 41DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
726d32bf 42 /* Maintainer: Atmel */
726d32bf
NF
43 .init_machine = sama5_dt_device_init,
44 .dt_compat = sama5_alt_dt_board_compat,
45 .l2c_aux_mask = ~0UL,
46MACHINE_END
24a0f5c5
AB
47
48static void __init sama5d2_init(void)
49{
50 of_platform_default_populate(NULL, NULL, NULL);
51 sama5d2_pm_init();
52}
53
54static const char *const sama5d2_compat[] __initconst = {
55 "atmel,sama5d2",
56 NULL
57};
58
59DT_MACHINE_START(sama5d2, "Atmel SAMA5")
60 /* Maintainer: Atmel */
61 .init_machine = sama5d2_init,
62 .dt_compat = sama5d2_compat,
63 .l2c_aux_mask = ~0UL,
64MACHINE_END