• Home
  • Raw
  • Download

Lines Matching refs:cc

43 static int bcm47xxnflash_ops_bcm4706_ctl_cmd(struct bcma_drv_cc *cc, u32 code)  in bcm47xxnflash_ops_bcm4706_ctl_cmd()  argument
47 bcma_cc_write32(cc, BCMA_CC_NFLASH_CTL, NCTL_START | code); in bcm47xxnflash_ops_bcm4706_ctl_cmd()
49 if (!(bcma_cc_read32(cc, BCMA_CC_NFLASH_CTL) & NCTL_START)) { in bcm47xxnflash_ops_bcm4706_ctl_cmd()
61 static int bcm47xxnflash_ops_bcm4706_poll(struct bcma_drv_cc *cc) in bcm47xxnflash_ops_bcm4706_poll() argument
66 if (bcma_cc_read32(cc, BCMA_CC_NFLASH_CTL) & NCTL_READY) { in bcm47xxnflash_ops_bcm4706_poll()
67 if (bcma_cc_read32(cc, BCMA_CC_NFLASH_CTL) & in bcm47xxnflash_ops_bcm4706_poll()
105 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_COL_ADDR, in bcm47xxnflash_ops_bcm4706_read()
107 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_read()
114 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, ctlcode)) in bcm47xxnflash_ops_bcm4706_read()
116 if (bcm47xxnflash_ops_bcm4706_poll(b47n->cc)) in bcm47xxnflash_ops_bcm4706_read()
124 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, in bcm47xxnflash_ops_bcm4706_read()
127 *dest = bcma_cc_read32(b47n->cc, BCMA_CC_NFLASH_DATA); in bcm47xxnflash_ops_bcm4706_read()
140 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_write() local
151 bcma_cc_write32(cc, BCMA_CC_NFLASH_DATA, *data); in bcm47xxnflash_ops_bcm4706_write()
156 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, ctlcode)) { in bcm47xxnflash_ops_bcm4706_write()
185 bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, code); in bcm47xxnflash_ops_bcm4706_cmd_ctrl()
199 return !!(bcma_cc_read32(b47n->cc, BCMA_CC_NFLASH_CTL) & NCTL_READY); in bcm47xxnflash_ops_bcm4706_dev_ready()
215 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_cmdfunc() local
234 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, ctlcode)) { in bcm47xxnflash_ops_bcm4706_cmdfunc()
248 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, in bcm47xxnflash_ops_bcm4706_cmdfunc()
254 bcma_cc_read32(b47n->cc, BCMA_CC_NFLASH_DATA) in bcm47xxnflash_ops_bcm4706_cmdfunc()
261 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, ctlcode)) in bcm47xxnflash_ops_bcm4706_cmdfunc()
271 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
275 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, ctlcode)) in bcm47xxnflash_ops_bcm4706_cmdfunc()
282 bcma_cc_write32(cc, BCMA_CC_NFLASH_COL_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
284 bcma_cc_write32(cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_cmdfunc()
290 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, ctlcode)) in bcm47xxnflash_ops_bcm4706_cmdfunc()
294 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, NCTL_CMD0 | in bcm47xxnflash_ops_bcm4706_cmdfunc()
297 if (bcm47xxnflash_ops_bcm4706_poll(cc)) in bcm47xxnflash_ops_bcm4706_cmdfunc()
311 struct bcma_drv_cc *cc = b47n->cc; in bcm47xxnflash_ops_bcm4706_read_byte() local
323 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(cc, NCTL_READ)) in bcm47xxnflash_ops_bcm4706_read_byte()
325 return bcma_cc_read32(cc, BCMA_CC_NFLASH_DATA) & 0xff; in bcm47xxnflash_ops_bcm4706_read_byte()
398 bcma_cc_set32(b47n->cc, BCMA_CC_4706_FLASHSCFG, in bcm47xxnflash_ops_bcm4706_init()
402 if (b47n->cc->status & BCMA_CC_CHIPST_4706_PKG_OPTION) { in bcm47xxnflash_ops_bcm4706_init()
406 freq = bcma_chipco_pll_read(b47n->cc, 4); in bcm47xxnflash_ops_bcm4706_init()
417 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_WAITCNT0, in bcm47xxnflash_ops_bcm4706_init()
444 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_CONF, val); in bcm47xxnflash_ops_bcm4706_init()
448 bcma_cc_mask32(b47n->cc, BCMA_CC_4706_FLASHSCFG, in bcm47xxnflash_ops_bcm4706_init()