diff options
author | Takahiro Kuwano <Takahiro.Kuwano@infineon.com> | 2021-06-29 15:01:04 +0900 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2021-06-29 19:16:54 +0530 |
commit | 5b8ec59e2a219185127fcaa640c2f5d5aba3acd6 (patch) | |
tree | 60eb690ef52de93919876eb9e4937d3a9184cc3b /drivers/mtd | |
parent | 1c3dd193b5ba76da9d5b2b422d04605321a91c94 (diff) | |
download | u-boot-5b8ec59e2a219185127fcaa640c2f5d5aba3acd6.zip u-boot-5b8ec59e2a219185127fcaa640c2f5d5aba3acd6.tar.gz u-boot-5b8ec59e2a219185127fcaa640c2f5d5aba3acd6.tar.bz2 |
mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t
Fixes mode clocks for SPINOR_OP_READ_FAST_4B in tiny.
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/spi-nor-tiny.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 70061f1..68152ce 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -583,6 +583,12 @@ static int spi_nor_init_params(struct spi_nor *nor, spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_FAST], 0, 8, SPINOR_OP_READ_FAST, SNOR_PROTO_1_1_1); +#ifdef CONFIG_SPI_FLASH_SPANSION + if (JEDEC_MFR(info) == SNOR_MFR_CYPRESS && + (info->id[1] == 0x2a || info->id[1] == 0x2b)) + /* 0x2a: S25HL (QSPI, 3.3V), 0x2b: S25HS (QSPI, 1.8V) */ + params->reads[SNOR_CMD_READ_FAST].num_mode_clocks = 8; +#endif } if (info->flags & SPI_NOR_QUAD_READ) { |