soc: brcmstb: Add Bus Interface Unit control setup
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 14 Sep 2015 19:09:34 +0000 (12:09 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 9 Oct 2015 20:42:16 +0000 (13:42 -0700)
commit9a764234eee689ea800424ab99b08ff07a8bdbcd
treead048063e4d7d6387c54cba507da8aa661c5eed0
parentd52fad262041217be0a0e7049253186ec9cfb2a6
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>
drivers/soc/brcmstb/Makefile
drivers/soc/brcmstb/biuctrl.c [new file with mode: 0644]
include/linux/soc/brcmstb/brcmstb.h [new file with mode: 0644]