summaryrefslogtreecommitdiffstats
path: root/drivers/ssb/main.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-02-01 00:13:56 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:55:36 -0500
commitd486a5b4996d2fffd10098725781f2c5690774bc (patch)
tree4b57776194a09f2164494dfd3cde2121dfd9f791 /drivers/ssb/main.c
parentbedb2a18af0a4e7565182c07fadd854e3ae8c9bc (diff)
downloadlinux-stable-d486a5b4996d2fffd10098725781f2c5690774bc.tar.gz
linux-stable-d486a5b4996d2fffd10098725781f2c5690774bc.tar.bz2
linux-stable-d486a5b4996d2fffd10098725781f2c5690774bc.zip
ssb: add support for bcm5354
This patch adds support the the BCM5354 SoC. It has a PMU and a constant not configurable clock. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r--drivers/ssb/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index bb6317fb925c..2a0a1b99e0e4 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -1094,6 +1094,9 @@ u32 ssb_clockspeed(struct ssb_bus *bus)
u32 plltype;
u32 clkctl_n, clkctl_m;
+ if (bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU)
+ return ssb_pmu_get_controlclock(&bus->chipco);
+
if (ssb_extif_available(&bus->extif))
ssb_extif_get_clockcontrol(&bus->extif, &plltype,
&clkctl_n, &clkctl_m);