at91rm9200.c (f26e8817b235d8764363bffcc9cbfc61867371f2) | at91rm9200.c (b32de9dd38fcf9063e993dcdd64cc64ad344d3ac) |
---|---|
1/* 2 * Setup code for AT91RM9200 3 * 4 * Copyright (C) 2011 Atmel, 5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> 6 * 2012 Joachim Eastwood <manabian@gmail.com> 7 * 8 * Licensed under GPLv2 or later. 9 */ 10 11#include <linux/of.h> 12#include <linux/of_platform.h> 13 14#include <asm/mach/arch.h> 15 16#include "generic.h" | 1/* 2 * Setup code for AT91RM9200 3 * 4 * Copyright (C) 2011 Atmel, 5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> 6 * 2012 Joachim Eastwood <manabian@gmail.com> 7 * 8 * Licensed under GPLv2 or later. 9 */ 10 11#include <linux/of.h> 12#include <linux/of_platform.h> 13 14#include <asm/mach/arch.h> 15 16#include "generic.h" |
17#include "soc.h" | |
18 | 17 |
19static const struct at91_soc rm9200_socs[] = { 20 AT91_SOC(AT91RM9200_CIDR_MATCH, 0, "at91rm9200 BGA", "at91rm9200"), 21 { /* sentinel */ }, 22}; 23 | |
24static void __init at91rm9200_dt_device_init(void) 25{ | 18static void __init at91rm9200_dt_device_init(void) 19{ |
26 struct soc_device *soc; 27 struct device *soc_dev = NULL; | 20 of_platform_default_populate(NULL, NULL, NULL); |
28 | 21 |
29 soc = at91_soc_init(rm9200_socs); 30 if (soc != NULL) 31 soc_dev = soc_device_to_device(soc); 32 33 of_platform_default_populate(NULL, NULL, soc_dev); 34 | |
35 at91rm9200_pm_init(); 36} 37 38static const char *const at91rm9200_dt_board_compat[] __initconst = { 39 "atmel,at91rm9200", 40 NULL 41}; 42 43DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200") 44 .init_machine = at91rm9200_dt_device_init, 45 .dt_compat = at91rm9200_dt_board_compat, 46MACHINE_END | 22 at91rm9200_pm_init(); 23} 24 25static const char *const at91rm9200_dt_board_compat[] __initconst = { 26 "atmel,at91rm9200", 27 NULL 28}; 29 30DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200") 31 .init_machine = at91rm9200_dt_device_init, 32 .dt_compat = at91rm9200_dt_board_compat, 33MACHINE_END |