blob: 656ad409a2533ad832611ade5e0149d0fd80aafb [file] [log] [blame]
Joachim Eastwood397f8c32012-10-28 18:31:09 +00001/*
Nicolas Ferrecac01722015-01-27 16:41:55 +01002 * Setup code for AT91RM9200
Joachim Eastwood397f8c32012-10-28 18:31:09 +00003 *
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6 * 2012 Joachim Eastwood <manabian@gmail.com>
7 *
8 * Licensed under GPLv2 or later.
9 */
10
Alexandre Belloni7735f032015-03-12 15:54:28 +010011#include <linux/of.h>
12#include <linux/of_platform.h>
Joachim Eastwood397f8c32012-10-28 18:31:09 +000013
Joachim Eastwood397f8c32012-10-28 18:31:09 +000014#include <asm/mach/arch.h>
Alexandre Belloni7d7ffd72015-01-26 19:02:54 +010015
Joachim Eastwood397f8c32012-10-28 18:31:09 +000016#include "generic.h"
17
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010018static void __init at91rm9200_dt_device_init(void)
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010019{
Alexandre Bellonib32de9d2017-02-16 11:31:06 +010020 of_platform_default_populate(NULL, NULL, NULL);
Nicolas Ferreea69f992015-01-23 11:47:37 +010021
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010022 at91rm9200_pm_init();
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010023}
24
Nicolas Pitre19c233b2015-07-27 18:27:52 -040025static const char *const at91rm9200_dt_board_compat[] __initconst = {
Joachim Eastwood397f8c32012-10-28 18:31:09 +000026 "atmel,at91rm9200",
27 NULL
28};
29
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010030DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200")
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010031 .init_machine = at91rm9200_dt_device_init,
Joachim Eastwood397f8c32012-10-28 18:31:09 +000032 .dt_compat = at91rm9200_dt_board_compat,
33MACHINE_END