sf: Update spi-nor framework
Subsystems (2)
cover sf: Update spi-nor framework
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128Mib
This patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to store(set_mode) spi bus mode and provision for run-time LUTs creation.
Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf: fsl_qspi: Add support of fsl_qspi_set_mode
sf: fsl_quadspi: Configue LUT based on padding information
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574 +++++++++++++++++++++++++++++++++++++++- drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)
Signature · 1 line
2.7.4
RFC 1/5 sf: Add support of 1-2-2, 1-4-4 IO READ protocols
IO READ protocols transfers both address and data on multiple data bits. 1-2-2(DUAL IO), 1-4-4(QUAD IO) transfer address on 2 data bits or 4 bits per rising edge of SCK respectively.
This patch update spi_nor_flash_parameter->spi_nor_read_command array based on DUAL or QUAD IO flag enabled in flash_info for a flash.
--- drivers/mtd/spi/spi_flash.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/mtd/spi/spi_flash.c +4 -0
@@ -1071,8 +1071,12 @@ int spi_flash_scan(struct spi_flash *flash) flash->read_cmd =CMD_READ_ARRAY_FAST ;if (spi->mode &SPI_RX_SLOW ) flash->read_cmd =CMD_READ_ARRAY_SLOW ; +else if (spi->mode &SPI_RX_QUAD && info->flags &RD_QUADIO ) + flash->read_cmd =CMD_READ_QUAD_IO_FAST ;else if (spi->mode &SPI_RX_QUAD && info->flags &RD_QUAD ) flash->read_cmd =CMD_READ_QUAD_OUTPUT_FAST ; +else if (spi->mode &SPI_RX_DUAL && info->flags &RD_DUALIO ) + flash->read_cmd =CMD_READ_DUAL_IO_FAST ;else if (spi->mode &SPI_RX_DUAL && info->flags &RD_DUAL ) flash->read_cmd =CMD_READ_DUAL_OUTPUT_FAST ;
Signature · 1 line
2.7.4
RFC 2/5 sf: add method to support memory size above 128Mib
In reply to Prabhakar KushwahaThis patch add support of memories with size above 128Mib. It has been ported from Linux commit "mtd: spi-nor: add a stateless method to support memory size above 128Mib".
It convert 3byte opcode into 4byte opcode based upon OPCODES_4B or Spansion flash. Also the commands are malloc'ed at run time based on 3byte or 4byte address opcode requirement.
---
depends upon https://patchwork.ozlabs.org/patch/826919/
drivers/mtd/spi/sf_internal.h | 28 ++++++++- drivers/mtd/spi/spi_flash.c | 136 ++++++++++++++++++++++++++++++++++++------ include/spi_flash.h | 2 + 3 files changed, 146 insertions(+), 20 deletions(-)
drivers/mtd/spi/sf_internal.h +25 -3
@@ -27,7 +27,8 @@ enum spi_nor_option_flags { };#define SPI_FLASH_3B_ADDR_LEN 3 -#define SPI_FLASH_CMD_LEN (1 + SPI_FLASH_3B_ADDR_LEN) +#define SPI_FLASH_4B_ADDR_LEN 4 +#define SPI_FLASH_MAX_ADDR_WIDTH 4#define SPI_FLASH_16MB_BOUN 0x1000000/* CFI Manufacture ID's */
@@ -57,13 +58,30 @@ enum spi_nor_option_flags {#define CMD_READ_DUAL_IO_FAST 0xbb#define CMD_READ_QUAD_OUTPUT_FAST 0x6b#define CMD_READ_QUAD_IO_FAST 0xeb + +/* 4B READ commands */ +#define CMD_READ_ARRAY_SLOW_4B 0x13 +#define CMD_READ_ARRAY_FAST_4B 0x0c +#define CMD_READ_DUAL_OUTPUT_FAST_4B 0x3c +#define CMD_READ_DUAL_IO_FAST_4B 0xbc +#define CMD_READ_QUAD_OUTPUT_FAST_4B 0x6c +#define CMD_READ_QUAD_IO_FAST_4B 0xec + +/* 4B Write commands */ +#define CMD_PAGE_PROGRAM_4B 0x12 + +/* 4B Erase commands */ +#define CMD_ERASE_4K_4B 0x21 +#define CMD_ERASE_CHIP_4B 0x5c +#define CMD_ERASE_64K_4B 0xdc +#define CMD_READ_ID 0x9f#define CMD_READ_STATUS 0x05#define CMD_READ_STATUS1 0x35#define CMD_READ_CONFIG 0x35#define CMD_FLAG_STATUS 0x70 -#define CMD_EN4B 0xB7 -#define CMD_EX4B 0xE9 +#define CMD_EN4B 0xB7 +#define CMD_EX4B 0xE9/* Bank addr access commands */ #ifdef CONFIG_SPI_FLASH_BAR
@@ -133,6 +151,10 @@ struct spi_flash_info {#define RD_DUAL BIT(5)/* use Dual Read */ #define RD_QUADIO BIT(6)/* use Quad IO Read */ #define RD_DUALIO BIT(7)/* use Dual IO Read */ +#define OPCODES_4B BIT(8)/* +* Use dedicated 4byte address op codes +* to support memory size above 128Mib. +*/ #define RD_FULL (RD_QUAD | RD_DUAL | RD_QUADIO | RD_DUALIO) };
drivers/mtd/spi/spi_flash.c +119 -17
217 lines not on this page · raw message
include/spi_flash.h +2 -0
@@ -48,6 +48,7 @@ struct spi_slave;* @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. +* @addr_width: number of address bytes * @memory_map: Address of read-only SPI flash access * @flash_lock: lock a region of the SPI Flash * @flash_unlock: unlock a region of the SPI Flash
@@ -84,6 +85,7 @@ struct spi_flash {u8 write_cmd;u8 dummy_byte; +u8 addr_width;void *memory_map;int (*flash_lock)(struct spi_flash *flash,u32 ofs,size_t len);
Signature · 1 line
2.7.4
RFC 3/5 sf: parse Serial Flash Discoverable Parameters (SFDP) tables
In reply to Prabhakar KushwahaThis patch adds support to the JESD216 rev B standard and parses the SFDP tables to dynamically initialize the 'struct spi_nor_flash_parameter'.
It has been ported from Linux commit "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It Also ports all modifications done on top of the mentioned commit.
--- drivers/mtd/spi/sf_internal.h | 204 ++++++++++++++++++++++ drivers/mtd/spi/spi_flash.c | 389 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 593 insertions(+)
drivers/mtd/spi/sf_internal.h +204 -0
@@ -12,6 +12,7 @@#include <linux/types.h> #include <linux/compiler.h> +#include <linux/sizes.h> /* Dual SPI flash memories - see SPI_COMM_DUAL_... */ enum spi_dual_flash {
@@ -82,6 +83,7 @@ enum spi_nor_option_flags {#define CMD_FLAG_STATUS 0x70#define CMD_EN4B 0xB7#define CMD_EX4B 0xE9 +#define CMD_READ_SFDP 0x5a/* Bank addr access commands */ #ifdef CONFIG_SPI_FLASH_BAR
@@ -155,9 +157,211 @@ struct spi_flash_info {* Use dedicated 4byte address op codes * to support memory size above 128Mib. */ +#define FLASH_SFDP BIT(9)/* Parse SFDP tables */ #define RD_FULL (RD_QUAD | RD_DUAL | RD_QUADIO | RD_DUALIO) }; +struct sfdp_parameter_header { +u8 id_lsb; +u8 minor; +u8 major; +u8 length;/* in double words */ +u8 parameter_table_pointer[3 ];/* byte address */ +u8 id_msb; +}; + +#define SFDP_PARAM_HEADER_ID (p) (((p)->id_msb << 8) | (p)->id_lsb) +#define SFDP_PARAM_HEADER_PTP (p) \ + (((p)->parameter_table_pointer[2] << 16) | \ + ((p)->parameter_table_pointer[1] << 8) | \ + ((p)->parameter_table_pointer[0] << 0)) + +#define SFDP_BFPT_ID 0xff00/* Basic Flash Parameter Table */ +#define SFDP_SECTOR_MAP_ID 0xff81/* Sector Map Table */ + +#define SFDP_SIGNATURE 0x50444653U +#define SFDP_JESD216_MAJOR 1 +#define SFDP_JESD216_MINOR 0 +#define SFDP_JESD216A_MINOR 5 +#define SFDP_JESD216B_MINOR 6 + +struct sfdp_header { +u32 signature;/* Ox50444653U <=> "SFDP" */ +u8 minor; +u8 major; +u8 nph;/* 0-base number of parameter headers */ +u8 unused; + +/* Basic Flash Parameter Table. */ +struct sfdp_parameter_header bfpt_header; +}; + +/* Basic Flash Parameter Table */ + +/* +* JESD216 rev B defines a Basic Flash Parameter Table of 16 DWORDs. +* They are indexed from 1 but C arrays are indexed from 0. +*/ +#define BFPT_DWORD (i) ((i) - 1) +#define BFPT_DWORD_MAX 16 + +/* The first version of JESB216 defined only 9 DWORDs. */ +#define BFPT_DWORD_MAX_JESD216 9 + +/* 1st DWORD. */ +#define BFPT_DWORD1_FAST_READ_1_1_2 BIT(16) +#define BFPT_DWORD1_ADDRESS_BYTES_MASK GENMASK(18, 17) +#define BFPT_DWORD1_ADDRESS_BYTES_3_ONLY (0x0UL << 17) +#define BFPT_DWORD1_ADDRESS_BYTES_3_OR_4 (0x1UL << 17) +#define BFPT_DWORD1_ADDRESS_BYTES_4_ONLY (0x2UL << 17) +#define BFPT_DWORD1_DTR BIT(19) +#define BFPT_DWORD1_FAST_READ_1_2_2 BIT(20) +#define BFPT_DWORD1_FAST_READ_1_4_4 BIT(21) +#define BFPT_DWORD1_FAST_READ_1_1_4 BIT(22) + +/* 5th DWORD. */ +#define BFPT_DWORD5_FAST_READ_2_2_2 BIT(0) +#define BFPT_DWORD5_FAST_READ_4_4_4 BIT(4) + +/* 11th DWORD. */ +#define BFPT_DWORD11_PAGE_SIZE_SHIFT 4 +#define BFPT_DWORD11_PAGE_SIZE_MASK GENMASK(7, 4) + +/* 15th DWORD. */ + +/* +* (from JESD216 rev B) +* Quad Enable Requirements (QER): +* - 000b: Device does not have a QE bit. Device detects 1-1-4 and 1-4-4 +* reads based on instruction. DQ3/HOLD# functions are hold during +* instruction phase. +* - 001b: QE is bit 1 of status register 2. It is set via Write Status with +* two data bytes where bit 1 of the second byte is one. +* [...] +* Writing only one byte to the status register has the side-effect of +* clearing status register 2, including the QE bit. The 100b code is +* used if writing one byte to the status register does not modify +* status register 2. +* - 010b: QE is bit 6 of status register 1. It is set via Write Status with +* one data byte where bit 6 is one. +* [...] +* - 011b: QE is bit 7 of status register 2. It is set via Write status +* register 2 instruction 3Eh with one data byte where bit 7 is one. +* [...] +* The status register 2 is read using instruction 3Fh. +* - 100b: QE is bit 1 of status register 2. It is set via Write Status with +* two data bytes where bit 1 of the second byte is one. +* [...] +* In contrast to the 001b code, writing one byte to the status +* register does not modify status register 2. +* - 101b: QE is bit 1 of status register 2. Status register 1 is read using +* Read Status instruction 05h. Status register2 is read using +* instruction 35h. QE is set via Writ Status instruction 01h with +* two data bytes where bit 1 of the second byte is one. +* [...] +*/ +#define BFPT_DWORD15_QER_MASK GENMASK(22, 20) +#define BFPT_DWORD15_QER_NONE (0x0UL << 20)/* Micron */ +#define BFPT_DWORD15_QER_SR2_BIT1_BUGGY (0x1UL << 20) +#define BFPT_DWORD15_QER_SR1_BIT6 (0x2UL << 20)/* Macronix */ +#define BFPT_DWORD15_QER_SR2_BIT7 (0x3UL << 20) +#define BFPT_DWORD15_QER_SR2_BIT1_NO_RD (0x4UL << 20) +#define BFPT_DWORD15_QER_SR2_BIT1 (0x5UL << 20)/* Spansion */ + +struct sfdp_bfpt { +u32 dwords[BFPT_DWORD_MAX ]; +}; + +/* Fast Read settings. */ + +struct sfdp_bfpt_read { +/* +* The <supported_bit> bit in <supported_dword> BFPT DWORD tells us +* whether the Fast Read x-y-z command is supported. +*/ +u32 supported_dword; +u32 supported_bit; + +/* +* The half-word at offset <setting_shift> in <setting_dword> BFPT DWORD +* encodes the op code, the number of mode clocks and the number of wait +* states to be used by Fast Read x-y-z command. +*/ +u32 settings_dword; +u32 settings_shift; + +/* The SPI Read x-y-z command. */ +u8 read_cmd; + +}; + +static const struct sfdp_bfpt_read sfdp_bfpt_reads[] = { +/* Fast Read 1-1-2 */ + { +BFPT_DWORD (1 ),BIT (16 ),/* Supported bit */ +BFPT_DWORD (4 ),0 ,/* Settings */ +CMD_READ_DUAL_OUTPUT_FAST , + }, + +/* Fast Read 1-2-2 */ + { +BFPT_DWORD (1 ),BIT (20 ),/* Supported bit */ +BFPT_DWORD (4 ),16 ,/* Settings */ +CMD_READ_DUAL_IO_FAST , + }, + +/* Fast Read 2-2-2 */ + { +BFPT_DWORD (5 ),BIT (0 ),/* Supported bit */ +BFPT_DWORD (6 ),16 ,/* Settings */ +0xFF ,/* Not supported cmd */ + }, + +/* Fast Read 1-1-4 */ + { +BFPT_DWORD (1 ),BIT (22 ),/* Supported bit */ +BFPT_DWORD (3 ),16 ,/* Settings */ +CMD_READ_QUAD_OUTPUT_FAST , + }, + +/* Fast Read 1-4-4 */ + { +BFPT_DWORD (1 ),BIT (21 ),/* Supported bit */ +BFPT_DWORD (3 ),0 ,/* Settings */ +CMD_READ_QUAD_IO_FAST , + }, + +/* Fast Read 4-4-4 */ + { +BFPT_DWORD (5 ),BIT (4 ),/* Supported bit */ +BFPT_DWORD (7 ),16 ,/* Settings */ +0xFF ,/* Not supported cmd */ + }, +}; + +struct sfdp_bfpt_erase { +/* +* The half-word at offset <shift> in DWORD <dwoard> encodes the +* op code and erase sector size to be used by Sector Erase commands. +*/ +u32 dword; +u32 shift; +}; + +static const struct sfdp_bfpt_erase sfdp_bfpt_erases[] = { +/* Erase Type 1 in DWORD8 bits[15:0] */ + {BFPT_DWORD (8 ),0 }, + +/* Erase Type 2 in DWORD8 bits[31:16] */ + {BFPT_DWORD (8 ),16 }, + +/* Erase Type 3 in DWORD9 bits[15:0] */ + {BFPT_DWORD (9 ),0 }, + +/* Erase Type 4 in DWORD9 bits[31:16] */ + {BFPT_DWORD (9 ),16 }, +}; +extern const struct spi_flash_info spi_flash_ids[];/* Send a single-byte command to the device and read the response */
drivers/mtd/spi/spi_flash.c +389 -0
400 lines not on this page · raw message
Signature · 1 line
2.7.4
RFC 4/5 sf: fsl_qspi: Add support of fsl_qspi_set_mode
In reply to Prabhakar KushwahaSPI bus provide support dual and quad wire data transfers for tx and rx. This information is parsed from device tree and passed to slave device via set_mode of dm_spi_ops.
Implement set_mode i.e. fsl_qspi_set_mode to store mode information in fsl_qspi_priv structure.
--- drivers/spi/fsl_qspi.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-)
drivers/spi/fsl_qspi.c +29 -1
@@ -120,6 +120,7 @@ struct fsl_qspi_platdata {* @cur_amba_base: Base address of QSPI memory mapping of current CS * @flash_num: Number of active slave devices * @num_chipselect: Number of QSPI chipselect signals +* @mode: I/O lines * @regs: Point to QSPI register structure for I/O access */ struct fsl_qspi_priv {
@@ -133,6 +134,7 @@ struct fsl_qspi_priv {u32 cur_amba_base;u32 flash_num;u32 num_chipselect; +u32 mode;struct fsl_qspi_regs *regs; };
@@ -1212,7 +1214,33 @@ static int fsl_qspi_set_speed(struct udevice *bus, uint speed)static int fsl_qspi_set_mode (struct udevice *bus,uint mode) { -/* Nothing to do */ +struct fsl_qspi_priv *priv =dev_get_priv (bus); + +if (mode &SPI_RX_QUAD ) + priv->mode |=SPI_RX_QUAD ; +else if (mode &SPI_RX_DUAL ) + priv->mode |=SPI_RX_DUAL ; +else + priv->mode &= ~(SPI_RX_QUAD |SPI_RX_DUAL ); + + priv->mode &= ~(SPI_TX_QUAD |SPI_TX_DUAL ); + +debug ("%s: mode=%d rx: " , __func__, mode); + +if (mode &SPI_RX_QUAD ) +debug ("quad, tx: " ); +else if (mode &SPI_RX_DUAL ) +debug ("dual, tx: " ); +else +debug ("single, tx: " ); + +if (mode &SPI_TX_QUAD ) +debug ("quad\n" ); +else if (mode &SPI_TX_DUAL ) +debug ("dual\n" ); +else +debug ("single\n" ); +return 0 ; }
Signature · 1 line
2.7.4
RFC 5/5 sf: fsl_quadspi: Configue LUT based on padding information
In reply to Prabhakar KushwahaPadding or number of line required for instruction, address and data is pre-defined as per the selected read commond.
Configure LUT based on the selected read command under flag SPI_XFER_BEGIN.
--- drivers/spi/fsl_qspi.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-)
drivers/spi/fsl_qspi.c +53 -2
@@ -52,7 +52,12 @@ DECLARE_GLOBAL_DATA_PTR;#define QSPI_CMD_PP 0x02/* Page program (up to 256 bytes) */ #define QSPI_CMD_RDSR 0x05/* Read status register */ #define QSPI_CMD_WREN 0x06/* Write enable */ +#define QSPI_CMD_SLOW_READ 0x03/* Read data bytes (low frequency) */ #define QSPI_CMD_FAST_READ 0x0b/* Read data bytes (high frequency) */ +#define QSPI_CMD_DUAL_OUTPUT_FAST_READ 0x3b +#define QSPI_CMD_DUAL_IO_FAST_READ 0xbb +#define QSPI_CMD_QUAD_OUTPUT_FAST_READ 0x6b +#define QSPI_CMD_QUAD_IO_FAST_READ 0xeb#define QSPI_CMD_BE_4K 0x20/* 4K erase */ #define QSPI_CMD_CHIP_ERASE 0xc7/* Erase whole flash chip */ #define QSPI_CMD_SE 0xd8/* Sector erase (usually 64KiB) */
@@ -71,7 +76,12 @@ DECLARE_GLOBAL_DATA_PTR;#define QSPI_CMD_WRAR 0x71/* Write any device register */ /* 4-byte address QSPI CMD - used on Spansion and some Macronix flashes */ -#define QSPI_CMD_FAST_READ_4B 0x0c/* Read data bytes (high frequency) */ +#define QSPI_CMD_SLOW_READ_4B 0x13 +#define QSPI_CMD_FAST_READ_4B 0x0c +#define QSPI_CMD_DUAL_OUTPUT_FAST_READ_4B 0x3c +#define QSPI_CMD_DUAL_IO_FAST_READ_4B 0xbc +#define QSPI_CMD_QUAD_OUTPUT_FAST_READ_4B 0x6c +#define QSPI_CMD_QUAD_IO_FAST_READ_4B 0xec#define QSPI_CMD_PP_4B 0x12/* Page program (up to 256 bytes) */ #define QSPI_CMD_SE_4B 0xdc/* Sector erase (usually 64KiB) */
@@ -762,10 +772,51 @@ int qspi_xfer(struct fsl_qspi_priv *priv, unsigned int bitlen, {u32 bytes =DIV_ROUND_UP (bitlen,8 );static u32 wr_sfaddr; -u32 txbuf; +u32 txbuf, mode = priv->mode;WATCHDOG_RESET (); +if (dout && (flags &SPI_XFER_BEGIN )) { +switch (*(u8 *)dout) { +case QSPI_CMD_SLOW_READ : +case QSPI_CMD_SLOW_READ_4B : +case QSPI_CMD_FAST_READ : +case QSPI_CMD_FAST_READ_4B : +case QSPI_CMD_PP : +case QSPI_CMD_PP_4B : +/* TODO: 1_1_1 Padding */ +break ; + +case QSPI_CMD_DUAL_OUTPUT_FAST_READ : +case QSPI_CMD_DUAL_OUTPUT_FAST_READ_4B : +if (mode &SPI_RX_DUAL ) { +/* TODO: 1_1_2 Padding */ + } +break ; + +case QSPI_CMD_DUAL_IO_FAST_READ : +case QSPI_CMD_DUAL_IO_FAST_READ_4B : +if (mode &SPI_RX_DUAL ) { +/* TODO: 1_2_2 Padding */ + } +break ; + +case QSPI_CMD_QUAD_OUTPUT_FAST_READ : +case QSPI_CMD_QUAD_OUTPUT_FAST_READ_4B : +if (mode &SPI_RX_QUAD ) { +/* TODO: 1_1_4 Padding */ + } +break ; + +case QSPI_CMD_QUAD_IO_FAST_READ : +case QSPI_CMD_QUAD_IO_FAST_READ_4B : +if (mode &SPI_RX_QUAD ) { +/* TODO: 1_4_4 Padding */ + } +break ; + } + } +if (dout) {if (flags &SPI_XFER_BEGIN ) { priv->cur_seqid = *(u8 *)dout;
Signature · 1 line
2.7.4
cover sf: Update spi-nor framework
In reply to Prabhakar KushwahaQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding information
Quoted 6 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574 +++++++++++++++++++++++++++++++++++++++- drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)
Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
Signature · 2 lines
Best regards, Marek Vasut
cover sf: Update spi-nor framework
Hi Marek,
Quoted 41 lines
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, December 11, 2017 3:04 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: jagannadh.teki at gmail.com; Poonam Aggrwal <[email protected]>; Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [RFC 0/5] sf: Update spi-nor frameworkQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationQuoted 2 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?
--pk
cover sf: Update spi-nor framework
Quoted 56 lines · Prabhakar Kushwaha
Hi Marek,
Quoted 41 lines
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, December 11, 2017 3:04 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: jagannadh.teki at gmail.com; Poonam Aggrwal <[email protected]>; Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [RFC 0/5] sf: Update spi-nor frameworkQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationQuoted 2 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
Quoted 8 lines
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?
direct-porting from Linux is not so optimal(not well suited for U-Boot design) as I've tried before. We're working on the dm-driven spi-nor. So I will continue to review your patches on current code and will see how we can merge the same once dm-spi-nor available.
Jagan.
Vignesh R
maintainercover sf: Update spi-nor framework
Hi Jagan,
On Tuesday 12 December 2017 01:07 PM, Jagan Teki wrote:
[...]
Quoted 28 lines
Quoted 28 lines
Quoted 10 lines
Quoted 9 lines
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationdrivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
Quoted 8 lines
Quoted 3 lines
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?direct-porting from Linux is not so optimal(not well suited for U-Boot design) as I've tried before. We're working on the dm-driven spi-nor. So I will continue to review your patches on current code and will see how we can merge the same once dm-spi-nor available.
Many of the newer SPI NOR flashes such as MT35x do not support U-Boot's legacy way of accessing >128Mb region.
Are you planning to submit dm-spi-nor anytime soon? If not, then IMO, at least patch 2/5 is worth considering for now.
Signature · 2 lines
Regards Vignesh
cover sf: Update spi-nor framework
In reply to Jagan TekiQuoted 63 lines · Jagan Teki
Quoted 61 lines · Prabhakar Kushwaha
Hi Marek,
Quoted 41 lines
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, December 11, 2017 3:04 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: jagannadh.teki at gmail.com; Poonam Aggrwal <[email protected]>; Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [RFC 0/5] sf: Update spi-nor frameworkQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationQuoted 2 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
Quoted 6 lines
Quoted 3 lines
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?direct-porting from Linux is not so optimal(not well suited for U-Boot design) as I've tried before.
Care to elaborate on the technical problems ? I am also CCing the Linux SPI NOR maintainers, since I believe the Linux SPI NOR framework is far superior compared to the stuff that's now in U-Boot and sharing the code as much as possible would only make sense rather than writing our own barely-maintained and crappy implementation.
Quoted 6 lines
We're working on the dm-driven spi-nor.
So I will continue to review your patches on current code and will see how we can merge the same once dm-spi-nor available.Jagan.
Signature · 2 lines
Best regards, Marek Vasut
cover sf: Update spi-nor framework
Quoted 68 lines · Marek Vasut
Quoted 67 lines · Jagan Teki
Quoted 64 lines · Prabhakar Kushwaha
Hi Marek,
Quoted 41 lines
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, December 11, 2017 3:04 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: jagannadh.teki at gmail.com; Poonam Aggrwal <[email protected]>; Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [RFC 0/5] sf: Update spi-nor frameworkQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationQuoted 2 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?
Quoted 8 lines
Quoted 2 lines
direct-porting from Linux is not so optimal(not well suited for U-Boot design) as I've tried before.
Care to elaborate on the technical problems ? I am also CCing the Linux SPI NOR maintainers, since I believe the Linux SPI NOR framework is far superior compared to the stuff that's now in U-Boot and sharing the code as much as possible would only make sense rather than writing our own barely-maintained and crappy implementation.
Yes we would take reference of spi-nor core especially for flash handling but designed in the U-Boot driver model. direct porting of Linux spi-nor become another crappy. we have an expertise of how we do it let's wait for the series to post it on mailing-list.
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
cover sf: Update spi-nor framework
Quoted 72 lines · Jagan Teki
Quoted 71 lines · Marek Vasut
Quoted 69 lines · Jagan Teki
Quoted 56 lines · Prabhakar Kushwaha
Hi Marek,
Quoted 41 lines
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, December 11, 2017 3:04 PM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: jagannadh.teki at gmail.com; Poonam Aggrwal <[email protected]>; Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [RFC 0/5] sf: Update spi-nor frameworkQuoted 27 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationQuoted 2 lines
drivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574+++++++++++++++++++++++++++++++++++++++-
Quoted 8 lines
Quoted 4 lines
drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)Could you rather port the entire SPI NOR framework from Linux 4.14 ? That'd make more sense than porting bits and pieces on top of the current crappy code IMO.
I agree with you. Linux 4.14 SPI NOR framework should be ported. I may not able to do this because of bandwidth and lack of expertise. I will request Jagan (custodian) to look into this.
Quoted 8 lines
This RFC patch-set can easily be applied to existing and ported Linux SPI NOR framework when it gets available.
For now, I think these patches(the next version) with the existing framework can be reviewed and accepted. Please help to share your views.
For next version of this patch set, I will be working on testing it to enable other flashes. It will also help Jagan during 4.14 porting.
Jagan, your views?direct-porting from Linux is not so optimal(not well suited for U-Boot design) as I've tried before.
Quoted 8 lines
Quoted 5 lines
Care to elaborate on the technical problems ? I am also CCing the Linux SPI NOR maintainers, since I believe the Linux SPI NOR framework is far superior compared to the stuff that's now in U-Boot and sharing the code as much as possible would only make sense rather than writing our own barely-maintained and crappy implementation.
Yes we would take reference of spi-nor core especially for flash handling but designed in the U-Boot driver model.
The SPI NOR layer in Linux should fit on top of that quite easily.
Quoted 3 lines
direct porting of
Linux spi-nor become another crappy. we have an expertise of how we do it let's wait for the series to post it on mailing-list.
What's the technical argument here ?
Signature · 2 lines
Best regards, Marek Vasut
Yang
cover sf: Update spi-nor framework
In reply to Prabhakar KushwahaHi,
On this topic, Cyrille has a patches here, as a reference.
https://lists.denx.de/pipermail/u-boot/2017-July/299409.html
Quoted 33 lines · Prabhakar Kushwaha
SPI-NOR framework currently supports-
- (1-1-1, 1-1-2, 1-1-4) read protocols
- read latency(dummy bytes) are hardcoded with the assumption that the flash would support it.
- No support of mode bits.
- No support of flash size above 128MibThis patch set add support of 1-2-2, 1-4-4 read protocols. It ports Linux commits "mtd: spi-nor: add a stateless method to support memory size above 128Mib" and "mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables". It enables 4byte address opcode and run time flash parameters discovery including dummy cycle and mode cycle.
Finally it update fsl-quadspi driver to
store(set_mode)spi bus mode and provision for run-time LUTs creation.Note: This patch-set is only **compliation** tested. Sending RFC to get early feed-back on the approach.
Prabhakar Kushwaha (5):
sf: Add support of 1-2-2, 1-4-4 IO READ protocols
sf: add method to support memory size above 128Mib
sf: parse Serial Flash Discoverable Parameters (SFDP) tables
sf:fsl_qspi: Add support offsl_qspi_set_mode
sf:fsl_quadspi: Configue LUT based on padding informationdrivers/mtd/spi/sf_internal.h | 230 +++++++++++++++- drivers/mtd/spi/spi_flash.c | 574 +++++++++++++++++++++++++++++++++++++++- drivers/spi/fsl_qspi.c | 85 +++++- include/spi_flash.h | 2 + 5 files changed, 875 insertions(+), 18 deletions(-)
cover sf: Update spi-nor framework
Thanks Wenyou for the references.
I will check them while porting my patch-set to u-boot-spi.git.
Quoted 8 lines
-----Original Message-----
From: Yang, Wenyou [mailto:Wenyou.Yang at Microchip.com]
Sent: Thursday, January 04, 2018 7:28 AM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor framework
Quoted 7 lines
Hi,
On this topic, Cyrille has a patches here, as a reference.
https://lists.denx.de/pipermail/u-boot/2017-July/299409.html
Any idea why these patches were not accepted?
Is it because of pending review/rework
--pk
cover sf: Update spi-nor framework
Quoted 14 lines · Prabhakar Kushwaha
Thanks Wenyou for the references.
I will check them while porting my patch-set to u-boot-spi.git.
Quoted 10 lines
-----Original Message-----
From: Yang, Wenyou [mailto:Wenyou.Yang at Microchip.com]
Sent: Thursday, January 04, 2018 7:28 AM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor frameworkHi,
Quoted 8 lines
Quoted 5 lines
On this topic, Cyrille has a patches here, as a reference.
https://lists.denx.de/pipermail/u-boot/2017-July/299409.html
Any idea why these patches were not accepted?
Is it because of pending review/rework
reviewed and waiting for next version changes.
cover sf: Update spi-nor framework
Thanks Jagan
Dear Yang Wenyou,
Quoted 8 lines
-----Original Message-----
From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
Sent: Thursday, January 04, 2018 3:57 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: Yang, Wenyou <[email protected]>; u-boot at lists.denx.de; cyrille.pitchen at atmel.com; Suresh Gupta <[email protected]>
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor framework
Quoted 25 lines
Quoted 22 lines · Prabhakar Kushwaha
Thanks Wenyou for the references.
I will check them while porting my patch-set to u-boot-spi.git.
Quoted 8 lines
-----Original Message-----
From: Yang, Wenyou [mailto:Wenyou.Yang at Microchip.com]
Sent: Thursday, January 04, 2018 7:28 AM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor frameworkQuoted 7 lines
Hi,
On this topic, Cyrille has a patches here, as a reference.
https://lists.denx.de/pipermail/u-boot/2017-July/299409.html
Any idea why these patches were not accepted?
Is it because of pending review/rework
Are you planning to submit v4 patch in near future
Or
may I pick few of your patches while porting to my patch-set on u-boot-spi.git.
Please note I am also planning to add support of read_proto, write_proto similar to what supported in Linux.
--pk
Yang
cover sf: Update spi-nor framework
Quoted 33 lines · Prabhakar Kushwaha
Thanks Jagan
Dear Yang Wenyou,
Quoted 29 lines
-----Original Message-----
From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
Sent: Thursday, January 04, 2018 3:57 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: Yang, Wenyou <[email protected]>; u-boot at lists.denx.de; cyrille.pitchen at atmel.com; Suresh Gupta <[email protected]>
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor frameworkQuoted 19 lines · Prabhakar Kushwaha
Thanks Wenyou for the references.
I will check them while porting my patch-set to u-boot-spi.git.
Quoted 15 lines
-----Original Message-----
From: Yang, Wenyou [mailto:Wenyou.Yang at Microchip.com]
Sent: Thursday, January 04, 2018 7:28 AM
To: Prabhakar Kushwaha <[email protected]>; u- boot at lists.denx.de
Cc: Suresh Gupta <[email protected]>; cyrille.pitchen at atmel.com
Subject: Re: [U-Boot] [RFC 0/5] sf: Update spi-nor frameworkHi,
On this topic, Cyrille has a patches here, as a reference.
https://lists.denx.de/pipermail/u-boot/2017-July/299409.html
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Any idea why these patches were not accepted?
Is it because of pending review/reworkAre you planning to submit v4 patch in near future
Or
may I pick few of your patches while porting to my patch-set on u-boot-spi.git.
Please note I am also planning to add support ofread_proto,write_protosimilar to what supported in Linux.
No, we don't have plan to submit v4 patch.
You are free to pick them.
Best Regards,
Wenyou Yang
Quoted 4 lines
--pk