Lines Matching refs:cc
599 static inline bool ssb_chipco_available(struct ssb_chipcommon *cc) in ssb_chipco_available() argument
601 return (cc->dev != NULL); in ssb_chipco_available()
605 #define chipco_read32(cc, offset) ssb_read32((cc)->dev, offset) argument
606 #define chipco_write32(cc, offset, val) ssb_write32((cc)->dev, offset, val) argument
608 #define chipco_mask32(cc, offset, mask) \ argument
609 chipco_write32(cc, offset, chipco_read32(cc, offset) & (mask))
610 #define chipco_set32(cc, offset, set) \ argument
611 chipco_write32(cc, offset, chipco_read32(cc, offset) | (set))
612 #define chipco_maskset32(cc, offset, mask, set) \ argument
613 chipco_write32(cc, offset, (chipco_read32(cc, offset) & (mask)) | (set))
615 extern void ssb_chipcommon_init(struct ssb_chipcommon *cc);
617 extern void ssb_chipco_suspend(struct ssb_chipcommon *cc);
618 extern void ssb_chipco_resume(struct ssb_chipcommon *cc);
620 extern void ssb_chipco_get_clockcpu(struct ssb_chipcommon *cc,
622 extern void ssb_chipco_get_clockcontrol(struct ssb_chipcommon *cc,
624 extern void ssb_chipco_timing_init(struct ssb_chipcommon *cc,
633 extern void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc,
636 extern u32 ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks);
638 void ssb_chipco_irq_mask(struct ssb_chipcommon *cc, u32 mask, u32 value);
640 u32 ssb_chipco_irq_status(struct ssb_chipcommon *cc, u32 mask);
643 u32 ssb_chipco_gpio_in(struct ssb_chipcommon *cc, u32 mask);
644 u32 ssb_chipco_gpio_out(struct ssb_chipcommon *cc, u32 mask, u32 value);
645 u32 ssb_chipco_gpio_outen(struct ssb_chipcommon *cc, u32 mask, u32 value);
646 u32 ssb_chipco_gpio_control(struct ssb_chipcommon *cc, u32 mask, u32 value);
647 u32 ssb_chipco_gpio_intmask(struct ssb_chipcommon *cc, u32 mask, u32 value);
648 u32 ssb_chipco_gpio_polarity(struct ssb_chipcommon *cc, u32 mask, u32 value);
649 u32 ssb_chipco_gpio_pullup(struct ssb_chipcommon *cc, u32 mask, u32 value);
650 u32 ssb_chipco_gpio_pulldown(struct ssb_chipcommon *cc, u32 mask, u32 value);
653 extern int ssb_chipco_serial_init(struct ssb_chipcommon *cc,
658 extern void ssb_pmu_init(struct ssb_chipcommon *cc);
667 void ssb_pmu_set_ldo_voltage(struct ssb_chipcommon *cc,
669 void ssb_pmu_set_ldo_paref(struct ssb_chipcommon *cc, bool on);
670 void ssb_pmu_spuravoid_pllupdate(struct ssb_chipcommon *cc, int spuravoid);