David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Setup code for AT91SAM9 |
| 4 | * |
| 5 | * Copyright (C) 2011 Atmel, |
| 6 | * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 at91sam9_init(void) |
| 18 | { |
| 19 | of_platform_default_populate(NULL, NULL, NULL); |
| 20 | |
| 21 | at91sam9_pm_init(); |
| 22 | } |
| 23 | |
| 24 | static const char *const at91_dt_board_compat[] __initconst = { |
| 25 | "atmel,at91sam9", |
| 26 | NULL |
| 27 | }; |
| 28 | |
| 29 | DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9") |
| 30 | /* Maintainer: Atmel */ |
| 31 | .init_machine = at91sam9_init, |
| 32 | .dt_compat = at91_dt_board_compat, |
| 33 | MACHINE_END |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 34 | |
| 35 | static void __init sam9x60_init(void) |
| 36 | { |
| 37 | of_platform_default_populate(NULL, NULL, NULL); |
| 38 | |
| 39 | sam9x60_pm_init(); |
| 40 | } |
| 41 | |
| 42 | static const char *const sam9x60_dt_board_compat[] __initconst = { |
| 43 | "microchip,sam9x60", |
| 44 | NULL |
| 45 | }; |
| 46 | |
| 47 | DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60") |
| 48 | /* Maintainer: Microchip */ |
| 49 | .init_machine = sam9x60_init, |
| 50 | .dt_compat = sam9x60_dt_board_compat, |
| 51 | MACHINE_END |