blob: bf629c90c758e878f026d544dbff1d5f7ce2cd48 [file] [log] [blame]
Thomas Gleixnera636cd62019-05-19 15:51:34 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02002/*
Nicolas Ferrecac01722015-01-27 16:41:55 +01003 * Setup code for AT91SAM9
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02004 *
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02005 * Copyright (C) 2011 Atmel,
6 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02007 */
8
Nicolas Ferre8014d6f42012-02-14 18:08:14 +01009#include <linux/of.h>
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010010#include <linux/of_platform.h>
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020011
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020012#include <asm/mach/arch.h>
Alexandre Bellonid18032d2015-03-12 15:54:29 +010013#include <asm/system_misc.h>
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020014
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020015#include "generic.h"
Alexandre Bellonid18032d2015-03-12 15:54:29 +010016
Alexandre Belloni13469192017-02-01 23:43:03 +010017static void __init at91sam9_init(void)
Alexandre Bellonid18032d2015-03-12 15:54:29 +010018{
Alexandre Bellonib32de9d2017-02-16 11:31:06 +010019 of_platform_default_populate(NULL, NULL, NULL);
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020020
Alexandre Belloni13469192017-02-01 23:43:03 +010021 at91sam9_pm_init();
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010022}
23
Nicolas Pitre19c233b2015-07-27 18:27:52 -040024static const char *const at91_dt_board_compat[] __initconst = {
Jean-Christophe PLAGNIOL-VILLARD7c8a98c2012-03-01 14:47:44 +080025 "atmel,at91sam9",
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020026 NULL
27};
28
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010029DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020030 /* Maintainer: Atmel */
Alexandre Belloni13469192017-02-01 23:43:03 +010031 .init_machine = at91sam9_init,
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020032 .dt_compat = at91_dt_board_compat,
33MACHINE_END
Claudiu Beznea01c70312019-02-14 15:54:41 +000034
35static void __init sam9x60_init(void)
36{
37 of_platform_default_populate(NULL, NULL, NULL);
38
39 sam9x60_pm_init();
40}
41
42static const char *const sam9x60_dt_board_compat[] __initconst = {
43 "microchip,sam9x60",
44 NULL
45};
46
47DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
48 /* Maintainer: Microchip */
49 .init_machine = sam9x60_init,
50 .dt_compat = sam9x60_dt_board_compat,
51MACHINE_END