aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb/driver_chipcommon.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-02-03 13:23:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:49 -0500
commitc9703146158c0415a60799570397e488bc982af5 (patch)
tree3928988b53a4dc6dba56acbdb53ef6fadaeb4a07 /drivers/ssb/driver_chipcommon.c
parentbaf62eecfa75a26682efdfed0d74256992a47e6b (diff)
ssb: Add PMU support
This adds support for the SSB PMU. A PMU is found on Low-Power devices. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/driver_chipcommon.c')
-rw-r--r--drivers/ssb/driver_chipcommon.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ssb/driver_chipcommon.c b/drivers/ssb/driver_chipcommon.c
index 571f4fd55236..9681536163ca 100644
--- a/drivers/ssb/driver_chipcommon.c
+++ b/drivers/ssb/driver_chipcommon.c
@@ -26,19 +26,6 @@ enum ssb_clksrc {
26}; 26};
27 27
28 28
29static inline u32 chipco_read32(struct ssb_chipcommon *cc,
30 u16 offset)
31{
32 return ssb_read32(cc->dev, offset);
33}
34
35static inline void chipco_write32(struct ssb_chipcommon *cc,
36 u16 offset,
37 u32 value)
38{
39 ssb_write32(cc->dev, offset, value);
40}
41
42static inline u32 chipco_write32_masked(struct ssb_chipcommon *cc, u16 offset, 29static inline u32 chipco_write32_masked(struct ssb_chipcommon *cc, u16 offset,
43 u32 mask, u32 value) 30 u32 mask, u32 value)
44{ 31{
@@ -246,6 +233,7 @@ void ssb_chipcommon_init(struct ssb_chipcommon *cc)
246{ 233{
247 if (!cc->dev) 234 if (!cc->dev)
248 return; /* We don't have a ChipCommon */ 235 return; /* We don't have a ChipCommon */
236 ssb_pmu_init(cc);
249 chipco_powercontrol_init(cc); 237 chipco_powercontrol_init(cc);
250 ssb_chipco_set_clockmode(cc, SSB_CLKMODE_FAST); 238 ssb_chipco_set_clockmode(cc, SSB_CLKMODE_FAST);
251 calc_fast_powerup_delay(cc); 239 calc_fast_powerup_delay(cc);