Lines Matching defs:cc
28 int bcma_nflash_init(struct bcma_drv_cc *cc)
30 struct bcma_bus *bus = cc->core->bus;
34 cc->core->id.rev != 38) {
39 if (!(cc->capabilities & BCMA_CC_CAP_NFLASH)) {
44 cc->nflash.present = true;
45 if (cc->core->id.rev == 38 &&
46 (cc->status & BCMA_CC_CHIPST_5357_NAND_BOOT)) {
47 cc->nflash.boot = true;
49 reg = bcma_cc_read32(cc, BCMA_CC_NAND_CS_NAND_SELECT) & 0xff;
50 cc->nflash.brcmnand_info.chip_select = ffs(reg) - 1;
51 cc->nflash.brcmnand_info.part_probe_types = probes;
52 cc->nflash.brcmnand_info.ecc_stepsize = 512;
53 cc->nflash.brcmnand_info.ecc_strength = 1;
59 bcma_nflash_dev.dev.platform_data = &cc->nflash;