Skip to content

Commit 62dce7e

Browse files
committed
mtd: spinand: winbond: Register W25N vendor specific operation
Provide the Winbond W25N specific "select target" operation to let the core verify it is supported by the controller before using it. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 87ec769 commit 62dce7e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/mtd/nand/spi/winbond.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ spinand_fill_winbond_write_vcr_op(struct spinand_device *spinand, u8 reg, void *
105105
SPI_MEM_OP_NO_DUMMY, \
106106
SPI_MEM_OP_DATA_OUT(1, buf, 1))
107107

108+
static SPINAND_OP_VARIANTS(winbond_w25_ops,
109+
SPINAND_WINBOND_SELECT_TARGET_1S_0_1S(NULL));
110+
108111
static struct spi_mem_op
109112
spinand_fill_winbond_select_target_op(struct spinand_device *spinand, void *valptr)
110113
{
@@ -497,6 +500,7 @@ static const struct spinand_info winbond_spinand_table[] = {
497500
&write_cache_variants,
498501
&update_cache_variants),
499502
0,
503+
SPINAND_INFO_VENDOR_OPS(&winbond_w25_ops),
500504
SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
501505
SPINAND_SELECT_TARGET(w25m02gv_select_target)),
502506
SPINAND_INFO("W25N02JW", /* high-speed 1.8V */

0 commit comments

Comments
 (0)