mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user