1. 19 8月, 2015 1 次提交
  2. 30 6月, 2015 1 次提交
    • D
      mtd, spi: Add MTD layer driver · 9fe6d871
      Daniel Schwierzeck 提交于
      Add MTD layer driver for spi, original patch from:
      http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced
      
      Changes from Heiko Schocher against this patch:
      - Remove compile error if not defining CONFIG_SPI_FLASH_MTD:
      
        LD      drivers/mtd/spi/built-in.o
      drivers/mtd/spi/sf_probe.o: In function `spi_flash_mtd_unregister':
      /home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: multiple definition of `spi_flash_mtd_unregister'
      drivers/mtd/spi/sf_params.o:/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: first defined here
      drivers/mtd/spi/sf_ops.o: In function `spi_flash_mtd_unregister':
      /home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: multiple definition of `spi_flash_mtd_unregister'
      drivers/mtd/spi/sf_params.o:/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: first defined here
      make[1]: *** [drivers/mtd/spi/built-in.o] Fehler 1
      make: *** [drivers/mtd/spi] Fehler 2
      
      - Add a README entry.
      - Add correct writebufsize, to fit with Linux v3.14
        MTD, UBI/UBIFS sync.
      
      Note (From Jagan): For testing raw mtd parition erase/read/write operations
      using cmd_sf, sf_mtd should be required to register the spi flash device to
      MTD layer but the sf_mtd_info ops were not required until and unless if we
      use any flash filesystem layer say for example UBI. Due to this the foot-print
      got increased ~290bytes in non-UBI case here that should be acceptible.
      Signed-off-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Tested-by: NJagannadh Teki <jteki@openedev.com>
      Reviewed-by: NJagannadh Teki <jteki@openedev.com>
      9fe6d871
  3. 28 4月, 2015 3 次提交
  4. 23 4月, 2015 1 次提交
  5. 22 4月, 2015 1 次提交
    • P
      mtd: spi: check return value of spi_setup_slave · 4fbad92e
      Peng Fan 提交于
      Need to check value of spi_setup_slave and spi_setup_slave_fdt.
      If their return value 'bus' is NULL, there is no need to pass it
      to following spi_flash_probe_tail.
      
      If 'bus' is null, the original function flow is as following:
      spi_flash_probe
      	|->spi_setup_slave
      	|->spi_probe_bus_tail
      		|->spi_flash_probe_slave
      		|->spi_free_slave
      Alougth check the pointer in spi_free_slave is ok, checking the return value
      of spi_setup_slave and spi_setup_slave_fdt is better.
      
      Before this fix:
      "
      => sf probe 0:2
      FSL_QSPI: Not a valid cs !
      SF: Failed to set up slave
      data abort
      pc : [<fff66dcc>]          lr : [<fff7628c>]
      reloc pc : [<87814dcc>]    lr : [<8782428c>]
      sp : fdf4fcf0  ip : e630396c     fp : fe0d0888
      r10: fffa2538  r9 : fdf4feb8     r8 : 02625a00
      r7 : 00000002  r6 : fff94ec0     r5 : 00000000  r4 : 9355553c
      r3 : 1af0593c  r2 : cb3fe030     r1 : fff94eb8  r0 : e59ff018
      Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
      Resetting CPU ...
      "
      
      After this fix:
      "
      => sf probe 0:2
      FSL_QSPI: Not a valid cs !
      Failed to initialize SPI flash at 0:2
      "
      No data abort using this patch.
      Signed-off-by: NPeng Fan <Peng.Fan@freescale.com>
      Reviewed-by: NJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      4fbad92e
  6. 19 4月, 2015 1 次提交
  7. 17 4月, 2015 1 次提交
  8. 30 1月, 2015 1 次提交
    • S
      dm: spi: Move slave details to child platdata · d0cff03e
      Simon Glass 提交于
      At present we go through various contortions to store the SPI slave's chip
      select in its private data. This only exists when the slave is active so
      must be set up when it is probed. Until the device is probed we don't
      actually know what chip select it will appear on.
      
      However, now that we can support per-child platform data, we can use that
      instead. This allows us to set up the chip select when the child is bound,
      and avoid the messy contortions.
      
      Unfortunately this is a fairly large change and it seems to be difficult to
      break it down further.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d0cff03e
  9. 14 12月, 2014 2 次提交
  10. 23 10月, 2014 2 次提交
  11. 23 7月, 2014 1 次提交
  12. 09 6月, 2014 1 次提交
  13. 18 3月, 2014 2 次提交
  14. 13 1月, 2014 4 次提交
  15. 11 1月, 2014 9 次提交
  16. 19 12月, 2013 2 次提交
  17. 10 12月, 2013 2 次提交
  18. 16 10月, 2013 3 次提交
  19. 07 10月, 2013 2 次提交