blob: 99a67cfb7c0d5c129dfad0ec721ba24e402171fd [file] [log] [blame]
Marc Carino4fbe66d2014-01-16 15:00:42 -08001/*
2 * Copyright (C) 2013-2014 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
7 *
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <linux/init.h>
Florian Fainellic4a8ea92015-09-14 12:13:44 -070015#include <linux/irqchip.h>
Marc Carino4fbe66d2014-01-16 15:00:42 -080016#include <linux/of_platform.h>
Florian Fainellic4a8ea92015-09-14 12:13:44 -070017#include <linux/soc/brcmstb/brcmstb.h>
Marc Carino4fbe66d2014-01-16 15:00:42 -080018
19#include <asm/mach-types.h>
20#include <asm/mach/arch.h>
21
Florian Fainellic4a8ea92015-09-14 12:13:44 -070022static void __init brcmstb_init_irq(void)
23{
24 irqchip_init();
25 brcmstb_biuctrl_init();
26}
27
Uwe Kleine-König543c5042015-02-18 21:01:45 +010028static const char *const brcmstb_match[] __initconst = {
Marc Carino4fbe66d2014-01-16 15:00:42 -080029 "brcm,bcm7445",
30 "brcm,brcmstb",
31 NULL
32};
33
34DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
35 .dt_compat = brcmstb_match,
Florian Fainellic4a8ea92015-09-14 12:13:44 -070036 .init_irq = brcmstb_init_irq,
Marc Carino4fbe66d2014-01-16 15:00:42 -080037MACHINE_END