Skip to content
Snippets Groups Projects
  1. Jan 21, 2010
  2. Jan 20, 2010
  3. Dec 17, 2009
  4. Dec 13, 2009
    • Cory Maccarrone's avatar
      Add OMAP spi100k driver · 35c9049b
      Cory Maccarrone authored
      
      This change adds the OMAP SPI 100k driver created by
      Fabrice Crohas <fcrohas@gmail.com>.  This SPI bus is found on
      OMAP7xx-series smartphones, and for many, the touchscreen is
      attached to this bus.
      
      The lion's share of the work was done by Fabrice on this driver --
      I am merely porting it from the Linwizard project on his behalf.
      
      Signed-off-by: default avatarCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      35c9049b
    • Wan ZongShun's avatar
    • Magnus Damm's avatar
      spi: SuperH MSIOF SPI Master driver V2 · 8051effc
      Magnus Damm authored
      
      This patch is V2 of SPI Master support for the SuperH MSIOF.
      Full duplex, spi mode 0-3, active high cs, 3-wire and lsb
      first should all be supported, but the driver has so far
      only been tested with "mmc_spi".
      
      The MSIOF hardware comes with 32-bit FIFOs for receive and
      transmit, and this driver simply breaks the SPI messages
      into FIFO-sized chunks. The MSIOF hardware manages the pins
      for clock, receive and transmit (sck/miso/mosi), but the chip
      select pin is managed by software and must be configured as
      a regular GPIO pin by the board code.
      
      Performance wise there is still room for improvement, but
      on a Ecovec board with the built-in sh7724 MSIOF0 this driver
      gets Mini-sd read speeds of about half a megabyte per second.
      
      Future work include better clock setup and merging of 8-bit
      transfers into 32-bit words to reduce interrupt load and
      improve throughput.
      
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      8051effc
  5. Dec 09, 2009
  6. Nov 04, 2009
  7. Oct 01, 2009
  8. Sep 23, 2009
  9. Jun 19, 2009
  10. Jun 10, 2009
  11. Jan 26, 2009
  12. Jan 06, 2009
    • David Brownell's avatar
      spi_gpio driver · d29389de
      David Brownell authored
      
      Generalize the old at91rm9200 "bootstrap" bitbanging SPI master driver as
      "spi_gpio", so it works with arbitrary GPIOs and can be configured through
      platform_data.  Such SPI masters support:
      
       - any number of bus instances (bus_num is the platform_device.id)
       - any number of chipselects (one GPIO per spi_device)
       - all four SPI_MODE values, and SPI_CS_HIGH
       - i/o word sizes from 1 to 32 bits;
       - devices configured as with any other spi_master controller
      
      When configured using platform_data, this provides relatively low clock
      rates.  On platforms that support inlined GPIO calls, significantly
      improved transfer speeds are also possible with a semi-custom driver.
      (It's still painful when accessing flash memory, but less so.)
      
      Sanity checked by using this version to replace both native controllers on
      a board with six different SPI slaves, relying on three different
      SPI_MODE_* values and both SPI_CS_HIGH settings for correct operation.
      
      [akpm@linux-foundation.org: cleanups]
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: default avatarMagnus Damm <damm@igel.co.jp>
      Tested-by: default avatarMagnus Damm <damm@igel.co.jp>
      Cc: Torgil Svensson <torgil.svensson@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d29389de
  13. Aug 05, 2008
  14. Feb 06, 2008
  15. Jul 17, 2007
  16. May 11, 2007
  17. May 08, 2007
    • Jan Nikitenko's avatar
      au1550 SPI controller driver · 63bd2359
      Jan Nikitenko authored
      
      Here is a driver for the Alchemy au1550 PSC (Programmable Serial
      Controller) in SPI master mode.
      
      It supports dma transfers using the Alchemy descriptor based dma controller
      for 4-8 bits per word SPI transfers.  For 9-24 bits per word transfers, pio
      irq based mode is used to avoid setup of dma channels from scratch on each
      number of bits per word change.
      
      Tested with au1550; this may also work on other MIPS Alchemy cpus, like
      au1200/au1210/au1250.  Used extensively with SD card connected via SPI;
      this handles 8.1MHz SPI clock transfers using dma without any problem (the
      highest SPI clock freq possible with au1550 running on 324MHz).
      
      The driver supports sharing of SPI bus by multiple devices.  All features
      of Alchemy SPI mode are supported (all SPI modes, msb/lsb first, bits per
      word in 4-24 range).
      
      As the SPI clock of the controller depends on main input clock that shall
      be configured externally, platform data structure for au1550 SPI controller
      driver contains mainclk_hz attribute to define the input clock rate.  From
      this value, dividers of the controller for SPI clock are set up for
      required frequency.
      
      Signed-off-by: default avatarJan Nikitenko <jan.nikitenko@gmail.com>
      
      Whitespace and section fixups.  Remove partial workaround for platform
      setup bug in dma_mask setup; it couldn't work with multiple controllers.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      63bd2359
    • Andrea Paterniani's avatar
      /dev/spidevB.C interface · 814a8d50
      Andrea Paterniani authored
      
      Add a filesystem API for <linux/spi/spi.h> stack.  The initial version of
      this interface is purely synchronous.
      
      dbrownell@users.sourceforge.net:
      
       Cleaned up, bugfixed; much simplified; added preliminary documentation.
      
       Works with mdev given CONFIG_SYSFS_DEPRECATED; and presumably udev.
      
       Updated SPI_IOC_MESSAGE ioctl to full spi_message semantics, supporting
       groups of one or more transfers (each of which may be full duplex if
       desired).
      
       This is marked as EXPERIMENTAL with an explicit disclaimer that the API
       (notably the ioctls) is subject to change.
      
      Signed-off-by: default avatarAndrea Paterniani <a.paterniani@swapp-eng.it>
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      814a8d50
  18. May 07, 2007
  19. Feb 14, 2007
  20. Feb 12, 2007
  21. May 21, 2006
Loading