1. 07 3月, 2018 1 次提交
  2. 23 12月, 2017 1 次提交
  3. 21 12月, 2017 1 次提交
  4. 04 8月, 2017 1 次提交
  5. 28 7月, 2017 2 次提交
  6. 17 7月, 2017 1 次提交
  7. 07 6月, 2017 1 次提交
  8. 24 1月, 2017 1 次提交
  9. 19 1月, 2017 1 次提交
  10. 18 1月, 2017 1 次提交
  11. 05 1月, 2017 1 次提交
  12. 30 9月, 2016 1 次提交
  13. 27 9月, 2016 1 次提交
    • M
      spi: pxa2xx: Add support for GPIO descriptor chip selects · 99f499cd
      Mika Westerberg 提交于
      The driver uses custom chip_info coming from platform data for chip selects
      implemented as GPIOs. If the system lacks board files setting up the
      platform data, it is not possible to use GPIOs as chip selects.
      
      This adds support for GPIO descriptors so that regardless of the underlying
      firmware interface (DT, ACPI or platform data) the driver can request GPIOs
      used as chip selects and configure them accordingly.
      
      The custom chip_info GPIO support is still left there to make sure the
      existing systems keep working as expected.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      99f499cd
  14. 13 9月, 2016 4 次提交
  15. 07 7月, 2016 1 次提交
  16. 04 7月, 2016 1 次提交
  17. 22 6月, 2016 2 次提交
  18. 31 5月, 2016 1 次提交
    • D
      spi: pxa2xx: use DMA by default if supported · c64e1265
      Dan O'Donovan 提交于
      Currently, even if the PXA2xx SPI master supports DMA, it won't be
      enabled unless (i) the slave device is enumerated through ACPI, or
      (ii) the slave device is registered with board-specific
      controller_data specified.  Even then, there isn't a field in the
      controller_data that explicitly enables dma - it just gets enabled
      if the master supports it and controller_data is non-NULL.
      
      This means that drivers which register SPI devices on a bus without
      awareness of this controller cannot avail of DMA performance gains.
      
      This patch allows DMA transfers to be used if supported.
      Signed-off-by: NDan O'Donovan <dan@emutex.com>
      Reviewed-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c64e1265
  19. 26 4月, 2016 2 次提交
  20. 29 3月, 2016 1 次提交
  21. 28 3月, 2016 2 次提交
  22. 02 3月, 2016 1 次提交
  23. 21 2月, 2016 1 次提交
  24. 10 2月, 2016 3 次提交
  25. 04 2月, 2016 2 次提交
    • J
      spi: pxa2xx: Fix too early chipselect deassert · 7a8d44bc
      Jarkko Nikula 提交于
      There is a chance that chipselect is deasserted too early while the last
      clock cycle is still running. Protocol analyzers will see this as a failed
      last byte. This is more likely to occur with slow bitrates, for instance
      at 25 kbps.
      
      Reason for this is when using SPI mode 0 that both SPI host controller and
      SPI slave will drive the data lines at the falling edge of clock signal
      and sample at the rising edge. Receive FIFO gets the last bit now at the
      rising edge and code sees transfer to be finished either by the interrupt
      in PIO mode or by the DMA completion in DMA mode.
      
      The SSP Time Out register SSTO should take care of delaying the
      completion but it does not seems to have effect at least on Intel
      Skylake and Broxton even when using long enough values. Depending on
      timing code may get into point where chipselect is deasserted while the
      last clock cycle is still running at its second half cycle.
      
      Fix this by adding a wait loop in giveback() that waits until SSP becomes
      idle before deasserting the chipselect.
      Reported-by: NWeifeng Voon <weifeng.voon@intel.com>
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      7a8d44bc
    • J
      spi: pxa2xx: Update comment in int_transfer_complete() · 07550df0
      Jarkko Nikula 提交于
      The register writes here actually don't stop the SSP but clean and
      disable interrupts and set the receive FIFO inactivity timeout to zero.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      07550df0
  26. 27 1月, 2016 1 次提交
  27. 21 11月, 2015 1 次提交
  28. 30 10月, 2015 3 次提交
    • J
      spi: pxa2xx: Rework self-initiated platform data creation for non-ACPI · 0db64215
      Jarkko Nikula 提交于
      Extend the pxa2xx_spi_acpi_get_pdata() so that it can create platform data
      also on platforms that do not support ACPI or if CONFIG_ACPI is not set.
      Now it is expected that "pxa2xx-spi" platform device is either created with
      explicit platform data or has an ACPI companion device.
      
      However there is only little in pxa2xx_spi_acpi_get_pdata() that is really
      dependent on ACPI companion and it can be reworked to cover also cases
      where "pxa2xx-spi" device doesn't have ACPI companion and is created
      without platform data.
      
      Do this by renaming the pxa2xx_spi_acpi_get_pdata(), moving it outside of
      CONFIG_ACPI test and changing a few runtime tests there to support non-ACPI
      case. Only port/bus ID setting based on ACPI _UID is dependent on ACPI and
      is moved to own function inside CONFIG_ACPI.
      
      Purpose of this to support non-ACPI case for those PCI enumerated compound
      devices that integrate both LPSS SPI host controller and integrated DMA
      engine under the same PCI ID and which are registered in MFD layer instead
      of in spi-pxa2xx-pci.c.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      0db64215
    • J
      spi: pxa2xx: Add support for Intel Broxton · b7c08cf8
      Jarkko Nikula 提交于
      LPSS SPI in Intel Broxton is otherwise the same than in Intel Sunrisepoint
      but it supports up to four chip selects per port and has different FIFO
      thresholds. Patch adds support for two Broxton SoC variants.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b7c08cf8
    • J
      spi: pxa2xx: Detect number of enabled Intel LPSS SPI chip select signals · 8b136baa
      Jarkko Nikula 提交于
      SPI capabilities register located in private registers space of newer
      Intel LPSS SPI host controllers tell in register bits 12:9 which chip
      select signals are enabled.
      
      Use that information for detecting the number of chip selects. For
      simplicity we assume chip selects are enabled one after another without
      disabled chip selects between. For instance CS0 | CS1 | CS2 but not
      CS0 | CS1 | CS3.
      Signed-off-by: NJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      8b136baa