diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-01-25 14:31:20 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-29 21:42:07 +0000 |
commit | 8552c791688d06a1d52971868c4759246369073a (patch) | |
tree | 441438a21f07ea4bc3567af535a944c8b1275fe2 /include/fpsensor_detect.h | |
parent | 9687476ddaa78061cd74e98259f10bfc2d26d572 (diff) | |
download | chrome-ec-8552c791688d06a1d52971868c4759246369073a.tar.gz |
fpsensor: Add FP sensor SPI detection logic
BRANCH=none
BUG=b:177908650
TEST=Flash icetower v0.2, observed FP_SPI_SEL on console
TEST=Flash nocturne, observed FP_SPI_SEL on console
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I2b221139fed817de4c58db3b6c8198942ab86e7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648731
Reviewed-by: Craig Hesling <hesling@chromium.org>
Diffstat (limited to 'include/fpsensor_detect.h')
-rw-r--r-- | include/fpsensor_detect.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fpsensor_detect.h b/include/fpsensor_detect.h index e12ff76595..56e04d4ae6 100644 --- a/include/fpsensor_detect.h +++ b/include/fpsensor_detect.h @@ -20,9 +20,17 @@ enum fp_transport_type { FP_TRANSPORT_TYPE_UART }; +enum fp_sensor_spi_select { + FP_SENSOR_SPI_SELECT_UNKNOWN = -1, + FP_SENSOR_SPI_SELECT_DEVELOPMENT, + FP_SENSOR_SPI_SELECT_PRODUCTION +}; + const char *fp_transport_type_to_str(enum fp_transport_type type); const char *fp_sensor_type_to_str(enum fp_sensor_type type); +const char *fp_sensor_spi_select_to_str(enum fp_sensor_spi_select type); enum fp_sensor_type get_fp_sensor_type(void); enum fp_transport_type get_fp_transport_type(void); +enum fp_sensor_spi_select get_fp_sensor_spi_select(void); #endif /* __CROS_EC_FPSENSOR_DETECT_H */ |