diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-04-08 15:06:42 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-11 14:55:59 -0700 |
commit | c10784e1fe9e93b392d4a1c8c108de11fbbb27b3 (patch) | |
tree | 6ca8c5b49e2131b9da6680534e0b0be16de6b67a /board/hatch_fp/gpio.inc | |
parent | 20dda8c1406708044b407b05659910eebaf10fca (diff) | |
download | chrome-ec-c10784e1fe9e93b392d4a1c8c108de11fbbb27b3.tar.gz |
hatch_fp: Fix slave select (NSS / CS) pin management
BRANCH=none
BUG=b:124996507
TEST=Read HWID from fingerprint sensor (slave) on hatch_fp
Change-Id: I344d7e4a5afec1f7c23f45aca593159ba67e89ed
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1558937
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/hatch_fp/gpio.inc')
-rw-r--r-- | board/hatch_fp/gpio.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/board/hatch_fp/gpio.inc b/board/hatch_fp/gpio.inc index 807a76ae47..7a9dfd152f 100644 --- a/board/hatch_fp/gpio.inc +++ b/board/hatch_fp/gpio.inc @@ -27,5 +27,10 @@ UNIMPLEMENTED(ENTERING_RW) ALTERNATE(PIN_MASK(A, 0x0600), GPIO_ALT_USART, MODULE_UART, GPIO_PULL_UP) /* SPI1 slave from the AP: PA4/5/6/7 */ ALTERNATE(PIN_MASK(A, 0x00f0), GPIO_ALT_SPI, MODULE_SPI, 0) -/* SPI2 master to sensor: PB12/13/14/15 */ -ALTERNATE(PIN_MASK(B, 0xf000), GPIO_ALT_SPI, MODULE_SPI_MASTER, 0) +/* + * SPI2 master to sensor: PB13/14/15 + * Note that we're not configuring NSS (PB12) here because we have already + * configured it as a GPIO above and the SPI_MASTER module expects to use it + * in software NSS management mode, not hardware management mode. + */ +ALTERNATE(PIN_MASK(B, 0xE000), GPIO_ALT_SPI, MODULE_SPI_MASTER, 0) |