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