Stefan Wahren | 7b369a4 | 2018-10-22 22:18:39 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2010 Broadcom | ||||
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #include <linux/init.h> | ||||
Axel Lin | 5702941 | 2013-07-05 00:31:36 +0800 | [diff] [blame] | 7 | #include <linux/irqchip.h> |
Stephen Warren | d0f1c7f | 2012-09-15 22:18:10 -0600 | [diff] [blame] | 8 | #include <linux/of_address.h> |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 9 | |
10 | #include <asm/mach/arch.h> | ||||
11 | #include <asm/mach/map.h> | ||||
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 12 | |
Stefan Wahren | 88bbe85 | 2017-08-06 17:52:02 +0200 | [diff] [blame] | 13 | #include "platsmp.h" |
14 | |||||
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 15 | static const char * const bcm2835_compat[] = { |
Eric Anholt | c1be3c1 | 2015-12-16 15:55:14 -0800 | [diff] [blame] | 16 | #ifdef CONFIG_ARCH_MULTI_V6 |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 17 | "brcm,bcm2835", |
Eric Anholt | c1be3c1 | 2015-12-16 15:55:14 -0800 | [diff] [blame] | 18 | #endif |
19 | #ifdef CONFIG_ARCH_MULTI_V7 | ||||
20 | "brcm,bcm2836", | ||||
Stefan Wahren | 88bbe85 | 2017-08-06 17:52:02 +0200 | [diff] [blame] | 21 | "brcm,bcm2837", |
Eric Anholt | c1be3c1 | 2015-12-16 15:55:14 -0800 | [diff] [blame] | 22 | #endif |
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 23 | NULL |
24 | }; | ||||
25 | |||||
26 | DT_MACHINE_START(BCM2835, "BCM2835") | ||||
Stefan Wahren | 88bbe85 | 2017-08-06 17:52:02 +0200 | [diff] [blame] | 27 | .dt_compat = bcm2835_compat, |
28 | .smp = smp_ops(bcm2836_smp_ops), | ||||
Simon Arlott | ec9653b | 2012-05-26 01:04:43 -0600 | [diff] [blame] | 29 | MACHINE_END |