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