Skip to content
Commit 8c638f29 authored by Thomas Altenbach's avatar Thomas Altenbach Committed by Benjamin Cabé
Browse files

drivers: flash: stm32_qspi: Fix page size for dual-flash



When dual-flash mode is enabled, even bytes are written to the first
flash memory and odd bytes to the second flash memory. This means, from
the flash driver's point of view, the size of a flash page is twice the
size of a single flash memory's page.

So if each flash memory has 256-byte pages, 512 bytes should be used as
page size by the flash driver. Using 256 bytes was working fine but is
suboptimal.

Signed-off-by: default avatarThomas Altenbach <altenbach.thomas@gmail.com>
parent c4afaaac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment