xref: /openbmc/linux/arch/arm/mach-at91/sama7.c (revision d4692f6c)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Setup code for SAMA7
4  *
5  * Copyright (C) 2021 Microchip Technology, Inc. and its subsidiaries
6  *
7  */
8 
9 #include <linux/of.h>
10 #include <linux/of_platform.h>
11 
12 #include <asm/mach/arch.h>
13 #include <asm/system_misc.h>
14 
15 #include "generic.h"
16 
17 static void __init sama7_dt_device_init(void)
18 {
19 	of_platform_default_populate(NULL, NULL, NULL);
20 	sama7_pm_init();
21 }
22 
23 static const char *const sama7_dt_board_compat[] __initconst = {
24 	"microchip,sama7",
25 	NULL
26 };
27 
28 DT_MACHINE_START(sama7_dt, "Microchip SAMA7")
29 	/* Maintainer: Microchip */
30 	.init_machine	= sama7_dt_device_init,
31 	.dt_compat	= sama7_dt_board_compat,
32 MACHINE_END
33 
34