mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
sf: unify write funcs
Once we add a new page_size field for write lengths, we can unify the write methods for most of the spi flash drivers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
2744a4e688
commit
d4aa500913
8 changed files with 80 additions and 325 deletions
|
@ -31,8 +31,11 @@ struct spi_flash {
|
|||
|
||||
const char *name;
|
||||
|
||||
/* Total flash size */
|
||||
u32 size;
|
||||
|
||||
/* Write (page) size */
|
||||
u32 page_size;
|
||||
/* Erase (sector) size */
|
||||
u32 sector_size;
|
||||
|
||||
int (*read)(struct spi_flash *flash, u32 offset,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue