Arthur Heymans | 92185e3 | 2019-05-28 13:06:34 +0200 | [diff] [blame] | 1 | |
Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 2 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Arthur Heymans | 92185e3 | 2019-05-28 13:06:34 +0200 | [diff] [blame] | 3 | |
| 4 | #ifndef SOUTHBRIDGE_INTEL_SPI_H |
| 5 | #define SOUTHBRIDGE_INTEL_SPI_H |
| 6 | |
| 7 | enum optype { |
| 8 | READ_NO_ADDR = 0, |
| 9 | WRITE_NO_ADDR = 1, |
| 10 | READ_WITH_ADDR = 2, |
| 11 | WRITE_WITH_ADDR = 3 |
| 12 | }; |
| 13 | |
| 14 | struct intel_spi_op { |
| 15 | u8 op; |
| 16 | enum optype type; |
| 17 | }; |
| 18 | |
| 19 | struct intel_swseq_spi_config { |
| 20 | u8 opprefixes[2]; |
| 21 | struct intel_spi_op ops[8]; |
| 22 | }; |
| 23 | |
| 24 | void spi_finalize_ops(void); |
| 25 | void intel_southbridge_override_spi(struct intel_swseq_spi_config *spi_config); |
| 26 | |
| 27 | #endif |