linux/drivers/net/dsa/microchip/ksz_spi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Microchip ksz series register access through SPI
 *
 * Copyright (C) 2017 Microchip Technology Inc.
 *	Tristram Ha <[email protected]>
 */

#include <asm/unaligned.h>

#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>

#include "ksz_common.h"

#define KSZ8795_SPI_ADDR_SHIFT
#define KSZ8795_SPI_ADDR_ALIGN
#define KSZ8795_SPI_TURNAROUND_SHIFT

#define KSZ8863_SPI_ADDR_SHIFT
#define KSZ8863_SPI_ADDR_ALIGN
#define KSZ8863_SPI_TURNAROUND_SHIFT

#define KSZ9477_SPI_ADDR_SHIFT
#define KSZ9477_SPI_ADDR_ALIGN
#define KSZ9477_SPI_TURNAROUND_SHIFT

KSZ_REGMAP_TABLE();

KSZ_REGMAP_TABLE();

KSZ_REGMAP_TABLE();

static int ksz_spi_probe(struct spi_device *spi)
{}

static void ksz_spi_remove(struct spi_device *spi)
{}

static void ksz_spi_shutdown(struct spi_device *spi)
{}

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

static const struct spi_device_id ksz_spi_ids[] =;
MODULE_DEVICE_TABLE(spi, ksz_spi_ids);

static struct spi_driver ksz_spi_driver =;

module_spi_driver();

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