2022-06-07 07:11:11 -07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
// Copyright (C) 2013-2014 Broadcom Corporation
|
2014-01-16 16:00:42 -07:00
|
|
|
|
|
|
|
#include <linux/init.h>
|
2015-09-14 12:13:44 -07:00
|
|
|
#include <linux/irqchip.h>
|
2014-01-16 16:00:42 -07:00
|
|
|
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
|
2016-06-28 12:18:51 -07:00
|
|
|
/*
|
|
|
|
* Storage for debug-macro.S's state.
|
|
|
|
*
|
|
|
|
* This must be in .data not .bss so that it gets initialized each time the
|
|
|
|
* kernel is loaded. The data is declared here rather than debug-macro.S so
|
|
|
|
* that multiple inclusions of debug-macro.S point at the same data.
|
|
|
|
*/
|
|
|
|
u32 brcmstb_uart_config[3] = {
|
|
|
|
/* Debug UART initialization required */
|
|
|
|
1,
|
|
|
|
/* Debug UART physical address */
|
|
|
|
0,
|
|
|
|
/* Debug UART virtual address */
|
|
|
|
0,
|
|
|
|
};
|
|
|
|
|
2015-09-14 12:13:44 -07:00
|
|
|
static void __init brcmstb_init_irq(void)
|
|
|
|
{
|
|
|
|
irqchip_init();
|
|
|
|
}
|
|
|
|
|
2015-02-18 13:01:45 -07:00
|
|
|
static const char *const brcmstb_match[] __initconst = {
|
2014-01-16 16:00:42 -07:00
|
|
|
"brcm,bcm7445",
|
|
|
|
"brcm,brcmstb",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
|
|
|
|
.dt_compat = brcmstb_match,
|
2015-09-14 12:13:44 -07:00
|
|
|
.init_irq = brcmstb_init_irq,
|
2014-01-16 16:00:42 -07:00
|
|
|
MACHINE_END
|