coreboot-kgpe-d16/src/southbridge/amd
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
..
agesa drivers/spi: support cmd opcode deduction for spi_crop_chunk() 2018-01-30 05:37:47 +00:00
amd8111 smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
amd8131 src/southbridge: Code formating 2016-08-31 20:22:46 +02:00
amd8132 src/southbridge: Code formating 2016-08-31 20:22:46 +02:00
amd8151 src/southbridge: Code formating 2016-08-31 20:22:46 +02:00
cimx drivers/spi: support cmd opcode deduction for spi_crop_chunk() 2018-01-30 05:37:47 +00:00
common AGESA f15 cimx/sb700: Remove unused chips code 2018-01-24 02:09:18 +00:00
cs5536 sb/amd/cs5536: Remove includes of C files 2017-07-18 19:03:28 +00:00
pi amd/{hudson,stoneyridge}: fix out of bounds read 2017-11-30 18:35:53 +00:00
rs690 southbridge/amd: add IS_ENABLED() around Kconfig symbol references 2017-06-30 03:44:59 +00:00
rs780 AMD fam10: Link southbridge/amd/rs780/early_setup.c 2017-12-11 11:58:02 +00:00
sb600 smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
sb700 drivers/spi: support cmd opcode deduction for spi_crop_chunk() 2018-01-30 05:37:47 +00:00
sb800 smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
sr5650 AMD boards: Fix function name (soft_reset) in message 2017-10-31 09:57:06 +00:00