blob: bfc556f7672039808154d672c64e10bc2f62fec8 [file] [log] [blame]
Stefan Wahren7b369a42018-10-22 22:18:39 +02001// SPDX-License-Identifier: GPL-2.0+
Simon Arlottec9653b2012-05-26 01:04:43 -06002/*
3 * Copyright (C) 2010 Broadcom
Simon Arlottec9653b2012-05-26 01:04:43 -06004 */
5
6#include <linux/init.h>
Axel Lin57029412013-07-05 00:31:36 +08007#include <linux/irqchip.h>
Stephen Warrend0f1c7f2012-09-15 22:18:10 -06008#include <linux/of_address.h>
Simon Arlottec9653b2012-05-26 01:04:43 -06009
10#include <asm/mach/arch.h>
11#include <asm/mach/map.h>
Simon Arlottec9653b2012-05-26 01:04:43 -060012
Stefan Wahren88bbe852017-08-06 17:52:02 +020013#include "platsmp.h"
14
Simon Arlottec9653b2012-05-26 01:04:43 -060015static const char * const bcm2835_compat[] = {
Eric Anholtc1be3c12015-12-16 15:55:14 -080016#ifdef CONFIG_ARCH_MULTI_V6
Simon Arlottec9653b2012-05-26 01:04:43 -060017 "brcm,bcm2835",
Eric Anholtc1be3c12015-12-16 15:55:14 -080018#endif
19#ifdef CONFIG_ARCH_MULTI_V7
20 "brcm,bcm2836",
Stefan Wahren88bbe852017-08-06 17:52:02 +020021 "brcm,bcm2837",
Eric Anholtc1be3c12015-12-16 15:55:14 -080022#endif
Simon Arlottec9653b2012-05-26 01:04:43 -060023 NULL
24};
25
26DT_MACHINE_START(BCM2835, "BCM2835")
Stefan Wahren88bbe852017-08-06 17:52:02 +020027 .dt_compat = bcm2835_compat,
28 .smp = smp_ops(bcm2836_smp_ops),
Simon Arlottec9653b2012-05-26 01:04:43 -060029MACHINE_END