summaryrefslogtreecommitdiff
path: root/board/hyperdebug/board.h
diff options
context:
space:
mode:
authorJes B. Klinke <jbk@chromium.org>2022-12-02 20:19:14 -0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-11 23:09:46 +0000
commitd1af62d34e44f9b79b109e6c418671a35c599c81 (patch)
treec110696652b70bdeab60d7e2a078a2a42b45bf14 /board/hyperdebug/board.h
parent3edc823aa218bb0989553e297744ab826ffa5cd2 (diff)
downloadchrome-ec-d1af62d34e44f9b79b109e6c418671a35c599c81.tar.gz
board/hyperdebug: Enumerate and configure SPI ports via USB
Add console commands: spiget and spisetspeed The first can list information on all SPI port or a particular port. The other, spisetspeed, can be used to modify the clock divisor between SPI transactions. BUG=b:192262089 TEST=Observed different clock speeds on analyzer Change-Id: I113b8bdef48f58d5941212c8a8598f3293b5da91 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4078008 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Jes Klinke <jbk@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Jes Klinke <jbk@chromium.org>
Diffstat (limited to 'board/hyperdebug/board.h')
-rw-r--r--board/hyperdebug/board.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/hyperdebug/board.h b/board/hyperdebug/board.h
index 86c2c88ad0..760e66aa37 100644
--- a/board/hyperdebug/board.h
+++ b/board/hyperdebug/board.h
@@ -97,13 +97,14 @@
#define CONFIG_USB_SPI
#define CONFIG_USB_SPI_BUFFER_SIZE 2048
#define CONFIG_SPI_CONTROLLER
+#define CONFIG_STM32_SPI1_CONTROLLER
+#define CONFIG_SPI_MUTABLE_DEVICE_LIST
/* Enable control of I2C over USB */
#define CONFIG_USB_I2C
#define CONFIG_I2C
#define CONFIG_I2C_CONTROLLER
#define I2C_PORT_CONTROLLER 0
-#define CONFIG_STM32_SPI1_CONTROLLER
/* See i2c_ite_flash_support.c for more information about these values */
/*#define CONFIG_ITE_FLASH_SUPPORT */