mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -2236,6 +2236,7 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor,
|
||||||
/* Number of address bytes. */
|
/* Number of address bytes. */
|
||||||
switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) {
|
switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) {
|
||||||
case BFPT_DWORD1_ADDRESS_BYTES_3_ONLY:
|
case BFPT_DWORD1_ADDRESS_BYTES_3_ONLY:
|
||||||
|
case BFPT_DWORD1_ADDRESS_BYTES_3_OR_4:
|
||||||
nor->addr_width = 3;
|
nor->addr_width = 3;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue