coreboot/src/drivers/spi
Aaron Durbin 1fcc9f3125 drivers/spi: support cmd opcode deduction for spi_crop_chunk()
spi_crop_chunk() currently supports deducting the command length
when determining maximum payload size in a transaction. Add support
for deducting just the opcode part of the command by replacing
deduct_cmd_len field to generic flags field. The two enums supported
drive the logic within spi_crop_chunk():
  SPI_CNTRLR_DEDUCT_CMD_LEN
  SPI_CNTRLR_DEDUCT_OPCODE_LEN

All existing users of deduct_cmd_len were converted to using the
flags field.

BUG=b:65485690

Change-Id: I771fba684f0ed76ffdc8573aa10f775070edc691
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/23491
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-01-30 05:37:47 +00:00
..
acpi device: acpi_name() should take a const struct device 2017-09-14 14:34:27 +00:00
tpm security/tpm: Change TPM naming for different layers. 2018-01-18 01:45:35 +00:00
adesto.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
amic.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
atmel.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
boot_device_rw_nommap.c drivers/spi/spi_flash: Pass in flash structure to fill in probe 2017-05-19 21:21:47 +02:00
cbfs_spi.c drivers/spi/spi_flash: Pass in flash structure to fill in probe 2017-05-19 21:21:47 +02:00
eon.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
flashconsole.c console/flashsconsole: Add spi flash console for debugging 2017-06-04 18:44:56 +02:00
gigadevice.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
Kconfig spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
macronix.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
Makefile.inc drivers/spi: Enable flashconsole in verstage 2017-12-14 22:51:12 +00:00
spansion.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
spi-generic.c drivers/spi: support cmd opcode deduction for spi_crop_chunk() 2018-01-30 05:37:47 +00:00
spi_flash.c drivers/spi/spi_flash: honor spi controller fifo size for reads 2018-01-26 23:37:39 +00:00
spi_flash_internal.h drivers/spi/spi_flash: Pass in spi_slave structure as const to probe functions 2017-05-19 21:22:41 +02:00
spiconsole.c drivers/spi: Re-factor spi_crop_chunk 2017-05-05 23:42:19 +02:00
sst.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
stmicro.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00
winbond.c drivers/spi: add IS_ENABLED() around Kconfig symbol references 2017-07-02 18:56:25 +00:00