1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Intel PCH/PCU SPI flash driver. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2016, Intel Corporation 6*4882a593Smuzhiyun * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef INTEL_SPI_PDATA_H 10*4882a593Smuzhiyun #define INTEL_SPI_PDATA_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun enum intel_spi_type { 13*4882a593Smuzhiyun INTEL_SPI_BYT = 1, 14*4882a593Smuzhiyun INTEL_SPI_LPT, 15*4882a593Smuzhiyun INTEL_SPI_BXT, 16*4882a593Smuzhiyun INTEL_SPI_CNL, 17*4882a593Smuzhiyun }; 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /** 20*4882a593Smuzhiyun * struct intel_spi_boardinfo - Board specific data for Intel SPI driver 21*4882a593Smuzhiyun * @type: Type which this controller is compatible with 22*4882a593Smuzhiyun * @set_writeable: Try to make the chip writeable (optional) 23*4882a593Smuzhiyun * @data: Data to be passed to @set_writeable can be %NULL 24*4882a593Smuzhiyun */ 25*4882a593Smuzhiyun struct intel_spi_boardinfo { 26*4882a593Smuzhiyun enum intel_spi_type type; 27*4882a593Smuzhiyun bool (*set_writeable)(void __iomem *base, void *data); 28*4882a593Smuzhiyun void *data; 29*4882a593Smuzhiyun }; 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun #endif /* INTEL_SPI_PDATA_H */ 32