]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/mach-at91/board-dt-sama5.c
Merge tag 'at91-cleanup3' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre...
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-at91 / board-dt-sama5.c
CommitLineData
8f4b4794
LD
1/*
2 * Setup code for SAMA5 Evaluation Kits with Device Tree support
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/types.h>
11#include <linux/init.h>
12#include <linux/module.h>
13#include <linux/gpio.h>
14#include <linux/micrel_phy.h>
15#include <linux/of.h>
16#include <linux/of_irq.h>
17#include <linux/of_platform.h>
18#include <linux/phy.h>
d4d24c1b 19#include <linux/clk-provider.h>
8f4b4794
LD
20
21#include <asm/setup.h>
22#include <asm/irq.h>
23#include <asm/mach/arch.h>
24#include <asm/mach/map.h>
25#include <asm/mach/irq.h>
26
8f4b4794
LD
27#include "generic.h"
28
8f4b4794
LD
29static void __init sama5_dt_device_init(void)
30{
8f4b4794 31 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
ea69f998 32 at91_sam9x5_pm_init();
8f4b4794
LD
33}
34
726d32bf 35static const char *sama5_dt_board_compat[] __initconst = {
8f4b4794
LD
36 "atmel,sama5",
37 NULL
38};
39
40DT_MACHINE_START(sama5_dt, "Atmel SAMA5 (Device Tree)")
41 /* Maintainer: Atmel */
8f4b4794 42 .map_io = at91_map_io,
8f4b4794 43 .init_early = at91_dt_initialize,
8f4b4794
LD
44 .init_machine = sama5_dt_device_init,
45 .dt_compat = sama5_dt_board_compat,
46MACHINE_END
726d32bf
NF
47
48static const char *sama5_alt_dt_board_compat[] __initconst = {
49 "atmel,sama5d4",
50 NULL
51};
52
53DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5 (Device Tree)")
54 /* Maintainer: Atmel */
55 .map_io = at91_alt_map_io,
56 .init_early = at91_dt_initialize,
57 .init_machine = sama5_dt_device_init,
58 .dt_compat = sama5_alt_dt_board_compat,
59 .l2c_aux_mask = ~0UL,
60MACHINE_END