blob: 3d0bf95a56ae3a5b73e96be21bd0edba2c05b61a [file] [log] [blame]
Ludovic Desroches8f4b4792013-03-22 13:24:12 +00001/*
Nicolas Ferrecac01722015-01-27 16:41:55 +01002 * Setup code for SAMA5
Ludovic Desroches8f4b4792013-03-22 13:24:12 +00003 *
4 * Copyright (C) 2013 Atmel,
5 * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000010#include <linux/of.h>
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000011#include <linux/of_platform.h>
Alexandre Bellonie7336082015-03-12 15:54:30 +010012
13#include <asm/mach/arch.h>
14#include <asm/mach/map.h>
15#include <asm/system_misc.h>
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000016
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000017#include "generic.h"
18
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000019static void __init sama5_dt_device_init(void)
20{
Alexandre Bellonib32de9d2017-02-16 11:31:06 +010021 of_platform_default_populate(NULL, NULL, NULL);
Alexandre Bellonifbc7edc2015-09-30 01:58:40 +020022 sama5_pm_init();
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000023}
24
Nicolas Pitre19c233b2015-07-27 18:27:52 -040025static const char *const sama5_dt_board_compat[] __initconst = {
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000026 "atmel,sama5",
27 NULL
28};
29
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010030DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000031 /* Maintainer: Atmel */
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000032 .init_machine = sama5_dt_device_init,
33 .dt_compat = sama5_dt_board_compat,
34MACHINE_END
Nicolas Ferre726d32b2014-09-15 18:15:55 +020035
Nicolas Pitre19c233b2015-07-27 18:27:52 -040036static const char *const sama5_alt_dt_board_compat[] __initconst = {
Nicolas Ferre726d32b2014-09-15 18:15:55 +020037 "atmel,sama5d4",
38 NULL
39};
40
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010041DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
Nicolas Ferre726d32b2014-09-15 18:15:55 +020042 /* Maintainer: Atmel */
Nicolas Ferre726d32b2014-09-15 18:15:55 +020043 .init_machine = sama5_dt_device_init,
44 .dt_compat = sama5_alt_dt_board_compat,
45 .l2c_aux_mask = ~0UL,
46MACHINE_END
Alexandre Belloni24a0f5c2016-09-27 12:29:50 +020047
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