1. 09 12月, 2016 1 次提交
  2. 13 6月, 2016 1 次提交
  3. 31 5月, 2016 1 次提交
    • S
      spi: orion: Add direct access mode · b3c195b3
      Stefan Roese 提交于
      This patch adds support for the direct access mode to the Orion SPI
      driver which is used on the Marvell Armada based SoCs. In this direct
      mode, all data written to (or read from) a specifically mapped MBus
      window (linked to one SPI chip-select on one of the SPI controllers)
      will be transferred directly to the SPI bus. Without the need to control
      the SPI registers in between. This can improve the SPI transfer rate in
      such cases.
      
      Both, direct-read and -write mode are supported. But only the write
      mode has been tested. This mode especially benefits from the SPI direct
      mode, as the data bytes are written head-to-head to the SPI bus,
      without any additional addresses.
      
      One use-case for this direct write mode is, programming a FPGA bitstream
      image into the FPGA connected to the SPI bus at maximum speed.
      
      This mode is described in chapter "22.5.2 Direct Write to SPI" in the
      Marvell Armada XP Functional Spec Datasheet.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b3c195b3
  4. 12 8月, 2015 1 次提交
  5. 28 5月, 2015 1 次提交
    • G
      spi: orion: Fix extended baud rates for each Armada SoCs · 4dacccfa
      Gregory CLEMENT 提交于
      The commit df59fa7f "spi: orion: support armada extended baud
      rates" made the assumptions that all the Armada SoCs supported the
      same maximum frequency. However, according the hardware datasheet, the
      maximum frequency supported by the Armada 370 SoC is tclk/4, for the
      Armada XP, Armada 38x and Armada 39x SoCs the limitation is 50MHz and
      for the Armada 375 it is tclk/15.
      
      This patch introduces new compatible strings to handle all these
      case. In order to be future proof a compatible was created for each
      SoC even if currently some SoCs seem using the same IP.
      Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4dacccfa
  6. 26 5月, 2015 1 次提交
    • G
      spi: orion: Fix maximum baud rates for Armada 370/XP · ce2f6ea1
      Gregory CLEMENT 提交于
      The commit df59fa7f "spi: orion: support armada extended baud
      rates" was too optimistic for the maximum baud rate that the Armada
      SoCs can support. According to the hardware datasheet the maximum
      frequency supported by the Armada 370 SoC is tclk/4. But for the
      Armada XP, Armada 38x and Armada 39x SoCs the limitation is 50MHz and
      for the Armada 375 it is tclk/15.
      
      Currently the armada-370-spi compatible is only used by the Armada 370
      and the Armada XP device tree. On Armada 370, tclk cannot be higher
      than 200MHz. In order to be able to handle both SoCs, we can take the
      minimum of 50MHz and tclk/4.
      
      A proper solution is adding a compatible string for each SoC, but it
      can't be done as a fix for compatibility reason (we can't modify
      device tree that have been already released) and it will be part of a
      separate patch.
      
      Fixes: df59fa7f (spi: orion: support armada extended baud rates)
      Reported-by: NKostya Porotchkin <kostap@marvell.com>
      Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: <stable@vger.kernel.org>
      ce2f6ea1
  7. 16 1月, 2015 1 次提交
  8. 15 1月, 2015 1 次提交
  9. 13 12月, 2014 1 次提交
  10. 22 10月, 2014 1 次提交
  11. 20 10月, 2014 1 次提交
  12. 02 10月, 2014 1 次提交
  13. 04 9月, 2014 1 次提交
  14. 29 7月, 2014 1 次提交
    • T
      spi: orion: fix incorrect handling of cell-index DT property · e06871cd
      Thomas Petazzoni 提交于
      In commit f814f9ac ("spi/orion: add device tree binding"), Device
      Tree support was added to the spi-orion driver. However, this commit
      reads the "cell-index" property, without taking into account the fact
      that DT properties are big-endian encoded.
      
      Since most of the platforms using spi-orion with DT have apparently
      not used anything but cell-index = <0>, the problem was not
      visible. But as soon as one starts using cell-index = <1>, the problem
      becomes clearly visible, as the master->bus_num gets a wrong value
      (actually it gets the value 0, which conflicts with the first bus that
      has cell-index = <0>).
      
      This commit fixes that by using of_property_read_u32() to read the
      property value, which does the appropriate endianness conversion when
      needed.
      
      Fixes: f814f9ac ("spi/orion: add device tree binding")
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Acked-by: NSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      Cc: <stable@vger.kernel.org> # v3.6+
      e06871cd
  15. 26 7月, 2014 1 次提交
  16. 21 6月, 2014 2 次提交
  17. 01 3月, 2014 1 次提交
  18. 12 2月, 2014 1 次提交
  19. 07 2月, 2014 1 次提交
  20. 06 2月, 2014 1 次提交
  21. 03 2月, 2014 1 次提交
  22. 10 12月, 2013 1 次提交
  23. 15 10月, 2013 1 次提交
  24. 26 9月, 2013 1 次提交
  25. 29 7月, 2013 2 次提交
  26. 23 5月, 2013 1 次提交
  27. 05 2月, 2013 2 次提交
  28. 08 12月, 2012 1 次提交
  29. 06 12月, 2012 1 次提交
  30. 18 8月, 2012 1 次提交
  31. 23 7月, 2012 2 次提交
  32. 09 5月, 2012 1 次提交
  33. 16 3月, 2012 1 次提交
  34. 01 11月, 2011 1 次提交
  35. 11 6月, 2011 1 次提交
  36. 06 6月, 2011 1 次提交