diff options
author | Takahiro Kuwano <Takahiro.Kuwano@infineon.com> | 2022-09-01 09:05:30 +0300 |
---|---|---|
committer | Jagan Teki <jagan@edgeble.ai> | 2022-10-23 08:20:04 +0300 |
commit | ee1c709cfde71b339a5c5dd0788522340c4c7e92 (patch) | |
tree | 0b45e226e5a280a81519d792f291410af4ac8e68 /drivers/mtd | |
parent | de9e8378a8f66c5547dc2e5942c7f89c5771d53a (diff) | |
download | u-boot-ee1c709cfde71b339a5c5dd0788522340c4c7e92.tar.xz |
mtd: spi-nor-core: Default to addr_width of 3 for configurable widths
JESD216D-01 mentions that "defaults to 3-Byte mode; enters 4-Byte mode on
command."
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index ec9b07a78f..f8d5669969 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -2236,6 +2236,7 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor, /* Number of address bytes. */ switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) { case BFPT_DWORD1_ADDRESS_BYTES_3_ONLY: + case BFPT_DWORD1_ADDRESS_BYTES_3_OR_4: nor->addr_width = 3; break; |