diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-09-14 15:13:44 -0400 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2015-10-09 16:42:18 -0400 |
commit | c4a8ea9e0698945b182ba1e1063a0981b1f35139 (patch) | |
tree | 26b38bf1e73576e9462710304b5aa343c192a8ea | |
parent | 9a764234eee689ea800424ab99b08ff07a8bdbcd (diff) |
ARM: brcmstb: Setup BIU control registers during boot
Call brcmstb_biuctrl_init() in brcmstb's init_irq machine descriptor
callback since we need to setup the Bus Interface Unit before SMP in
particular, but we also need to be able to remap registers.
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
-rw-r--r-- | arch/arm/mach-bcm/brcmstb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm/brcmstb.c b/arch/arm/mach-bcm/brcmstb.c index 3a60f7ee3f0c..99a67cfb7c0d 100644 --- a/arch/arm/mach-bcm/brcmstb.c +++ b/arch/arm/mach-bcm/brcmstb.c | |||
@@ -12,11 +12,19 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/irqchip.h> | ||
15 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
17 | #include <linux/soc/brcmstb/brcmstb.h> | ||
16 | 18 | ||
17 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
18 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
19 | 21 | ||
22 | static void __init brcmstb_init_irq(void) | ||
23 | { | ||
24 | irqchip_init(); | ||
25 | brcmstb_biuctrl_init(); | ||
26 | } | ||
27 | |||
20 | static const char *const brcmstb_match[] __initconst = { | 28 | static const char *const brcmstb_match[] __initconst = { |
21 | "brcm,bcm7445", | 29 | "brcm,bcm7445", |
22 | "brcm,brcmstb", | 30 | "brcm,brcmstb", |
@@ -25,4 +33,5 @@ static const char *const brcmstb_match[] __initconst = { | |||
25 | 33 | ||
26 | DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)") | 34 | DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)") |
27 | .dt_compat = brcmstb_match, | 35 | .dt_compat = brcmstb_match, |
36 | .init_irq = brcmstb_init_irq, | ||
28 | MACHINE_END | 37 | MACHINE_END |