Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Intel PCH/PCU SPI flash driver.
0004  *
0005  * Copyright (C) 2016, Intel Corporation
0006  * Author: Mika Westerberg <mika.westerberg@linux.intel.com>
0007  */
0008 
0009 #ifndef SPI_INTEL_PDATA_H
0010 #define SPI_INTEL_PDATA_H
0011 
0012 enum intel_spi_type {
0013     INTEL_SPI_BYT = 1,
0014     INTEL_SPI_LPT,
0015     INTEL_SPI_BXT,
0016     INTEL_SPI_CNL,
0017 };
0018 
0019 /**
0020  * struct intel_spi_boardinfo - Board specific data for Intel SPI driver
0021  * @type: Type which this controller is compatible with
0022  * @set_writeable: Try to make the chip writeable (optional)
0023  * @data: Data to be passed to @set_writeable can be %NULL
0024  */
0025 struct intel_spi_boardinfo {
0026     enum intel_spi_type type;
0027     bool (*set_writeable)(void __iomem *base, void *data);
0028     void *data;
0029 };
0030 
0031 #endif /* SPI_INTEL_PDATA_H */