diff options
-rw-r--r-- | common/host_command.c | 3 | ||||
-rw-r--r-- | include/ec_commands.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c index 7ff327c726..e57a19f0ae 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -787,6 +787,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args) #ifdef CONFIG_HOSTCMD_RTC | EC_FEATURE_MASK_0(EC_FEATURE_RTC) #endif +#ifdef CONFIG_SPI_FP_PORT + | EC_FEATURE_MASK_0(EC_FEATURE_FINGERPRINT) +#endif ; return EC_RES_SUCCESS; } diff --git a/include/ec_commands.h b/include/ec_commands.h index ed8c333cf4..c57e82a161 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1074,6 +1074,8 @@ enum ec_feature_code { EC_FEATURE_USBC_SS_MUX_VIRTUAL = 26, /* EC has RTC feature that can be controlled by host commands */ EC_FEATURE_RTC = 27, + /* The MCU exposes a Fingerprint sensor */ + EC_FEATURE_FINGERPRINT = 28, }; #define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32)) |