linux/drivers/spi/spi-xtensa-xtfpga.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Xtensa xtfpga SPI controller driver
 *
 * Copyright (c) 2014 Cadence Design Systems Inc.
 */

#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>

#define XTFPGA_SPI_NAME

#define XTFPGA_SPI_START
#define XTFPGA_SPI_BUSY
#define XTFPGA_SPI_DATA

#define BUSY_WAIT_US

struct xtfpga_spi {};

static inline void xtfpga_spi_write32(const struct xtfpga_spi *spi,
				      unsigned addr, u32 val)
{}

static inline unsigned int xtfpga_spi_read32(const struct xtfpga_spi *spi,
					     unsigned addr)
{}

static inline void xtfpga_spi_wait_busy(struct xtfpga_spi *xspi)
{}

static u32 xtfpga_spi_txrx_word(struct spi_device *spi, unsigned nsecs,
				u32 v, u8 bits, unsigned flags)
{}

static void xtfpga_spi_chipselect(struct spi_device *spi, int is_on)
{}

static int xtfpga_spi_probe(struct platform_device *pdev)
{}

static void xtfpga_spi_remove(struct platform_device *pdev)
{}

MODULE_ALIAS();

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

static struct platform_driver xtfpga_spi_driver =;
module_platform_driver();

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