diff options
author | Yuan Yao <yao.yuan@nxp.com> | 2016-03-15 14:36:42 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-05-18 08:51:16 -0700 |
commit | febffe8dd1c7ba841890eec578b050bb6faa3273 (patch) | |
tree | b0c6d22eacf2102440747d576127394e8ee5f662 /drivers/mtd | |
parent | 4e14741833607f49eaccdfd4add9cb39e103c2db (diff) | |
download | u-boot-imx-febffe8dd1c7ba841890eec578b050bb6faa3273.zip u-boot-imx-febffe8dd1c7ba841890eec578b050bb6faa3273.tar.gz u-boot-imx-febffe8dd1c7ba841890eec578b050bb6faa3273.tar.bz2 |
spi: fsl_qspi: Enable Spansion S25FS-S family flashes
The flash type of LS2085AQDS QSPI is S25FS256S. It has special write
any device register command and read any device register command.
This patch enable support for those commands.
Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/sf_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h index 007a5a0..da2bb7b 100644 --- a/drivers/mtd/spi/sf_internal.h +++ b/drivers/mtd/spi/sf_internal.h @@ -127,6 +127,11 @@ int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len, const void *buf); #endif +#ifdef CONFIG_SPI_FLASH_SPANSION +/* Used for Spansion S25FS-S family flash only. */ +#define CMD_SPANSION_RDAR 0x65 /* Read any device register */ +#define CMD_SPANSION_WRAR 0x71 /* Write any device register */ +#endif /** * struct spi_flash_params - SPI/QSPI flash device params structure * |