1. 11 10月, 2017 1 次提交
    • K
      mtd: spi-nor: add spi_nor_init() function · 46dde01f
      Kamal Dasu 提交于
      This patch extracts some chunks from spi_nor_init_params and spi_nor_scan()
       and moves them into a new spi_nor_init() function.
      
      Indeed, spi_nor_init() regroups all the required SPI flash commands to be
      sent to the SPI flash memory before performing any runtime operations
      (Fast Read, Page Program, Sector Erase, ...). Hence spi_nor_init():
      1) removes the flash protection if applicable for certain vendors.
      2) sets the Quad Enable bit, if needed, before using Quad SPI protocols.
      3) makes the memory enter its (stateful) 4-byte address mode, if needed,
         for SPI flash memory > 128Mbits not supporting the 4-byte address
         instruction set.
      
      spi_nor_scan() now ends by calling spi_nor_init() once the probe phase has
      completed. Further patches could also use spi_nor_init() to implement the
      mtd->_resume() handler for the spi-nor framework.
      Signed-off-by: NKamal Dasu <kdasu.kdev@gmail.com>
      Signed-off-by: NCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
      46dde01f
  2. 10 10月, 2017 1 次提交
  3. 18 9月, 2017 2 次提交
  4. 23 8月, 2017 1 次提交
  5. 15 8月, 2017 2 次提交
  6. 14 8月, 2017 1 次提交
  7. 02 8月, 2017 4 次提交
  8. 18 7月, 2017 1 次提交
  9. 28 6月, 2017 1 次提交
  10. 27 6月, 2017 2 次提交
  11. 22 6月, 2017 1 次提交
    • C
      mtd: spi-nor: aspeed: configure chip window on AHB bus · 7ef0e5e1
      Cédric Le Goater 提交于
      The segment registers of the SMC controller provide a way to configure
      the mapping windows of the chips on the AHB bus. The settings are
      required to be correct when the controller operates in Command mode,
      which is the case for DMAs and the LPC mapping.
      
      This tries to set the segment registers of each chip depending on the
      size of the flash device and depending on the previous segment
      settings, in order to have a contiguous window across multiple chips.
      
      Unfortunately, the AST2500 SPI controller has a bug and it is not
      possible to configure a full 128MB window for a chip of the same
      size. The window size needs to be restricted to 120MB. This issue only
      applies to CE0.
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Reviewed-by: NMarek Vasut <marek.vasut@gmail.com>
      Signed-off-by: NCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
      7ef0e5e1
  12. 21 6月, 2017 5 次提交
  13. 16 5月, 2017 6 次提交
  14. 01 5月, 2017 2 次提交
  15. 17 4月, 2017 1 次提交
  16. 11 4月, 2017 1 次提交
  17. 23 3月, 2017 4 次提交
  18. 10 3月, 2017 1 次提交
  19. 08 3月, 2017 3 次提交