summaryrefslogtreecommitdiffstats
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-09-29 11:17:02 +0530
committerJagan Teki <jteki@openedev.com>2015-10-25 20:17:03 +0530
commit1fabefddfce1bc79a3d704501efdaa053442b8c1 (patch)
tree6d59273aeaa115a29b462c017ccb2dcb33c03fb3 /include/spi_flash.h
parent70ccf5940650a2c37cc9d70ce3c866abe97e9eb5 (diff)
downloadblackbird-obmc-uboot-1fabefddfce1bc79a3d704501efdaa053442b8c1.tar.gz
blackbird-obmc-uboot-1fabefddfce1bc79a3d704501efdaa053442b8c1.zip
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>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 3b2d555c77..8d85468705 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -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;
OpenPOWER on IntegriCloud