summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJes B. Klinke <jbk@chromium.org>2023-03-24 10:24:59 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-28 22:01:28 +0000
commite5613ce40d7622cffecab08cd9e3f266531509a6 (patch)
treed5ee7274f8055cdec27439231c8ba20472f7157d /util
parent3d67ca20c4432a7258d4710c0be07d344998c992 (diff)
downloadchrome-ec-e5613ce40d7622cffecab08cd9e3f266531509a6.tar.gz
chip/stm32: Eliminate run-time flags to usb_spi.c
The USB_SPI_CONFIG() macro allowed a set of "run-time" flags to be given by board.c. However, these flags have to be known at compile time, and always are. They can more conveniently be given through a CONFIG_ define. With the above, and a little tweak in hammer/board.h (mimicking what was already done for I2C), then every invocation of the USB_SPI_CONFIG() across the codebase is identical, setting the stage for moving the declarations into usb_spi.c, and eliminating the macro altogether. BUG=b:273601311 TEST=none Change-Id: Id565338238a7c21f7e2c6c24b7c4e3d7648482f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4368551 Tested-by: Jes Klinke <jbk@chromium.org> Reviewed-by: Brian Nemec <bnemec@google.com> Commit-Queue: Jes Klinke <jbk@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/config_allowed.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/config_allowed.txt b/util/config_allowed.txt
index b3a2341536..cb51945821 100644
--- a/util/config_allowed.txt
+++ b/util/config_allowed.txt
@@ -1016,6 +1016,7 @@ CONFIG_USB_REMOTE_WAKEUP
CONFIG_USB_SERIALNO
CONFIG_USB_SPI
CONFIG_USB_SPI_BUFFER_SIZE
+CONFIG_USB_SPI_IGNORE_HOST_SIDE_ENABLE
CONFIG_USB_SUSPEND
CONFIG_USB_UPDATE
CONFIG_VALUE