mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-08 00:23:23 -04:00
The preferred way to implement SPI-NOR controller drivers is through SPI subsubsystem utilizing the SPI MEM core functions. This converts the Intel SPI flash controller driver over the SPI MEM by moving the driver from SPI-NOR subsystem to SPI subsystem and in one go make it use the SPI MEM functions. The driver name will be changed from intel-spi to spi-intel to match the convention used in the SPI subsystem. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Mauro Lima <mauro.lima@eclypsium.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20220209122706.42439-3-mika.westerberg@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
31 lines
756 B
C
31 lines
756 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Intel PCH/PCU SPI flash driver.
|
|
*
|
|
* Copyright (C) 2016, Intel Corporation
|
|
* Author: Mika Westerberg <mika.westerberg@linux.intel.com>
|
|
*/
|
|
|
|
#ifndef SPI_INTEL_PDATA_H
|
|
#define SPI_INTEL_PDATA_H
|
|
|
|
enum intel_spi_type {
|
|
INTEL_SPI_BYT = 1,
|
|
INTEL_SPI_LPT,
|
|
INTEL_SPI_BXT,
|
|
INTEL_SPI_CNL,
|
|
};
|
|
|
|
/**
|
|
* struct intel_spi_boardinfo - Board specific data for Intel SPI driver
|
|
* @type: Type which this controller is compatible with
|
|
* @set_writeable: Try to make the chip writeable (optional)
|
|
* @data: Data to be passed to @set_writeable can be %NULL
|
|
*/
|
|
struct intel_spi_boardinfo {
|
|
enum intel_spi_type type;
|
|
bool (*set_writeable)(void __iomem *base, void *data);
|
|
void *data;
|
|
};
|
|
|
|
#endif /* SPI_INTEL_PDATA_H */
|