linux/drivers/fpga/xilinx-spi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Xilinx Spartan6 and 7 Series Slave Serial SPI Driver
 *
 * Copyright (C) 2017 DENX Software Engineering
 *
 * Anatolij Gustschin <[email protected]>
 *
 * Manage Xilinx FPGA firmware that is loaded over SPI using
 * the slave serial configuration interface.
 */

#include "xilinx-core.h"

#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/of.h>
#include <linux/spi/spi.h>

static int xilinx_spi_write(struct xilinx_fpga_core *core, const char *buf,
			    size_t count)
{}

static int xilinx_spi_probe(struct spi_device *spi)
{}

#ifdef CONFIG_OF
static const struct of_device_id xlnx_spi_of_match[] =;
MODULE_DEVICE_TABLE(of, xlnx_spi_of_match);
#endif

static struct spi_driver xilinx_slave_spi_driver =;

module_spi_driver()

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();