Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  *  Setup code for AT91SAM9
0004  *
0005  *  Copyright (C) 2011 Atmel,
0006  *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
0007  */
0008 
0009 #include <linux/of.h>
0010 #include <linux/of_platform.h>
0011 
0012 #include <asm/mach/arch.h>
0013 #include <asm/system_misc.h>
0014 
0015 #include "generic.h"
0016 
0017 static void __init at91sam9_init(void)
0018 {
0019     of_platform_default_populate(NULL, NULL, NULL);
0020 
0021     at91sam9_pm_init();
0022 }
0023 
0024 static const char *const at91_dt_board_compat[] __initconst = {
0025     "atmel,at91sam9",
0026     NULL
0027 };
0028 
0029 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
0030     /* Maintainer: Atmel */
0031     .init_machine   = at91sam9_init,
0032     .dt_compat  = at91_dt_board_compat,
0033 MACHINE_END