.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Intel PCH/PCU SPI flash driver. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2016, Intel Corporation |
---|
5 | 6 | * Author: Mika Westerberg <mika.westerberg@linux.intel.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #ifndef INTEL_SPI_PDATA_H |
---|
.. | .. |
---|
16 | 13 | INTEL_SPI_BYT = 1, |
---|
17 | 14 | INTEL_SPI_LPT, |
---|
18 | 15 | INTEL_SPI_BXT, |
---|
| 16 | + INTEL_SPI_CNL, |
---|
19 | 17 | }; |
---|
20 | 18 | |
---|
21 | 19 | /** |
---|
22 | 20 | * struct intel_spi_boardinfo - Board specific data for Intel SPI driver |
---|
23 | 21 | * @type: Type which this controller is compatible with |
---|
24 | | - * @writeable: The chip is writeable |
---|
| 22 | + * @set_writeable: Try to make the chip writeable (optional) |
---|
| 23 | + * @data: Data to be passed to @set_writeable can be %NULL |
---|
25 | 24 | */ |
---|
26 | 25 | struct intel_spi_boardinfo { |
---|
27 | 26 | enum intel_spi_type type; |
---|
28 | | - bool writeable; |
---|
| 27 | + bool (*set_writeable)(void __iomem *base, void *data); |
---|
| 28 | + void *data; |
---|
29 | 29 | }; |
---|
30 | 30 | |
---|
31 | 31 | #endif /* INTEL_SPI_PDATA_H */ |
---|