^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * Copyright (C) 2013-2014 Broadcom Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * This program is free software; you can redistribute it and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * modify it under the terms of the GNU General Public License as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * published by the Free Software Foundation version 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * This program is distributed "as is" WITHOUT ANY WARRANTY of any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * kind, whether express or implied; without even the implied warranty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/irqchip.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/of_platform.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <asm/mach-types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <asm/mach/arch.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) * Storage for debug-macro.S's state.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) * This must be in .data not .bss so that it gets initialized each time the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) * kernel is loaded. The data is declared here rather than debug-macro.S so
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) * that multiple inclusions of debug-macro.S point at the same data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) u32 brcmstb_uart_config[3] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) /* Debug UART initialization required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) /* Debug UART physical address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /* Debug UART virtual address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) static void __init brcmstb_init_irq(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) irqchip_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) static const char *const brcmstb_match[] __initconst = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) "brcm,bcm7445",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) "brcm,brcmstb",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) .dt_compat = brcmstb_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) .init_irq = brcmstb_init_irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) MACHINE_END