diff options
author | herman lin <herman.lin@emc.com.tw> | 2021-01-22 15:24:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-27 18:08:41 +0000 |
commit | 7f020a152bbec17cae13a2ce8245d3c19e9929a2 (patch) | |
tree | a543ce383eb9c5da4360ed642ae6563771ec098e /driver/fingerprint/elan/elan_sensor_pal.h | |
parent | 8081ae39a37d4996423390f117b7dcd545aa807e (diff) | |
download | chrome-ec-7f020a152bbec17cae13a2ce8245d3c19e9929a2.tar.gz |
elan_private: Implement elan fp sensor on stm32f4
This patch implements the ELAN FP API, which is used to control the
ELAN FP sensor and matching algorithm on stm32f4.
Therefore, we reduce the size of TEMPLATE_SIZE on STM32f4 and
implements elan sensor reset API.
BRANCH=None
BUG=None
TEST=We build on bloonchipper and dartmonkey, and testing Elan sensor
with libelan_515_m4/m7.a and libelan_80_m4/m7.a successfully.
Signed-off-by: herman lin <herman.lin@emc.com.tw>
Change-Id: Iaf4b85744a49a3ae12f20d91740515b7dc198e56
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643744
Reviewed-by: Yicheng Li <yichengli@chromium.org>
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Tested-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'driver/fingerprint/elan/elan_sensor_pal.h')
-rw-r--r-- | driver/fingerprint/elan/elan_sensor_pal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/driver/fingerprint/elan/elan_sensor_pal.h b/driver/fingerprint/elan/elan_sensor_pal.h index f9f85c1132..067b693245 100644 --- a/driver/fingerprint/elan/elan_sensor_pal.h +++ b/driver/fingerprint/elan/elan_sensor_pal.h @@ -114,6 +114,11 @@ int raw_capture(uint16_t *short_raw); int elan_execute_calibration(void); /** + * Execute reset ELAN fingerprint sensor flow. + */ +void elan_execute_reset(void); + +/** * Runs a test for defective pixels. * * @param[out] fp_sensor_info Structure containing output data. @@ -123,4 +128,14 @@ int elan_execute_calibration(void); */ int fp_sensor_maintenance(fp_sensor_info_t *fp_sensor_info); +/** + * @brief Set sensor reset state. + * + * Set sensor reset state. + * + * @param[in] state Reset state. + * true => reset sensor, i.e. low GPIO state + * false => normal operation, i.e. high GPIO state + */ +void __unused elan_sensor_set_rst(bool state); #endif |