summaryrefslogtreecommitdiff
path: root/board/nucleo-dartmonkey
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-08-03 12:29:48 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-23 21:33:52 +0000
commit9203b2b7d069d074a85a171f7b84de7552a0d4e9 (patch)
treea0f48fe8c9a371ca385da8ddf2f2301292eab439 /board/nucleo-dartmonkey
parent103197eeadb9cb489831f06ea47e0eedf0a4801d (diff)
downloadchrome-ec-9203b2b7d069d074a85a171f7b84de7552a0d4e9.tar.gz
COIL: Update SPI references to controller/peripheral
Update SPI references to controller/peripheral for inclusivity. BUG=b:163885307 BRANCH=none TEST=compare_build.sh Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I19b02fb949aad9ade569c4658a904e9ce59e27c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3066272 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'board/nucleo-dartmonkey')
-rw-r--r--board/nucleo-dartmonkey/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/nucleo-dartmonkey/board.c b/board/nucleo-dartmonkey/board.c
index a7851ec00b..ea0d11eaf5 100644
--- a/board/nucleo-dartmonkey/board.c
+++ b/board/nucleo-dartmonkey/board.c
@@ -76,7 +76,9 @@ static void spi_configure(void)
{
/* Configure SPI GPIOs */
gpio_config_module(MODULE_SPI_CONTROLLER, 1);
- /* Set all SPI master signal pins to very high speed: pins E2/4/5/6 */
+ /* Set all SPI controller signal pins to very high speed:
+ * pins E2/4/5/6
+ */
STM32_GPIO_OSPEEDR(GPIO_E) |= 0x00003f30;
/* Enable clocks to SPI4 module (master) */
STM32_RCC_APB2ENR |= STM32_RCC_PB2_SPI4;
@@ -97,7 +99,7 @@ static void board_init(void)
gpio_enable_interrupt(GPIO_SLP_L);
/*
- * Enable the SPI slave interface if the PCH is up.
+ * Enable the SPI peripheral interface if the PCH is up.
* Do not use hook_call_deferred(), because ap_deferred() will be
* called after tasks with priority higher than HOOK task (very late).
*/