diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-05-12 00:19:56 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2017-05-19 21:21:30 +0200 |
commit | fc1a123aa7392fe7900b466e6a6f089733fec1ee (patch) | |
tree | 9aeca66f20edb1d92aaa751d502134d401a15045 /src/include | |
parent | f422fd2c78b8a7ab58e75ba7bd13b0c354a207b8 (diff) | |
download | coreboot-fc1a123aa7392fe7900b466e6a6f089733fec1ee.tar.xz |
drivers/spi/spi_flash: Add page_size to struct spi_flash
Add a new member page_size to spi_flash structure so that the various
spi flash drivers can store this info in spi_flash along with the
other sizes (sector size and total size) during flash probe. This
removes the need to have {driver}_spi_flash structure in every spi
flash driver.
This is part of patch series to clean up the SPI flash and SPI driver
interface.
BUG=b:38330715
Change-Id: I0f83e52cb1041432b0b575a8ee3bd173cc038d1f
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/19704
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/spi_flash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h index 6b89012a26..a72a13e0f8 100644 --- a/src/include/spi_flash.h +++ b/src/include/spi_flash.h @@ -29,6 +29,7 @@ struct spi_flash { const char *name; u32 size; u32 sector_size; + u32 page_size; u8 erase_cmd; u8 status_cmd; /* |