vfs: remove unused wrapper block_page_mkwrite()
[linux/fpc-iii.git] / arch / arm / mach-at91 / sama5.c
blobd9cf6799aec00d31b4974b00fddb6a956c17f205
1 /*
2 * Setup code for SAMA5
4 * Copyright (C) 2013 Atmel,
5 * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
7 * Licensed under GPLv2 or later.
8 */
10 #include <linux/of.h>
11 #include <linux/of_platform.h>
13 #include <asm/mach/arch.h>
14 #include <asm/mach/map.h>
15 #include <asm/system_misc.h>
17 #include "generic.h"
18 #include "soc.h"
20 static const struct at91_soc sama5_socs[] = {
21 AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D27_EXID_MATCH,
22 "sama5d27", "sama5d2"),
23 AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D31_EXID_MATCH,
24 "sama5d31", "sama5d3"),
25 AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D33_EXID_MATCH,
26 "sama5d33", "sama5d3"),
27 AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D34_EXID_MATCH,
28 "sama5d34", "sama5d3"),
29 AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D35_EXID_MATCH,
30 "sama5d35", "sama5d3"),
31 AT91_SOC(SAMA5D3_CIDR_MATCH, SAMA5D36_EXID_MATCH,
32 "sama5d36", "sama5d3"),
33 AT91_SOC(SAMA5D4_CIDR_MATCH, SAMA5D41_EXID_MATCH,
34 "sama5d41", "sama5d4"),
35 AT91_SOC(SAMA5D4_CIDR_MATCH, SAMA5D42_EXID_MATCH,
36 "sama5d42", "sama5d4"),
37 AT91_SOC(SAMA5D4_CIDR_MATCH, SAMA5D43_EXID_MATCH,
38 "sama5d43", "sama5d4"),
39 AT91_SOC(SAMA5D4_CIDR_MATCH, SAMA5D44_EXID_MATCH,
40 "sama5d44", "sama5d4"),
41 { /* sentinel */ },
44 static void __init sama5_dt_device_init(void)
46 struct soc_device *soc;
47 struct device *soc_dev = NULL;
49 soc = at91_soc_init(sama5_socs);
50 if (soc != NULL)
51 soc_dev = soc_device_to_device(soc);
53 of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev);
54 at91sam9x5_pm_init();
57 static const char *const sama5_dt_board_compat[] __initconst = {
58 "atmel,sama5",
59 NULL
62 DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
63 /* Maintainer: Atmel */
64 .init_machine = sama5_dt_device_init,
65 .dt_compat = sama5_dt_board_compat,
66 MACHINE_END
68 static const char *const sama5_alt_dt_board_compat[] __initconst = {
69 "atmel,sama5d2",
70 "atmel,sama5d4",
71 NULL
74 DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
75 /* Maintainer: Atmel */
76 .init_machine = sama5_dt_device_init,
77 .dt_compat = sama5_alt_dt_board_compat,
78 .l2c_aux_mask = ~0UL,
79 MACHINE_END