Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1614771
| From | Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/6] mtd: spi-nor: introduce more SPI protocols and the Dual Transfer Mode |
| Date | 2017-04-02 19:10 +0200 |
| Message-ID | <trRaO-3jk-5@gated-at.bofh.it> (permalink) |
| References | <tnYky-22N-15@gated-at.bofh.it> <tnYNz-2xC-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Le 23/03/2017 à 00:33, Cyrille Pitchen a écrit : > This patch changes the prototype of spi_nor_scan(): its 3rd parameter > is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor > framework about the actual hardware capabilities supported by the SPI > controller and its driver. > > Besides, this patch also introduces a new 'struct spi_nor_flash_parameter' > telling the spi-nor framework about the hardware capabilities supported by > the SPI flash memory and the associated settings required to use those > hardware caps. > > Currently the 'struct spi_nor_flash_parameter' is filled with legacy > values but a later patch will allow to fill it dynamically by reading the > JESD216 Serial Flash Discoverable Parameter (SFDP) tables from the SPI > memory. > > With both structures, the spi-nor framework can now compute the best > match between hardware caps supported by both the (Q)SPI memory and > controller hence selecting the relevant SPI protocols and op codes for > (Fast) Read, Page Program and Sector Erase operations. > > The 'struct spi_nor_flash_parameter' also provides the spi-nor framework > with the number of dummy cycles to be used with each Fast Read commands > and the erase block size associated to the erase block op codes. > > Finally the 'struct spi_nor_flash_parameter', through the optional > .enable_quad_io() hook, tells the spi-nor framework how to set the Quad > Enable (QE) bit of the QSPI memory to enable its Quad SPI features. > > Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Applied to github/spi-nor.
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v5 1/6] mtd: spi-nor: introduce more SPI protocols and the Dual Transfer Mode Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-04-02 19:10 +0200
csiph-web