1 /* 2 * Setup code for SAMA5 3 * 4 * Copyright (C) 2013 Atmel, 5 * 2013 Ludovic Desroches <ludovic.desroches@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/mach/map.h> 15 #include <asm/system_misc.h> 16 17 #include "generic.h" 18 19 static void __init sama5_dt_device_init(void) 20 { 21 of_platform_default_populate(NULL, NULL, NULL); 22 sama5_pm_init(); 23 } 24 25 static const char *const sama5_dt_board_compat[] __initconst = { 26 "atmel,sama5", 27 NULL 28 }; 29 30 DT_MACHINE_START(sama5_dt, "Atmel SAMA5") 31 /* Maintainer: Atmel */ 32 .init_machine = sama5_dt_device_init, 33 .dt_compat = sama5_dt_board_compat, 34 MACHINE_END 35 36 static const char *const sama5_alt_dt_board_compat[] __initconst = { 37 "atmel,sama5d2", 38 "atmel,sama5d4", 39 NULL 40 }; 41 42 DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5") 43 /* Maintainer: Atmel */ 44 .init_machine = sama5_dt_device_init, 45 .dt_compat = sama5_alt_dt_board_compat, 46 .l2c_aux_mask = ~0UL, 47 MACHINE_END 48