mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
f03ee2042b
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 1dfbf334f123. 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>
18 lines
471 B
C
18 lines
471 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_SPI_SPI_OC_TINY_H
|
|
#define _LINUX_SPI_SPI_OC_TINY_H
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* freq and baudwidth are used only if the divider is programmable.
|
|
*/
|
|
struct tiny_spi_platform_data {
|
|
unsigned int freq;
|
|
unsigned int baudwidth;
|
|
};
|
|
|
|
#endif /* _LINUX_SPI_SPI_OC_TINY_H */
|