Message ID | 20231020113202.2782891-1-haibo.chen@nxp.com |
---|---|
State | New |
Headers | show |
Series | mtd: spinand: winbond: Add support for W25N02KW | expand |
Hello, haibo.chen@nxp.com wrote on Fri, 20 Oct 2023 19:32:02 +0800: > From: Haibo Chen <haibo.chen@nxp.com> > > Add the necessary info to support W25N02KW. > > Signed-off-by: Haibo Chen <haibo.chen@nxp.com> > --- > drivers/mtd/nand/spi/winbond.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c > index f507e3759301..5c759656c4f9 100644 > --- a/drivers/mtd/nand/spi/winbond.c > +++ b/drivers/mtd/nand/spi/winbond.c > @@ -169,6 +169,15 @@ static const struct spinand_info winbond_spinand_table[] = { > &update_cache_variants), > 0, > SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), > + SPINAND_INFO("W25N02KW", > + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xba, 0x22), > + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1), > + NAND_ECCREQ(8, 512), > + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, > + &write_cache_variants, > + &update_cache_variants), > + 0, > + SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), > }; > > static int winbond_spinand_init(struct spinand_device *spinand) The patch did not apply correctly on my tree. Please wait for -rc1, rebase and re-submit. Thanks, Miquèl
diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index f507e3759301..5c759656c4f9 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -169,6 +169,15 @@ static const struct spinand_info winbond_spinand_table[] = { &update_cache_variants), 0, SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), + SPINAND_INFO("W25N02KW", + SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xba, 0x22), + NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1), + NAND_ECCREQ(8, 512), + SPINAND_INFO_OP_VARIANTS(&read_cache_variants, + &write_cache_variants, + &update_cache_variants), + 0, + SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)), }; static int winbond_spinand_init(struct spinand_device *spinand)