mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
spi: oc-tiny: Use GPIO descriptors
Switch the OC Tiny driver over to handling CS GPIOs using
GPIO descriptors in the core.
This driver is entirely relying on GPIOs to be used for
chipselect, so let the core pick these out using either
device tree or machine descriptors.
There are no in-tree users of this driver so no board files
need to be patched, out-of-tree boardfiles can use machine
descriptor tables, c.f. commit 1dfbf334f1.
Cc: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191205092411.64341-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
28d1dddc59
commit
f03ee2042b
@@ -6,16 +6,12 @@
|
||||
* struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
|
||||
* @freq: input clock freq to the core.
|
||||
* @baudwidth: baud rate divider width of the core.
|
||||
* @gpio_cs_count: number of gpio pins used for chipselect.
|
||||
* @gpio_cs: array of gpio pins used for chipselect.
|
||||
*
|
||||
* freq and baudwidth are used only if the divider is programmable.
|
||||
*/
|
||||
struct tiny_spi_platform_data {
|
||||
unsigned int freq;
|
||||
unsigned int baudwidth;
|
||||
unsigned int gpio_cs_count;
|
||||
int *gpio_cs;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_SPI_SPI_OC_TINY_H */
|
||||
|
||||
Reference in New Issue
Block a user