1. 10 6月, 2015 1 次提交
    • C
      spi: atmel: add support for the internal chip-select of the spi controller · 48203034
      Cyrille Pitchen 提交于
      This patch relies on the CSAAT (Chip Select Active After Transfer) feature
      introduced by the version 2 of the spi controller. This new mode allows to
      use properly the internal chip-select output pin of the spi controller
      instead of using external gpios. Consequently, the "cs-gpios" device-tree
      property becomes optional.
      
      When the new CSAAT bit is set into the Chip Select Register, the internal
      chip-select output pin remains asserted till both the following conditions
      become true:
      - the LASTXFER bit is set into the Control Register (or the Transmit Data
        Register)
      - the Transmit Data Register and its shift register are empty.
      
      WARNING: if the LASTXFER bit is set into the Control Register then new
      data are written into the Transmit Data Register fast enough to keep its
      shifter not empty, the chip-select output pin remains asserted. Only when
      the shifter becomes empty, the chip-select output pin is unasserted.
      
      When the CSAAT bit is clear in the Chip Select Register, the LASTXFER bit
      is ignored in both the Control Register and the Transmit Data Register.
      The internal chip-select output pin remains active as long as the Transmit
      Data Register or its shift register are not empty.
      Signed-off-by: NCyrille Pitchen <cyrille.pitchen@atmel.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      48203034
  2. 23 3月, 2015 1 次提交
  3. 26 2月, 2015 1 次提交
    • T
      spi: atmel: Fix interrupt setup for PDC transfers · 76e1d14b
      Torsten Fleischer 提交于
      Additionally to the current DMA transfer the PDC allows to set up a next DMA
      transfer. This is useful for larger SPI transfers.
      
      The driver currently waits for ENDRX as end of the transfer. But ENDRX is set
      when the current DMA transfer is done (RCR = 0), i.e. it doesn't include the
      next DMA transfer.
      Thus a subsequent SPI transfer could be started although there is currently a
      transfer in progress. This can cause invalid accesses to the SPI slave devices
      and to SPI transfer errors.
      
      This issue has been observed on a hardware with a M25P128 SPI NOR flash.
      
      So instead of ENDRX we should wait for RXBUFF. This flag is set if there is
      no more DMA transfer in progress (RCR = RNCR = 0).
      Signed-off-by: NTorsten Fleischer <torfl6749@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      76e1d14b
  4. 04 2月, 2015 1 次提交
  5. 25 11月, 2014 2 次提交
  6. 22 10月, 2014 1 次提交
  7. 20 10月, 2014 4 次提交
  8. 02 8月, 2014 1 次提交
  9. 17 7月, 2014 1 次提交
  10. 08 5月, 2014 1 次提交
  11. 18 4月, 2014 1 次提交
  12. 15 4月, 2014 1 次提交
  13. 22 3月, 2014 1 次提交
  14. 05 3月, 2014 2 次提交
  15. 03 3月, 2014 2 次提交
  16. 13 2月, 2014 1 次提交
  17. 03 2月, 2014 1 次提交
  18. 10 1月, 2014 1 次提交
  19. 08 1月, 2014 1 次提交
  20. 04 12月, 2013 1 次提交
  21. 23 10月, 2013 1 次提交
  22. 17 10月, 2013 2 次提交
  23. 15 10月, 2013 1 次提交
  24. 07 10月, 2013 1 次提交
  25. 17 9月, 2013 2 次提交
  26. 11 9月, 2013 1 次提交
  27. 01 8月, 2013 1 次提交
    • E
      spi/atmel: Fix format specifier warnings · 2de024b7
      Emil Goode 提交于
      This patch fixes the following sparse warnings.
      dma_addr_t can be either u32 or u64 so we should cast to the
      largest type and use the format specifier %llx.
      
      drivers/spi/spi-atmel.c: In function ‘atmel_spi_next_xfer_dma_submit’:
      drivers/spi/spi-atmel.c:631:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:631:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c: In function ‘atmel_spi_pdc_next_xfer’:
      drivers/spi/spi-atmel.c:734:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:734:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:773:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:773:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      Signed-off-by: NEmil Goode <emilgoode@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      2de024b7
  28. 29 7月, 2013 1 次提交
  29. 17 7月, 2013 1 次提交
  30. 03 6月, 2013 1 次提交
  31. 30 5月, 2013 1 次提交
  32. 02 5月, 2013 1 次提交