diff options
| author | Stephan Linz <[email protected]> | 2012-07-29 00:25:35 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2012-07-31 07:14:04 +0200 |
| commit | 09aac75e4df6a5c62c3481eda7f90204846893c5 (patch) | |
| tree | 599f10769f2d9ad4be47c00e4f41fbf27ae6a3e7 /include/linux/string.h | |
| parent | 575a3d21f6d7cbb653e48a957d0b2db944f2b9b3 (diff) | |
spi: microblaze: Adds driver for Xilinx SPI controller
This is an improved version of the driver patch original
submitted by Graeme Smecher <[email protected]>
The changes are:
- remove hard coded Xilinx BSP defines (XPAR_SPI_*) and
use CONFIG_SYS_SPI_BASE from config.h instead
- add extensive register struct definitions
- remove offset calculation for register access and
use the new register struct instead
- move default SPI controller configuration from
spi_setup_slave() to spi_claim_bus()
- add spi_set_speed()
- insert SPI controller deactivation in spi_release_bus()
- protect while loops in spi_xfer() with counter / timeouts
- support SPI mode flags: LSB_FIRST, CPHA, CPOL, LOOP
Come from:
http://patchwork.ozlabs.org/patch/71797/
Signed-off-by: Stephan Linz <[email protected]>
Tested-by: Michal Simek <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
