bcma: support PMU present as separated bus core
authorRafał Miłecki <zajec5@gmail.com>
Tue, 19 Jan 2016 07:45:26 +0000 (08:45 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 6 Feb 2016 11:36:11 +0000 (13:36 +0200)
commitb3c47afbf54d86daa0473895e8ca9e8b663f5c1a
tree026a844f184d844c53855df61c614aa59ae9950e
parent67edf354faaf93156646e741483b2313bc756c0f
bcma: support PMU present as separated bus core

On recent Broadcom chipsets PMU is present as separated core and it
can't be accessed using ChipCommon anymore as it fails with e.g.:
[    0.000577] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf1000604

Solve it by using a new (PMU) core pointer set to ChipCommon or PMU
depending on the hardware capabilities.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/bcma/driver_chipcommon.c
drivers/bcma/driver_chipcommon_pmu.c
include/linux/bcma/bcma_driver_chipcommon.h