[PATCH] mtd: spinand: winbond: Add support for W25N02KW

Miquel Raynal miquel.raynal at bootlin.com
Fri Oct 27 10:43:58 PDT 2023


Hello,

haibo.chen at nxp.com wrote on Fri, 20 Oct 2023 19:32:02 +0800:

> From: Haibo Chen <haibo.chen at nxp.com>
> 
> Add the necessary info to support W25N02KW.
> 
> Signed-off-by: Haibo Chen <haibo.chen at 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



More information about the linux-mtd mailing list