1 /* 2 * Setup code for AT91SAM9 3 * 4 * Copyright (C) 2011 Atmel, 5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> 6 * 7 * Licensed under GPLv2 or later. 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 at91sam9_init(void) 19 { 20 of_platform_default_populate(NULL, NULL, NULL); 21 22 at91sam9_pm_init(); 23 } 24 25 static const char *const at91_dt_board_compat[] __initconst = { 26 "atmel,at91sam9", 27 NULL 28 }; 29 30 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9") 31 /* Maintainer: Atmel */ 32 .init_machine = at91sam9_init, 33 .dt_compat = at91_dt_board_compat, 34 MACHINE_END 35 36 static void __init sam9x60_init(void) 37 { 38 of_platform_default_populate(NULL, NULL, NULL); 39 40 sam9x60_pm_init(); 41 } 42 43 static const char *const sam9x60_dt_board_compat[] __initconst = { 44 "microchip,sam9x60", 45 NULL 46 }; 47 48 DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60") 49 /* Maintainer: Microchip */ 50 .init_machine = sam9x60_init, 51 .dt_compat = sam9x60_dt_board_compat, 52 MACHINE_END 53