spi/clps711x: New SPI master driver
This patch add new driver for CLPS711X SPI master controller. Due to platform limitations driver supports only 8 bit transfer mode. Chip select control is handled via GPIO. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:

committed by
Grant Likely

parent
ce32930586
commit
161b96c383
21
include/linux/platform_data/spi-clps711x.h
Normal file
21
include/linux/platform_data/spi-clps711x.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* CLPS711X SPI bus driver definitions
|
||||
*
|
||||
* Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H
|
||||
#define ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H
|
||||
|
||||
/* Board specific platform_data */
|
||||
struct spi_clps711x_pdata {
|
||||
int *chipselect; /* Array of GPIO-numbers */
|
||||
int num_chipselect; /* Total count of GPIOs */
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user