linux/drivers/spi/spi-sh-hspi.c

// SPDX-License-Identifier: GPL-2.0
/*
 * SuperH HSPI bus driver
 *
 * Copyright (C) 2011  Kuninori Morimoto
 *
 * Based on spi-sh.c:
 * Based on pxa2xx_spi.c:
 * Copyright (C) 2011 Renesas Solutions Corp.
 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
 */

#include <linux/clk.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/io.h>
#include <linux/spi/spi.h>
#include <linux/spi/sh_hspi.h>

#define SPCR
#define SPSR
#define SPSCR
#define SPTBR
#define SPRBR
#define SPCR2

/* SPSR */
#define RXFL

struct hspi_priv {};

/*
 *		basic function
 */
static void hspi_write(struct hspi_priv *hspi, int reg, u32 val)
{}

static u32 hspi_read(struct hspi_priv *hspi, int reg)
{}

static void hspi_bit_set(struct hspi_priv *hspi, int reg, u32 mask, u32 set)
{}

/*
 *		transfer function
 */
static int hspi_status_check_timeout(struct hspi_priv *hspi, u32 mask, u32 val)
{}

/*
 *		spi host function
 */

#define hspi_hw_cs_enable(hspi)
#define hspi_hw_cs_disable(hspi)
static void hspi_hw_cs_ctrl(struct hspi_priv *hspi, int hi)
{}

static void hspi_hw_setup(struct hspi_priv *hspi,
			  struct spi_message *msg,
			  struct spi_transfer *t)
{}

static int hspi_transfer_one_message(struct spi_controller *ctlr,
				     struct spi_message *msg)
{}

static int hspi_probe(struct platform_device *pdev)
{}

static void hspi_remove(struct platform_device *pdev)
{}

static const struct of_device_id hspi_of_match[] =;
MODULE_DEVICE_TABLE(of, hspi_of_match);

static struct platform_driver hspi_driver =;
module_platform_driver();

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