xref: /linux/arch/arm/mach-at91/sam9x7.c (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Setup code for SAM9X7.
4  *
5  * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
6  *
7  * Author: Varshini Rajendran <varshini.rajendran@microchip.com>
8  */
9 
10 #include <linux/of.h>
11 #include <linux/of_platform.h>
12 
13 #include <asm/mach/arch.h>
14 
15 #include "generic.h"
16 
17 static void __init sam9x7_init(void)
18 {
19 	of_platform_default_populate(NULL, NULL, NULL);
20 
21 	sam9x7_pm_init();
22 }
23 
24 static const char * const sam9x7_dt_board_compat[] __initconst = {
25 	"microchip,sam9x7",
26 	NULL
27 };
28 
29 DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7")
30 	/* Maintainer: Microchip */
31 	.init_machine	= sam9x7_init,
32 	.dt_compat	= sam9x7_dt_board_compat,
33 MACHINE_END
34