MLK-15958-1 mtd: spi: Add 4bytes extend address support
authorYe Li <ye.li@nxp.com>
Wed, 12 Jul 2017 09:26:08 +0000 (04:26 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:02 +0000 (02:37 +0800)
commitc6815bcc44622861e3606c9aa7efa14c7db5ea5a
tree1433889421f6c21f7b89386426346692d9c7a8c5
parent926ebc326f62ef8bddb8230fc409ccc14b9f8c7a
MLK-15958-1 mtd: spi: Add 4bytes extend address support

Current SPI flash framework only supports to set bank register
(CONFIG_SPI_FLASH_BAR) for flash with size > 16MiB. But some new flash device
(for example, mt35xu512aba) does not support this way, it only supports
4bytes extend address.

To access the whole memory size for such flash device, we add the support
for this 4bytes extend address mode to SPI flash framework.
The configuration CONFIG_SPI_FLASH_4BYTES_ADDR is used to enable the feature.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/spi_flash.c