mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 07:03:31 +08:00
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>
This commit is contained in:
parent
de9e8378a8
commit
ee1c709cfd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user