Lines Matching +full:256 +full:- +full:byte
1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/mtd/spi-nor.h>
27 * Unfortunately, Winbond has re-used the same JEDEC ID for both in w25q256_post_bfpt_fixups()
33 if (bfpt_header->major == SFDP_JESD216_MAJOR && in w25q256_post_bfpt_fixups()
34 bfpt_header->minor == SFDP_JESD216A_MINOR) in w25q256_post_bfpt_fixups()
35 nor->flags |= SNOR_F_4B_OPCODES; in w25q256_post_bfpt_fixups()
45 /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
64 { "w25q16jv-im/jm", INFO(0xef7015, 0, 64 * 1024, 32)
79 OTP_INFO(256, 3, 0x1000, 0x1000) },
87 OTP_INFO(256, 3, 0x1000, 0x1000) },
92 { "w25q128jwm", INFO(0xef8018, 0, 64 * 1024, 256)
111 { "w25q128fw", INFO(0xef6018, 0, 64 * 1024, 256)
115 { "w25q128jv", INFO(0xef7018, 0, 64 * 1024, 256)
123 { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256)
138 OTP_INFO(256, 3, 0x1000, 0x1000) },
145 * winbond_nor_write_ear() - Write Extended Address Register.
149 * Return: 0 on success, -errno otherwise.
155 nor->bouncebuf[0] = ear; in winbond_nor_write_ear()
157 if (nor->spimem) { in winbond_nor_write_ear()
158 struct spi_mem_op op = WINBOND_NOR_WREAR_OP(nor->bouncebuf); in winbond_nor_write_ear()
160 spi_nor_spimem_setup_op(nor, &op, nor->reg_proto); in winbond_nor_write_ear()
162 ret = spi_mem_exec_op(nor->spimem, &op); in winbond_nor_write_ear()
166 nor->bouncebuf, 1); in winbond_nor_write_ear()
170 dev_dbg(nor->dev, "error %d writing EAR\n", ret); in winbond_nor_write_ear()
176 * winbond_nor_set_4byte_addr_mode() - Set 4-byte address mode for Winbond
179 * @enable: true to enter the 4-byte address mode, false to exit the 4-byte
182 * Return: 0 on success, -errno otherwise.
193 * On Winbond W25Q256FV, leaving 4byte mode causes the Extended Address in winbond_nor_set_4byte_addr_mode()
194 * Register to be set to 1, so all 3-byte-address reads come from the in winbond_nor_set_4byte_addr_mode()
218 nor->params->set_4byte_addr_mode = winbond_nor_set_4byte_addr_mode; in winbond_nor_default_init()
223 if (nor->params->otp.org->n_regions) in winbond_nor_late_init()
224 nor->params->otp.ops = &winbond_nor_otp_ops; in winbond_nor_late_init()