summaryrefslogtreecommitdiffstats
path: root/include/spi
Commit message (Collapse)AuthorAgeFilesLines
* spi: Call spi_of_register_slaves from coreSascha Hauer2013-10-311-2/+0
| | | | | | Makes individual handling of OF spi slaves unnecessary in the bus drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide include/: Add missing includesSascha Hauer2013-05-311-0/+1
| | | | | | | This adds several missing includes to files under include/ which we relied on being included implicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce device_spi_driver() macro and use it for SPI driversAlexander Shiyan2013-03-141-0/+3
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* SPI: Rename spi_register_driver() for using with register_driver_macro()Alexander Shiyan2013-03-141-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: fix compiler warningAntony Pavlov2013-01-261-0/+2
| | | | | | | | Fixes: drivers/spi/spi.c:59: warning: no previous prototype for 'spi_new_device' Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spi'Sascha Hauer2012-11-161-0/+2
|\
| * spi: introduce spi_get_masterJean-Christophe PLAGNIOL-VILLARD2012-11-121-0/+2
| | | | | | | | | | | | | | so we can request a master usefull for the spi command Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mtd: add dataflash supportJean-Christophe PLAGNIOL-VILLARD2012-10-151-1/+1
|/ | | | | | from linux 3.6 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* spi: add oftree supportSascha Hauer2012-09-141-0/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* SPI: Put SPI devices on their own busSascha Hauer2012-09-141-0/+7
| | | | | | | | | This patch adds a SPI bus on which the SPI devices and drivers register. This makes it cleaner as SPI devices won't accidently end up probed by a platform_device driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* spi: indicate in the docs that per-transfer bpw setting is not supportedPaul Fertser2011-09-291-1/+2
| | | | | | | | Currently it's not implemented by any driver so add a note to the documentation. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nor: Add SPI flash driverFranck Jullien2011-08-241-0/+30
| | | | | | | | | This patch adds the m25p80 driver. It has been ported from Linux. MTD code has been removed. It has been tested with a m25p40 chip and the Altera SPI master driver. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add bits_per_word to proxy structureFranck Jullien2011-07-061-0/+1
| | | | | | | | | | | | | During the creation of a new spi device, we need to have the possiblility to give the bits_per_word value to master->setup. As a matter of fact, spi master could check the spi device bits_per_word and compare this value against its capabilities. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eeprom: add at25 eeprom driverHubert Feurstein2011-06-211-0/+22
| | | | | | | | This commit adds support for most spi eeproms, such as the Atmel at25 models. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add more spi transfer functionsHubert Feurstein2011-06-211-0/+74
| | | | | | | | | | | | | This commit adds the following spi transfer functions: - spi_write - spi_read - spi_write_then_read - spi_w8r8 The code has been ported from the linux kernel. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add platform_data pointer to spi_board_infoHubert Feurstein2011-06-211-2/+2
| | | | | | | | | In the spi layer this pointer will be assigned to the platform_data pointer of the new spi device, thus it can be accessed in the drivers 'probe' handler. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* documentation updatesJuergen Beisert2009-12-151-0/+4
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* SPI: Add empty spi_register_board_info function when SPI is disabledSascha Hauer2008-08-131-1/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* first (partly) running spi supportSascha Hauer2008-03-141-1/+307
|
* beginning of SPI supportSascha Hauer2008-03-111-0/+35