Skip to contentSkip to conversation

ssb: Add PMU support

PATCH New Michael Buesch 1 participant 1 message Feb 3, 2009 Sonics silicon backplane driver (ssb)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ssb: Add PMU support

This adds support for the SSB PMU.
A PMU is found on Low-Power devices.

---

John, please queue for the next round of features.

drivers/ssb/Makefile +1 -0
Index: wireless-testing/drivers/ssb/Makefile
===================================================================
@@ -9,6 +9,7 @@ ssb-$(CONFIG_SSB_PCMCIAHOST)		+= pcmcia.
 
 # built-in drivers
 ssb-y					+= driver_chipcommon.o
+ssb-y					+= driver_chipcommon_pmu.o
 ssb-$(CONFIG_SSB_DRIVER_MIPS)		+= driver_mipscore.o
 ssb-$(CONFIG_SSB_DRIVER_EXTIF)		+= driver_extif.o
 ssb-$(CONFIG_SSB_DRIVER_PCICORE)	+= driver_pcicore.o
drivers/ssb/driver_chipcommon_pmu.c new file +508 -0

508 lines not on this page · raw message

drivers/ssb/driver_chipcommon.c +1 -13
Index: wireless-testing/drivers/ssb/driver_chipcommon.c
===================================================================
@@ -26,19 +26,6 @@ enum ssb_clksrc {
 };
 
 
-static inline u32 chipco_read32(struct ssb_chipcommon *cc,
-				u16 offset)
-{
-	return ssb_read32(cc->dev, offset);
-}
-
-static inline void chipco_write32(struct ssb_chipcommon *cc,
-				  u16 offset,
-				  u32 value)
-{
-	ssb_write32(cc->dev, offset, value);
-}
-
 static inline u32 chipco_write32_masked(struct ssb_chipcommon *cc, u16 offset,
 					u32 mask, u32 value)
 {
@@ -246,6 +233,7 @@ void ssb_chipcommon_init(struct ssb_chip
 {
 	if (!cc->dev)
 		return; /* We don't have a ChipCommon */
+	ssb_pmu_init(cc);
 	chipco_powercontrol_init(cc);
 	ssb_chipco_set_clockmode(cc, SSB_CLKMODE_FAST);
 	calc_fast_powerup_delay(cc);
include/linux/ssb/ssb_driver_chipcommon.h +224 -0

257 lines not on this page · raw message

Signature · 1 line
Greetings, Michael.