Home
last modified time | relevance | path

Searched refs:b47s (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/mtd/devices/
H A Dbcm47xxsflash.c22 static void bcm47xxsflash_cmd(struct bcm47xxsflash *b47s, u32 opcode) in bcm47xxsflash_cmd() argument
26 b47s->cc_write(b47s, BCMA_CC_FLASHCTL, BCMA_CC_FLASHCTL_START | opcode); in bcm47xxsflash_cmd()
28 if (!(b47s->cc_read(b47s, BCMA_CC_FLASHCTL) & in bcm47xxsflash_cmd()
36 static int bcm47xxsflash_poll(struct bcm47xxsflash *b47s, int timeout) in bcm47xxsflash_poll() argument
41 switch (b47s->type) { in bcm47xxsflash_poll()
43 bcm47xxsflash_cmd(b47s, OPCODE_ST_RDSR); in bcm47xxsflash_poll()
44 if (!(b47s->cc_read(b47s, BCMA_CC_FLASHDATA) & in bcm47xxsflash_poll()
49 bcm47xxsflash_cmd(b47s, OPCODE_AT_STATUS); in bcm47xxsflash_poll()
50 if (b47s->cc_read(b47s, BCMA_CC_FLASHDATA) & in bcm47xxsflash_poll()
71 struct bcm47xxsflash *b47s = mtd->priv; in bcm47xxsflash_erase() local
[all …]
H A Dbcm47xxsflash.h67 int (*cc_read)(struct bcm47xxsflash *b47s, u16 offset);
68 void (*cc_write)(struct bcm47xxsflash *b47s, u16 offset, u32 value);