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