mtd: spi-nor: move spi_nor_write_ear() to winbond module
authorMichael Walle <michael@walle.cc>
Fri, 29 Apr 2022 10:01:53 +0000 (12:01 +0200)
committerPratyush Yadav <p.yadav@ti.com>
Mon, 2 May 2022 09:12:00 +0000 (14:42 +0530)
commit94f697c5384bd7f9632acca483ba1ef9dd99ea97
tree3d151571aa93bdcea17e7c47810bc05ae412e613
parent5ad784d990ac5d9b3ee74c637bc835501df1ff87
mtd: spi-nor: move spi_nor_write_ear() to winbond module

The "Extended Address Register" is winbond specific. If the flash is
larger than 16MiB and is used in 3 byte address mode, it is used to set
the remaining address bits. Move the write_ear() function, the opcode
macros and the spimem op template into the winbond module and rename
them accordingly.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220429100153.2338501-1-michael@walle.cc
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/winbond.c
include/linux/mtd/spi-nor.h