diff options
author | Takahiro Kuwano <Takahiro.Kuwano@infineon.com> | 2023-12-22 14:46:02 +0900 |
---|---|---|
committer | Jagan Teki <jagan@edgeble.ai> | 2024-01-29 19:34:17 +0530 |
commit | c4de92d949b62440706c9f9e7f33076907a5a946 (patch) | |
tree | 9bbe4af3270a58fb726320baf07333841a7a0950 /drivers/mtd | |
parent | 9901312e09af0bf51e35628cd8547637c103ed6c (diff) | |
download | u-boot-c4de92d949b62440706c9f9e7f33076907a5a946.zip u-boot-c4de92d949b62440706c9f9e7f33076907a5a946.tar.gz u-boot-c4de92d949b62440706c9f9e7f33076907a5a946.tar.bz2 |
mtd: spi-nor-core: Rework s25_mdp_ready() to support Octal DTR mode
s25_mdp_ready() handles status polling for multi-die package parts that
requires to read and check status register for each die. To support
S28HS02GT(dual-die package with Octal DTR support), rename function and
use nor->rdsr_dummy in octal DTR mode.
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-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 829ca7b..32cdb9d 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -3370,13 +3370,13 @@ static struct spi_nor_fixups s25fs_s_fixups = { .post_sfdp = s25fs_s_post_sfdp_fixup, }; -static int s25_mdp_ready(struct spi_nor *nor) +static int s25_s28_mdp_ready(struct spi_nor *nor) { u32 addr; int ret; for (addr = 0; addr < nor->mtd.size; addr += SZ_128M) { - ret = spansion_sr_ready(nor, addr, 0); + ret = spansion_sr_ready(nor, addr, nor->rdsr_dummy); if (!ret) return ret; } @@ -3446,7 +3446,7 @@ static int s25_setup(struct spi_nor *nor, const struct flash_info *info, * all dies' status via read any register. */ if (nor->mtd.size > SZ_128M) - nor->ready = s25_mdp_ready; + nor->ready = s25_s28_mdp_ready; return spi_nor_default_setup(nor, info, params); } |