2014-01-17 07:00:42 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013-2014 Broadcom Corporation
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation version 2.
|
|
|
|
*
|
|
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
* kind, whether express or implied; without even the implied warranty
|
|
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
2015-09-15 03:13:44 +08:00
|
|
|
#include <linux/irqchip.h>
|
2014-01-17 07:00:42 +08:00
|
|
|
#include <linux/of_platform.h>
|
2015-09-15 03:13:44 +08:00
|
|
|
#include <linux/soc/brcmstb/brcmstb.h>
|
2014-01-17 07:00:42 +08:00
|
|
|
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
|
2015-09-15 03:13:44 +08:00
|
|
|
static void __init brcmstb_init_irq(void)
|
|
|
|
{
|
|
|
|
irqchip_init();
|
|
|
|
brcmstb_biuctrl_init();
|
|
|
|
}
|
|
|
|
|
2015-02-19 04:01:45 +08:00
|
|
|
static const char *const brcmstb_match[] __initconst = {
|
2014-01-17 07:00:42 +08:00
|
|
|
"brcm,bcm7445",
|
|
|
|
"brcm,brcmstb",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
|
|
|
|
.dt_compat = brcmstb_match,
|
2015-09-15 03:13:44 +08:00
|
|
|
.init_irq = brcmstb_init_irq,
|
2014-01-17 07:00:42 +08:00
|
|
|
MACHINE_END
|