Lines Matching full:nor
7 #include <linux/mtd/spi-nor.h>
21 w25q128_post_bfpt_fixups(struct spi_nor *nor, in w25q128_post_bfpt_fixups() argument
32 nor->params->size == SZ_2M && in w25q128_post_bfpt_fixups()
33 nor->params->erase_map.regions[0].size == SZ_2M) { in w25q128_post_bfpt_fixups()
34 nor->params->size = SZ_16M; in w25q128_post_bfpt_fixups()
35 nor->params->erase_map.regions[0].size = SZ_16M; in w25q128_post_bfpt_fixups()
46 w25q256_post_bfpt_fixups(struct spi_nor *nor, in w25q256_post_bfpt_fixups() argument
60 nor->flags |= SNOR_F_4B_OPCODES; in w25q256_post_bfpt_fixups()
262 * @nor: pointer to 'struct spi_nor'.
267 static int winbond_nor_write_ear(struct spi_nor *nor, u8 ear) in winbond_nor_write_ear() argument
271 nor->bouncebuf[0] = ear; in winbond_nor_write_ear()
273 if (nor->spimem) { in winbond_nor_write_ear()
274 struct spi_mem_op op = WINBOND_NOR_WREAR_OP(nor->bouncebuf); in winbond_nor_write_ear()
276 spi_nor_spimem_setup_op(nor, &op, nor->reg_proto); in winbond_nor_write_ear()
278 ret = spi_mem_exec_op(nor->spimem, &op); in winbond_nor_write_ear()
280 ret = spi_nor_controller_ops_write_reg(nor, in winbond_nor_write_ear()
282 nor->bouncebuf, 1); in winbond_nor_write_ear()
286 dev_dbg(nor->dev, "error %d writing EAR\n", ret); in winbond_nor_write_ear()
294 * @nor: pointer to 'struct spi_nor'.
300 static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in winbond_nor_set_4byte_addr_mode() argument
304 ret = spi_nor_set_4byte_addr_mode_en4b_ex4b(nor, enable); in winbond_nor_set_4byte_addr_mode()
313 ret = spi_nor_write_enable(nor); in winbond_nor_set_4byte_addr_mode()
317 ret = winbond_nor_write_ear(nor, 0); in winbond_nor_set_4byte_addr_mode()
321 return spi_nor_write_disable(nor); in winbond_nor_set_4byte_addr_mode()
332 static int winbond_nor_late_init(struct spi_nor *nor) in winbond_nor_late_init() argument
334 struct spi_nor_flash_parameter *params = nor->params; in winbond_nor_late_init()