1. 22 9月, 2016 1 次提交
    • J
      spi: Use mode for rx mode flags · 08fe9c29
      Jagan Teki 提交于
      Make rx mode flags as generic to spi, earlier mode_rx is
      maintained separately because of some flash specific code.
      
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
      Cc: Vignesh R <vigneshr@ti.com>
      Cc: Mugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NJagan Teki <jteki@openedev.com>
      08fe9c29
  2. 17 5月, 2016 1 次提交
  3. 13 1月, 2016 14 次提交
  4. 23 10月, 2015 1 次提交
  5. 18 8月, 2015 1 次提交
  6. 01 7月, 2015 1 次提交
  7. 06 5月, 2015 2 次提交
  8. 23 4月, 2015 1 次提交
  9. 22 4月, 2015 1 次提交
  10. 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
  11. 14 12月, 2014 1 次提交
  12. 22 11月, 2014 2 次提交
  13. 23 10月, 2014 2 次提交
    • S
      dm: sandbox: Add a SPI emulation uclass · c60e1f25
      Simon Glass 提交于
      U-Boot includes a SPI emulation driver already but it is not explicit, and
      is hidden in the SPI flash code.
      
      Conceptually with sandbox's SPI implementation we have a layer which
      creates SPI bus transitions and a layer which interprets them, currently
      only for SPI flash. The latter is actually an emulation, and it should be
      possible to add more than one emulation - not just SPI flash.
      
      Add a SPI emulation uclass so that other emulations can be plugged in to
      support different types of emulated devices on difference buses/chip
      selects.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      c60e1f25
    • S
      dm: spi: Add a uclass for SPI · d7af6a48
      Simon Glass 提交于
      Add a uclass which provides access to SPI buses and includes operations
      required by SPI.
      
      For a time driver model will need to co-exist with the legacy SPI interface
      so some parts of the header file are changed depending on which is in use.
      The exports are adjusted also since some functions are not available with
      driver model.
      
      Boards must define CONFIG_DM_SPI to use driver model for SPI.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      (Discussed some follow-up comments which will address in future add-ons)
      d7af6a48
  14. 27 9月, 2014 1 次提交
  15. 13 1月, 2014 2 次提交
  16. 11 1月, 2014 3 次提交
  17. 10 12月, 2013 1 次提交
  18. 12 11月, 2013 2 次提交
    • N
      spi: define SPI_XFER_ONCE · 4700219d
      Nikita Kiryanov 提交于
      The flag combination "SPI_XFER_BEGIN | SPI_XFER_END" is a common use
      case of spi_xfer, and it can easily cause an already long line (spi_xfer
      takes 5 parameters) to go over the 80 character limit.
      
      define SPI_XFER_ONCE to be a shorter version of the above flag combination.
      
      Cc: Tom Rini <trini@ti.com>
      Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: NNikita Kiryanov <nikita@compulab.co.il>
      4700219d
    • N
      spi: omap3: add support for more word lengths · 5753d09b
      Nikita Kiryanov 提交于
      Current implementation only supports 8 bit word lengths, even though
      omap3 can handle anything between 4 and 32.
      
      Update the spi interface to support changing the SPI word length,
      and implement it in omap3_spi driver to support the full range of
      possible word lengths.
      This implementation is backwards compatible by defaulting to the old
      behavior of 8 bit word lengths.
      Also, it required a change to the omap3_spi non static I/O functions,
      but since they are not used anywhere else, no collateral changes are required.
      
      Cc: Tom Rini <trini@ti.com>
      Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: NNikita Kiryanov <nikita@compulab.co.il>
      5753d09b
  19. 16 10月, 2013 1 次提交
  20. 07 10月, 2013 1 次提交