Lines Matching refs:cc
444 ai_buscore_setup(struct si_info *sii, struct bcma_device *cc)
447 if (cc->bus->nr_cores == 0)
451 sii->pub.ccrev = cc->id.rev;
454 sii->chipst = bcma_read32(cc, CHIPCREGOFFS(chipstatus));
457 sii->pub.cccaps = bcma_read32(cc, CHIPCREGOFFS(capabilities));
461 sii->pub.pmucaps = bcma_read32(cc,
473 struct bcma_device *cc;
479 cc = pbus->drv_cc.core;
487 if (!ai_buscore_setup(sii, cc))
491 bcma_write32(cc, CHIPCREGOFFS(gpiopullup), 0);
492 bcma_write32(cc, CHIPCREGOFFS(gpiopulldown), 0);
542 struct bcma_device *cc;
547 cc = sii->icbus->drv_cc.core;
551 bcma_maskset32(cc, regoff, ~mask, val);
554 w = bcma_read32(cc, regoff);
560 static uint ai_slowclk_src(struct si_pub *sih, struct bcma_device *cc)
570 struct bcma_device *cc)
575 div = bcma_read32(cc, CHIPCREGOFFS(system_clk_ctl));
581 ai_clkctl_setdelay(struct si_pub *sih, struct bcma_device *cc)
594 slowclk = ai_slowclk_src(sih, cc);
600 ai_slowclk_freq(sih, false, cc);
605 bcma_write32(cc, CHIPCREGOFFS(pll_on_delay), pll_on_delay);
606 bcma_write32(cc, CHIPCREGOFFS(fref_sel_delay), fref_sel_delay);
613 struct bcma_device *cc;
618 cc = sii->icbus->drv_cc.core;
619 if (cc == NULL)
623 bcma_maskset32(cc, CHIPCREGOFFS(system_clk_ctl), SYCC_CD_MASK,
626 ai_clkctl_setdelay(sih, cc);
636 struct bcma_device *cc;
650 cc = sii->icbus->drv_cc.core;
651 if (cc) {
652 slowminfreq = ai_slowclk_freq(sih, false, cc);
653 fpdelay = (((bcma_read32(cc, CHIPCREGOFFS(pll_on_delay)) + 2)
670 struct bcma_device *cc;
674 cc = sii->icbus->drv_cc.core;
675 bcma_core_set_clockmode(cc, mode);
683 struct bcma_device *cc;
685 cc = sii->icbus->drv_cc.core;
688 bcma_set32(cc, CHIPCREGOFFS(gpiocontrol), GPIO_CTRL_EPA_EN_MASK);