mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
sf: Make flash->flags use for generic usage
Use the flash->flags for generic usage, not only for dm-spi-flash, this will be used for future flag additions. [Correct the spi flash flags detect logic] Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
70ccf59406
commit
1fabefddfc
3 changed files with 11 additions and 7 deletions
|
@ -38,10 +38,10 @@ struct spi_slave;
|
|||
*
|
||||
* @spi: SPI slave
|
||||
* @dev: SPI flash device
|
||||
* @flags: Indication of spi flash flags
|
||||
* @name: Name of SPI flash
|
||||
* @dual_flash: Indicates dual flash memories - dual stacked, parallel
|
||||
* @shift: Flash shift useful in dual parallel
|
||||
* @flags: Indication of spi flash flags
|
||||
* @size: Total flash size
|
||||
* @page_size: Write (page) size
|
||||
* @sector_size: Sector size
|
||||
|
@ -67,11 +67,11 @@ struct spi_flash {
|
|||
struct spi_slave *spi;
|
||||
#ifdef CONFIG_DM_SPI_FLASH
|
||||
struct udevice *dev;
|
||||
u16 flags;
|
||||
#endif
|
||||
const char *name;
|
||||
u8 dual_flash;
|
||||
u8 shift;
|
||||
u16 flags;
|
||||
|
||||
u32 size;
|
||||
u32 page_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue