1. 13 3月, 2013 1 次提交
    • C
      spi: add driver for BCM2835 · f8043872
      Chris Boot 提交于
      The BCM2835 contains two forms of SPI master controller (one known
      simply as SPI0, and the other known as the "Universal SPI Master", in
      the auxilliary block) and one form of SPI slave controller. This patch
      adds support for the SPI0 controller.
      
      This driver is taken from Chris Boot's repository at
      git://github.com/bootc/linux.git rpi-linear
      as of commit 6de2905 "spi-bcm2708: fix printf with spurious %s".
      In the first SPI-related commit there, Chris wrote:
      
      Thanks to csoutreach / A Robinson for his driver which I used as an
      inspiration. You can find his version here:
      http://piface.openlx.org.uk/raspberry-pi-spi-kernel-driver-available-for
      
      Changes made during upstreaming:
      * Renamed bcm2708 to bcm2835 as per upstream naming for this SoC.
      * Removed support for brcm,realtime property.
      * Increased transfer timeout to 30 seconds.
      * Return IRQ_NONE from the IRQ handler if no interrupt was handled.
      * Disable TA (Transfer Active) and clear FIFOs on a transfer timeout.
      * Wrote device tree binding documentation.
      * Request unnamed clock rather than "sys_pclk"; the DT will provide the
        correct clock.
      * Assume that tfr->speed_hz and tfr->bits_per_word are always set in
        bcm2835_spi_start_transfer(), bcm2835_spi_transfer_one(), so no need
        to check spi->speed_hz or tft->bits_per_word.
      * Re-ordered probe() to remove the need for temporary variables.
      * Call clk_disable_unprepare() rather than just clk_unprepare() on probe()
        failure.
      * Don't use devm_request_irq(), to ensure that the IRQ doesn't fire after
        we've torn down the device, but not unhooked the IRQ.
      * Moved probe()'s call to clk_prepare_enable() so we can be sure the clock
        is enabled if the IRQ handler fires immediately.
      * Remove redundant checks from bcm2835_spi_check_transfer() and
        bcm2835_spi_setup().
      * Re-ordered IRQ handler to check for RXR before DONE. Added comments to
        ISR.
      * Removed empty prepare/unprepare implementations.
      * Removed use of devinit/devexit.
      * Added BCM2835_ prefix to defines.
      Signed-off-by: NChris Boot <bootc@bootc.net>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f8043872
  2. 08 2月, 2013 3 次提交
  3. 26 1月, 2013 1 次提交
  4. 22 1月, 2013 1 次提交
  5. 06 12月, 2012 3 次提交
  6. 14 11月, 2012 1 次提交
  7. 31 10月, 2012 1 次提交
  8. 01 10月, 2012 1 次提交
    • S
      spi: remove completely broken Tegra driver · 536a53a3
      Stephen Warren 提交于
      The current SPI driver has many issues. Examples are:
      
      * Segfaulting on most transfers due to expecting all transfers to have
        both RX and TX buffers.
      * Hanging on TX transfers since the whole driver flow is driven by RX
        DMA completion, but the HW is only told to enable RX for RX transfers.
      * Use of clk_disable_unprepare() from atomic context.
      * Once those and other minor issues are fixed, the driver still doesn't
        actually work.
      * The driver also implements a deprecated API to the SPI core.
      
      For this reason, simply remove the driver completely. This has two
      advantages:
      
      1) This will remove the last use of Tegra's <mach/dma.h>, which will
         allow that file to be removed, which is required for single zImage
         work.
      
      2) The downstream driver is significaly different from the current
         code. I believe a patch to re-add the downstream driver (with
         appropriate cleanup) will be much simpler to review if it's a new
         file rather than randomly interspered with essentially unrelated
         existing code.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      536a53a3
  9. 17 9月, 2012 1 次提交
  10. 01 9月, 2012 1 次提交
  11. 23 8月, 2012 2 次提交
  12. 18 8月, 2012 1 次提交
  13. 23 7月, 2012 1 次提交
  14. 20 7月, 2012 1 次提交
  15. 16 7月, 2012 1 次提交
  16. 10 7月, 2012 1 次提交
  17. 28 4月, 2012 1 次提交
  18. 25 4月, 2012 1 次提交
  19. 10 3月, 2012 4 次提交
  20. 08 3月, 2012 1 次提交
  21. 03 3月, 2012 1 次提交
    • K
      ARM: S3C24XX: change the ARCH_S3C2410 to ARCH_S3C24XX · b130d5c2
      Kukjin Kim 提交于
      This patch changes the ARCH name to "ARCH_S3C24XX" for Samsung
      S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443,
      and S3C2450 SoCs so that we can merge the mach-xxx directories
      and plat-s3c24xx dir. to just one mach-s3c24xx for them.
      
      I think this should be sent to upstream via samsung tree because
      this touches many samsung stuff.
      
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      [for the gadget part:]
      Acked-by: NFelipe Balbi <balbi@ti.com>
      [for the framebuffer (video) part:]
      Acked-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      [For the watchdog-part:]
      Acked-by: NWim Van Sebroeck <wim@iguana.be>
      Cc: Sangbeom Kim <sbkim73@samsung.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      b130d5c2
  22. 06 2月, 2012 1 次提交
  23. 02 1月, 2012 1 次提交
  24. 08 12月, 2011 2 次提交
  25. 14 11月, 2011 1 次提交
  26. 29 10月, 2011 1 次提交
  27. 25 10月, 2011 1 次提交
  28. 15 7月, 2011 2 次提交
    • S
      spi/imx: use soc name in spi device type naming scheme · 04ee5854
      Shawn Guo 提交于
      Software defined version number is not stable enough to be used
      in device type naming scheme.  The patch changes it to use implicit
      soc name for spi device type definition.  In this way, we can easily
      align the naming scheme with device tree binding, which comes later.
      
      It removes fifosize from spi_imx_data and adds devtype there, so that
      fifosize can be set in an inline function according to devtype.
      Also, cpu_is_mx can be replaced by inline functions checking devtype.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      04ee5854
    • S
      spi/imx: merge type SPI_IMX_VER_0_7 into SPI_IMX_VER_0_4 · 2a64a90a
      Shawn Guo 提交于
      The only difference between SPI_IMX_VER_0_7 and SPI_IMX_VER_0_4 is
      .config function.  The patch uses cpu_is_mx35 (to be removed) as the
      temporary solution to consolidate functions spi_imx0_4_config and
      spi_imx0_7_config into mx31_config.  As a result, type SPI_IMX_VER_0_7
      can be merged into SPI_IMX_VER_0_4.
      
      It also renames function spi_imx0_4_reset to mx31_reset to keep
      consistency with other function naming.
      
      A couple of redundant macros, MX3_CSPISTAT and MX3_CSPISTAT_RR,
      together with the useless type SPI_IMX_VER_0_5 also get cleaned up.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      2a64a90a
  29. 05 7月, 2011 1 次提交
  30. 09 6月, 2011 1 次提交