Claudiu Beznea | eb0df9b | 2019-11-29 15:51:39 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Setup code for SAM9X60. |
| 4 | * |
| 5 | * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries |
| 6 | * |
| 7 | * Author: Claudiu Beznea <claudiu.beznea@microchip.com> |
| 8 | */ |
| 9 | |
| 10 | #include <linux/of.h> |
| 11 | #include <linux/of_platform.h> |
| 12 | |
| 13 | #include <asm/mach/arch.h> |
| 14 | #include <asm/system_misc.h> |
| 15 | |
| 16 | #include "generic.h" |
| 17 | |
| 18 | static void __init sam9x60_init(void) |
| 19 | { |
| 20 | of_platform_default_populate(NULL, NULL, NULL); |
| 21 | |
| 22 | sam9x60_pm_init(); |
| 23 | } |
| 24 | |
| 25 | static const char *const sam9x60_dt_board_compat[] __initconst = { |
| 26 | "microchip,sam9x60", |
| 27 | NULL |
| 28 | }; |
| 29 | |
| 30 | DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60") |
| 31 | /* Maintainer: Microchip */ |
| 32 | .init_machine = sam9x60_init, |
| 33 | .dt_compat = sam9x60_dt_board_compat, |
| 34 | MACHINE_END |