Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Setup code for SAMA7
0004  *
0005  * Copyright (C) 2021 Microchip Technology, Inc. and its subsidiaries
0006  *
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 sama7_dt_device_init(void)
0018 {
0019     of_platform_default_populate(NULL, NULL, NULL);
0020     sama7_pm_init();
0021 }
0022 
0023 static const char *const sama7_dt_board_compat[] __initconst = {
0024     "microchip,sama7",
0025     NULL
0026 };
0027 
0028 DT_MACHINE_START(sama7_dt, "Microchip SAMA7")
0029     /* Maintainer: Microchip */
0030     .init_machine   = sama7_dt_device_init,
0031     .dt_compat  = sama7_dt_board_compat,
0032 MACHINE_END
0033