mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:37:59 +07:00
c4a8ea9e06
Call brcmstb_biuctrl_init() in brcmstb's init_irq machine descriptor callback since we need to setup the Bus Interface Unit before SMP in particular, but we also need to be able to remap registers. Acked-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
38 lines
1009 B
C
38 lines
1009 B
C
/*
|
|
* 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>
|
|
#include <linux/irqchip.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/soc/brcmstb/brcmstb.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
static void __init brcmstb_init_irq(void)
|
|
{
|
|
irqchip_init();
|
|
brcmstb_biuctrl_init();
|
|
}
|
|
|
|
static const char *const brcmstb_match[] __initconst = {
|
|
"brcm,bcm7445",
|
|
"brcm,brcmstb",
|
|
NULL
|
|
};
|
|
|
|
DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
|
|
.dt_compat = brcmstb_match,
|
|
.init_irq = brcmstb_init_irq,
|
|
MACHINE_END
|