#include <linux/of.h>
#include <linux/spi/spi.h>
#include "lattice-sysconfig.h"
static const u32 ecp5_spi_max_speed_hz = …;
static int sysconfig_spi_cmd_transfer(struct sysconfig_priv *priv,
const void *tx_buf, size_t tx_len,
void *rx_buf, size_t rx_len)
{ … }
static int sysconfig_spi_bitstream_burst_init(struct sysconfig_priv *priv)
{ … }
static int sysconfig_spi_bitstream_burst_write(struct sysconfig_priv *priv,
const char *buf, size_t len)
{ … }
static int sysconfig_spi_bitstream_burst_complete(struct sysconfig_priv *priv)
{ … }
static int sysconfig_spi_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id sysconfig_spi_ids[] = …;
MODULE_DEVICE_TABLE(spi, sysconfig_spi_ids);
#if IS_ENABLED(CONFIG_OF)
static const struct of_device_id sysconfig_of_ids[] = …;
MODULE_DEVICE_TABLE(of, sysconfig_of_ids);
#endif
static struct spi_driver lattice_sysconfig_driver = …;
module_spi_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;