summaryrefslogtreecommitdiffstats
path: root/drivers/spi/atmel_spi.c
Commit message (Collapse)AuthorAgeFilesLines
* Add GPL-2.0+ SPDX-License-Identifier to source filesWolfgang Denk2013-07-241-17/+1
| | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
* spi: atmel_spi: using ip version to check whether has wdrbtBo Shen2013-05-121-3/+12
| | | | | | | | | | | Using IP version to check whether it has wdrbt bit in mode register Tested in at91sam9x5ek and at91sam9n12ek. Signed-off-by: Bo Shen <voice.shen@atmel.com> [fix warning about incompatible parameter] Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
* spi: Use spi_alloc_slave() in each SPI driverSimon Glass2013-03-191-3/+1
| | | | | | | | Rather than each driver having its own way to allocate a SPI slave, use the new allocation function everywhere. This will make it easier to extend the interface without breaking drivers. Signed-off-by: Simon Glass <sjg@chromium.org>
* spi: atmel: sam9m10g45 also support WDRBT bitBo Shen2012-12-091-1/+1
| | | | | | | The at91sam9m10g45 also support WDRBT bit, add support for it Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
* spi: atmel: add WDRBT bit to avoid receive overrunBo Shen2012-09-011-0/+3
| | | | | | | | | | The atmel at91sam9x5 series spi has feature to avoid receive overren Using the patch to enable it Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
* drivers/spi/atmel_spi.c: Fix GCC 4.6 warningAnatolij Gustschin2011-11-161-2/+0
| | | | | | | | | Fix: atmel_spi.c: In function 'spi_xfer': atmel_spi.c:139:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
* ATMEL: fix related common atmel driver filesReinhard Meyer2011-05-181-8/+8
| | | | Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
* AT91/AVR32: atmel_spi.c: flush RDR before next SPI transactionReinhard Meyer2010-09-031-2/+11
| | | | Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
* atmel_spi: Driver for the Atmel SPI controllerHans-Christian Egtvedt2008-06-031-0/+210
This adds a driver for the SPI controller found on most AT91 and AVR32 chips, implementing the new SPI API. Changed in v4: - Update to new API - Handle zero-length transfers appropriately. The user may send a zero-length SPI transfer with SPI_XFER_END set in order to deactivate the chip select after a series of transfers with chip select active. This is useful e.g. when polling the status register of DataFlash. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
OpenPOWER on IntegriCloud