xref: /openbmc/linux/arch/arm/mach-at91/at91rm9200.c (revision 58e16d792a6a8c6b750f637a4649967fcac853dc)
1*a636cd6cSThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later
2cac01723SNicolas Ferre /*
3cac01723SNicolas Ferre  *  Setup code for AT91RM9200
4cac01723SNicolas Ferre  *
5cac01723SNicolas Ferre  *  Copyright (C) 2011 Atmel,
6cac01723SNicolas Ferre  *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
7cac01723SNicolas Ferre  *                2012 Joachim Eastwood <manabian@gmail.com>
8cac01723SNicolas Ferre  */
9cac01723SNicolas Ferre 
107735f038SAlexandre Belloni #include <linux/of.h>
117735f038SAlexandre Belloni #include <linux/of_platform.h>
12cac01723SNicolas Ferre 
13cac01723SNicolas Ferre #include <asm/mach/arch.h>
14cac01723SNicolas Ferre 
15cac01723SNicolas Ferre #include "generic.h"
16cac01723SNicolas Ferre 
at91rm9200_dt_device_init(void)17ad3fc3e3SNicolas Ferre static void __init at91rm9200_dt_device_init(void)
18cac01723SNicolas Ferre {
19b32de9ddSAlexandre Belloni 	of_platform_default_populate(NULL, NULL, NULL);
20cac01723SNicolas Ferre 
21ad3fc3e3SNicolas Ferre 	at91rm9200_pm_init();
22cac01723SNicolas Ferre }
23cac01723SNicolas Ferre 
2419c233b7SNicolas Pitre static const char *const at91rm9200_dt_board_compat[] __initconst = {
25cac01723SNicolas Ferre 	"atmel,at91rm9200",
26cac01723SNicolas Ferre 	NULL
27cac01723SNicolas Ferre };
28cac01723SNicolas Ferre 
29ad3fc3e3SNicolas Ferre DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200")
30ad3fc3e3SNicolas Ferre 	.init_machine	= at91rm9200_dt_device_init,
31cac01723SNicolas Ferre 	.dt_compat	= at91rm9200_dt_board_compat,
32cac01723SNicolas Ferre MACHINE_END
33