summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-12-23 23:34:42 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 15:13:27 +0530
commit33adfb5f9b06ac1a386dddc222cc50e24a9909e2 (patch)
treee9e18b475d64d01231af53104a399d45c252a049 /include/spi_flash.h
parent35ba667df43ed662a294ee99ed66d3ddb9b95832 (diff)
downloadu-boot-imx-33adfb5f9b06ac1a386dddc222cc50e24a9909e2.zip
u-boot-imx-33adfb5f9b06ac1a386dddc222cc50e24a9909e2.tar.gz
u-boot-imx-33adfb5f9b06ac1a386dddc222cc50e24a9909e2.tar.bz2
sf: Separate the flash params table
Moved the flash params table from sf_probe.c and placed on to sf_params.c, hence flash params file will alter based on new addons. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 9fd9d3b..8e0bb46 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -33,6 +33,29 @@ enum spi_read_cmds {
#define RD_FULL RD_EXTN | QUAD_OUTPUT_FAST
/**
+ * struct spi_flash_params - SPI/QSPI flash device params structure
+ *
+ * @name: Device name ([MANUFLETTER][DEVTYPE][DENSITY][EXTRAINFO])
+ * @jedec: Device jedec ID (0x[1byte_manuf_id][2byte_dev_id])
+ * @ext_jedec: Device ext_jedec ID
+ * @sector_size: Sector size of this device
+ * @nr_sectors: No.of sectors on this device
+ * @e_rd_cmd: Enum list for read commands
+ * @flags: Importent param, for flash specific behaviour
+ */
+struct spi_flash_params {
+ const char *name;
+ u32 jedec;
+ u16 ext_jedec;
+ u32 sector_size;
+ u32 nr_sectors;
+ u8 e_rd_cmd;
+ u16 flags;
+};
+
+extern const struct spi_flash_params spi_flash_params_table[];
+
+/**
* struct spi_flash - SPI flash structure
*
* @spi: SPI slave