1. 17 May, 2016 1 commit
  2. 13 Jan, 2016 14 commits
  3. 23 Oct, 2015 1 commit
  4. 17 Aug, 2015 1 commit
  5. 01 Jul, 2015 1 commit
  6. 06 May, 2015 2 commits
  7. 23 Apr, 2015 1 commit
  8. 22 Apr, 2015 1 commit
  9. 30 Jan, 2015 1 commit
    • Simon Glass's avatar
      dm: spi: Move slave details to child platdata · d0cff03e
      Simon Glass authored
      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: default avatarSimon Glass <sjg@chromium.org>
      d0cff03e
  10. 13 Dec, 2014 1 commit
  11. 22 Nov, 2014 2 commits
  12. 22 Oct, 2014 2 commits
    • Simon Glass's avatar
      dm: sandbox: Add a SPI emulation uclass · c60e1f25
      Simon Glass authored
      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: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      c60e1f25
    • Simon Glass's avatar
      dm: spi: Add a uclass for SPI · d7af6a48
      Simon Glass authored
      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: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      (Discussed some follow-up comments which will address in future add-ons)
      d7af6a48
  13. 26 Sep, 2014 1 commit
  14. 12 Jan, 2014 2 commits
  15. 11 Jan, 2014 3 commits
  16. 09 Dec, 2013 1 commit
  17. 12 Nov, 2013 2 commits
    • Nikita Kiryanov's avatar
      spi: define SPI_XFER_ONCE · 4700219d
      Nikita Kiryanov authored
      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: default avatarNikita Kiryanov <nikita@compulab.co.il>
      4700219d
    • Nikita Kiryanov's avatar
      spi: omap3: add support for more word lengths · 5753d09b
      Nikita Kiryanov authored
      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: default avatarNikita Kiryanov <nikita@compulab.co.il>
      5753d09b
  18. 15 Oct, 2013 1 commit
  19. 07 Oct, 2013 2 commits