linux/drivers/spi/spi-altera-core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Altera SPI driver
 *
 * Copyright (C) 2008 Thomas Chou <[email protected]>
 *
 * Based on spi_s3c24xx.c, which is:
 * Copyright (c) 2006 Ben Dooks
 * Copyright (c) 2006 Simtec Electronics
 *	Ben Dooks <[email protected]>
 */

#include <linux/errno.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spi/altera.h>
#include <linux/spi/spi.h>
#include <linux/io.h>
#include <linux/of.h>

#define DRV_NAME

#define ALTERA_SPI_RXDATA
#define ALTERA_SPI_TXDATA
#define ALTERA_SPI_STATUS
#define ALTERA_SPI_CONTROL
#define ALTERA_SPI_TARGET_SEL

#define ALTERA_SPI_STATUS_ROE_MSK
#define ALTERA_SPI_STATUS_TOE_MSK
#define ALTERA_SPI_STATUS_TMT_MSK
#define ALTERA_SPI_STATUS_TRDY_MSK
#define ALTERA_SPI_STATUS_RRDY_MSK
#define ALTERA_SPI_STATUS_E_MSK

#define ALTERA_SPI_CONTROL_IROE_MSK
#define ALTERA_SPI_CONTROL_ITOE_MSK
#define ALTERA_SPI_CONTROL_ITRDY_MSK
#define ALTERA_SPI_CONTROL_IRRDY_MSK
#define ALTERA_SPI_CONTROL_IE_MSK
#define ALTERA_SPI_CONTROL_SSO_MSK

static int altr_spi_writel(struct altera_spi *hw, unsigned int reg,
			   unsigned int val)
{}

static int altr_spi_readl(struct altera_spi *hw, unsigned int reg,
			  unsigned int *val)
{}

static inline struct altera_spi *altera_spi_to_hw(struct spi_device *sdev)
{}

static void altera_spi_set_cs(struct spi_device *spi, bool is_high)
{}

static void altera_spi_tx_word(struct altera_spi *hw)
{}

static void altera_spi_rx_word(struct altera_spi *hw)
{}

static int altera_spi_txrx(struct spi_controller *host,
	struct spi_device *spi, struct spi_transfer *t)
{}

irqreturn_t altera_spi_irq(int irq, void *dev)
{}
EXPORT_SYMBOL_GPL();

void altera_spi_init_host(struct spi_controller *host)
{}
EXPORT_SYMBOL_GPL();

MODULE_DESCRIPTION();
MODULE_LICENSE();