]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Track flash's internal address mode
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Thu, 1 Sep 2022 06:05:31 +0000 (15:05 +0900)
committerJagan Teki <jagan@edgeble.ai>
Sun, 23 Oct 2022 05:20:17 +0000 (10:50 +0530)
commit4d60001fdf0c13ab1ccf720bb3cd6e5d385386bb
tree7ceab529a161667689b40f8e816700b4e0231859
parentee1c709cfde71b339a5c5dd0788522340c4c7e92
mtd: spi-nor-core: Track flash's internal address mode

The nor->addr_width tracks number of address bytes used in
read/program/erase ops and eventually set to 4 for >16MB chips, regardless
of flash's internal address mode. For Infineon SEMPER flash's, we use
Read/Write Any Register commands for configuration and status check.
These commands take 3- or 4-byte address depending on flash's internal
address mode.

Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c
include/linux/mtd/spi-nor.h