#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 …
#define RXFL …
struct hspi_priv { … };
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)
{ … }
static int hspi_status_check_timeout(struct hspi_priv *hspi, u32 mask, u32 val)
{ … }
#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(…) …;