diff options
author | Jagan Teki <jteki@openedev.com> | 2015-06-27 00:51:30 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-07-01 21:15:03 +0530 |
commit | 5d69df3541c3c1a40ed71ff250b9c98bf2b9f582 (patch) | |
tree | 2827cf762b4498352aa831b3bd28280bdb4c96a6 /include | |
parent | ff6e31d3a108ea2f9448597f29c1c3bde48a057b (diff) | |
download | u-boot-imx-5d69df3541c3c1a40ed71ff250b9c98bf2b9f582.zip u-boot-imx-5d69df3541c3c1a40ed71ff250b9c98bf2b9f582.tar.gz u-boot-imx-5d69df3541c3c1a40ed71ff250b9c98bf2b9f582.tar.bz2 |
spi/sf: Minor cleanups
- Adjust tab spaces
- Add comments
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/spi.h | 2 | ||||
-rw-r--r-- | include/spi_flash.h | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/spi.h b/include/spi.h index f4b93e6..1836236 100644 --- a/include/spi.h +++ b/include/spi.h @@ -54,7 +54,7 @@ /* Header byte that marks the start of the message */ #define SPI_PREAMBLE_END_BYTE 0xec -#define SPI_DEFAULT_WORDLEN 8 +#define SPI_DEFAULT_WORDLEN 8 #ifdef CONFIG_DM_SPI /* TODO(sjg@chromium.org): Remove this and use max_hz from struct spi_slave */ diff --git a/include/spi_flash.h b/include/spi_flash.h index f2814ef..3b2d555 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -37,13 +37,15 @@ struct spi_slave; * struct spi_flash - SPI flash structure * * @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 + * @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 - * @erase_size: Erase size + * @erase_size: Erase size * @bank_read_cmd: Bank read cmd * @bank_write_cmd: Bank write cmd * @bank_curr: Current flash bank @@ -51,8 +53,8 @@ struct spi_slave; * @erase_cmd: Erase cmd 4K, 32K, 64K * @read_cmd: Read cmd - Array Fast, Extn read and quad read. * @write_cmd: Write cmd - page and quad program. - * @dummy_byte: Dummy cycles for read operation. - * @memory_map: Address of read-only SPI flash access + * @dummy_byte: Dummy cycles for read operation. + * @memory_map: Address of read-only SPI flash access * @read: Flash read ops: Read len bytes at offset into buf * Supported cmds: Fast Array Read * @write: Flash write ops: Write len bytes from buf into offset |