summaryrefslogtreecommitdiffstats
path: root/include/linux/soc
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2015-09-14 12:09:34 -0700
committerFlorian Fainelli <f.fainelli@gmail.com>2015-10-09 13:42:16 -0700
commit9a764234eee689ea800424ab99b08ff07a8bdbcd (patch)
treead048063e4d7d6387c54cba507da8aa661c5eed0 /include/linux/soc
parentd52fad262041217be0a0e7049253186ec9cfb2a6 (diff)
downloadop-kernel-dev-9a764234eee689ea800424ab99b08ff07a8bdbcd.zip
op-kernel-dev-9a764234eee689ea800424ab99b08ff07a8bdbcd.tar.gz
soc: brcmstb: Add Bus Interface Unit control setup
Broadcom STB SoCs (brcmstb) require an early setup of their Bus Interface Unit control register, this needs to happen before SMP is brought up because it affects how the CPU complex will be interfaced to the memory controller. Add support code which properly initializes the BIU registers based on whether "brcm,write-pairing" is present in Device Tree, and take care of saving and restoring credit register settings during system-wide suspend/resume operations. Acked-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'include/linux/soc')
-rw-r--r--include/linux/soc/brcmstb/brcmstb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/soc/brcmstb/brcmstb.h b/include/linux/soc/brcmstb/brcmstb.h
new file mode 100644
index 0000000..337ce41
--- /dev/null
+++ b/include/linux/soc/brcmstb/brcmstb.h
@@ -0,0 +1,10 @@
+#ifndef __BRCMSTB_SOC_H
+#define __BRCMSTB_SOC_H
+
+/*
+ * Bus Interface Unit control register setup, must happen early during boot,
+ * before SMP is brought up, called by machine entry point.
+ */
+void brcmstb_biuctrl_init(void);
+
+#endif /* __BRCMSTB_SOC_H */
OpenPOWER on IntegriCloud