diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/spi.h | 3 | ||||
| -rw-r--r-- | include/spi_flash.h | 5 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/include/spi.h b/include/spi.h index d214d8292..ffd66478b 100644 --- a/include/spi.h +++ b/include/spi.h @@ -47,6 +47,7 @@  /* SPI bus connection options */  #define SPI_CONN_DUAL_SHARED	1 << 0 +#define SPI_CONN_DUAL_SEPARATED	1 << 1  /* Header byte that marks the start of the message */  #define SPI_PREAMBLE_END_BYTE	0xec @@ -66,7 +67,7 @@   * @max_write_size:	If non-zero, the maximum number of bytes which can   *			be written at once, excluding command bytes.   * @memory_map:		Address of read-only SPI flash access. - * @option:		Varies SPI bus options - separate bus. + * @option:		Varies SPI bus options - separate, shared bus.   * @flags:		Indication of SPI flags.   */  struct spi_slave { diff --git a/include/spi_flash.h b/include/spi_flash.h index 36f1f033c..f79f0eacc 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -40,6 +40,7 @@ enum spi_read_cmds {  enum spi_dual_flash {  	SF_SINGLE_FLASH = 0,  	SF_DUAL_STACKED_FLASH = 1 << 0, +	SF_DUAL_PARALLEL_FLASH = 1 << 1,  };  /** @@ -70,7 +71,8 @@ extern const struct spi_flash_params spi_flash_params_table[];   *   * @spi:		SPI slave   * @name:		Name of SPI flash - * @dual_flash:		Indicates dual flash memories - dual stacked + * @dual_flash:		Indicates dual flash memories - dual stacked, parallel + * @shift:		Flash shift useful in dual parallel   * @size:		Total flash size   * @page_size:		Write (page) size   * @sector_size:	Sector size @@ -96,6 +98,7 @@ struct spi_flash {  	struct spi_slave *spi;  	const char *name;  	u8 dual_flash; +	u8 shift;  	u32 size;  	u32 page_size; |