18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2013-2014 Broadcom Corporation 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or 58c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as 68c2ecf20Sopenharmony_ci * published by the Free Software Foundation version 2. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This program is distributed "as is" WITHOUT ANY WARRANTY of any 98c2ecf20Sopenharmony_ci * kind, whether express or implied; without even the implied warranty 108c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 118c2ecf20Sopenharmony_ci * GNU General Public License for more details. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <linux/init.h> 158c2ecf20Sopenharmony_ci#include <linux/irqchip.h> 168c2ecf20Sopenharmony_ci#include <linux/of_platform.h> 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#include <asm/mach-types.h> 198c2ecf20Sopenharmony_ci#include <asm/mach/arch.h> 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* 228c2ecf20Sopenharmony_ci * Storage for debug-macro.S's state. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * This must be in .data not .bss so that it gets initialized each time the 258c2ecf20Sopenharmony_ci * kernel is loaded. The data is declared here rather than debug-macro.S so 268c2ecf20Sopenharmony_ci * that multiple inclusions of debug-macro.S point at the same data. 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ciu32 brcmstb_uart_config[3] = { 298c2ecf20Sopenharmony_ci /* Debug UART initialization required */ 308c2ecf20Sopenharmony_ci 1, 318c2ecf20Sopenharmony_ci /* Debug UART physical address */ 328c2ecf20Sopenharmony_ci 0, 338c2ecf20Sopenharmony_ci /* Debug UART virtual address */ 348c2ecf20Sopenharmony_ci 0, 358c2ecf20Sopenharmony_ci}; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_cistatic void __init brcmstb_init_irq(void) 388c2ecf20Sopenharmony_ci{ 398c2ecf20Sopenharmony_ci irqchip_init(); 408c2ecf20Sopenharmony_ci} 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_cistatic const char *const brcmstb_match[] __initconst = { 438c2ecf20Sopenharmony_ci "brcm,bcm7445", 448c2ecf20Sopenharmony_ci "brcm,brcmstb", 458c2ecf20Sopenharmony_ci NULL 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciDT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)") 498c2ecf20Sopenharmony_ci .dt_compat = brcmstb_match, 508c2ecf20Sopenharmony_ci .init_irq = brcmstb_init_irq, 518c2ecf20Sopenharmony_ciMACHINE_END 52