Commit | Line | Data |
---|---|---|
ec9653b8 SA |
1 | /* |
2 | * Copyright (C) 2010 Broadcom | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | */ | |
14 | ||
15 | #include <linux/init.h> | |
5702941e | 16 | #include <linux/irqchip.h> |
d0f1c7ff | 17 | #include <linux/of_address.h> |
75fabc3f | 18 | #include <linux/clk/bcm2835.h> |
ec9653b8 SA |
19 | |
20 | #include <asm/mach/arch.h> | |
21 | #include <asm/mach/map.h> | |
ec9653b8 | 22 | |
dd3c7548 | 23 | static void __init bcm2835_init(void) |
ec9653b8 | 24 | { |
75fabc3f | 25 | bcm2835_init_clocks(); |
ec9653b8 SA |
26 | } |
27 | ||
ec9653b8 | 28 | static const char * const bcm2835_compat[] = { |
c1be3c1f | 29 | #ifdef CONFIG_ARCH_MULTI_V6 |
ec9653b8 | 30 | "brcm,bcm2835", |
c1be3c1f EA |
31 | #endif |
32 | #ifdef CONFIG_ARCH_MULTI_V7 | |
33 | "brcm,bcm2836", | |
34 | #endif | |
ec9653b8 SA |
35 | NULL |
36 | }; | |
37 | ||
38 | DT_MACHINE_START(BCM2835, "BCM2835") | |
ec9653b8 | 39 | .init_machine = bcm2835_init, |
ec9653b8 SA |
40 | .dt_compat = bcm2835_compat |
41 | MACHINE_END |