hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/platform_data/intel-spi.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Intel PCH/PCU SPI flash driver.
34 *
45 * Copyright (C) 2016, Intel Corporation
56 * 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.
107 */
118
129 #ifndef INTEL_SPI_PDATA_H
....@@ -16,16 +13,19 @@
1613 INTEL_SPI_BYT = 1,
1714 INTEL_SPI_LPT,
1815 INTEL_SPI_BXT,
16
+ INTEL_SPI_CNL,
1917 };
2018
2119 /**
2220 * struct intel_spi_boardinfo - Board specific data for Intel SPI driver
2321 * @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
2524 */
2625 struct intel_spi_boardinfo {
2726 enum intel_spi_type type;
28
- bool writeable;
27
+ bool (*set_writeable)(void __iomem *base, void *data);
28
+ void *data;
2929 };
3030
3131 #endif /* INTEL_SPI_PDATA_H */