Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 // Copyright (C) 2013-2014 Broadcom Corporation
0003 
0004 #include <linux/init.h>
0005 #include <linux/irqchip.h>
0006 #include <linux/of_platform.h>
0007 
0008 #include <asm/mach-types.h>
0009 #include <asm/mach/arch.h>
0010 
0011 /*
0012  * Storage for debug-macro.S's state.
0013  *
0014  * This must be in .data not .bss so that it gets initialized each time the
0015  * kernel is loaded. The data is declared here rather than debug-macro.S so
0016  * that multiple inclusions of debug-macro.S point at the same data.
0017  */
0018 u32 brcmstb_uart_config[3] = {
0019     /* Debug UART initialization required */
0020     1,
0021     /* Debug UART physical address */
0022     0,
0023     /* Debug UART virtual address */
0024     0,
0025 };
0026 
0027 static void __init brcmstb_init_irq(void)
0028 {
0029     irqchip_init();
0030 }
0031 
0032 static const char *const brcmstb_match[] __initconst = {
0033     "brcm,bcm7445",
0034     "brcm,brcmstb",
0035     NULL
0036 };
0037 
0038 DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
0039     .dt_compat  = brcmstb_match,
0040     .init_irq   = brcmstb_init_irq,
0041 MACHINE_END