summaryrefslogtreecommitdiff
path: root/common/ec_efs.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ec_efs.c')
-rw-r--r--common/ec_efs.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/common/ec_efs.c b/common/ec_efs.c
index 4a3cb2b996..a08edde9b1 100644
--- a/common/ec_efs.c
+++ b/common/ec_efs.c
@@ -108,9 +108,6 @@ static int load_ec_hash_(uint8_t * const ec_hash)
*/
static void ec_efs_init_(void)
{
- if (!board_has_ec_cr50_comm_support())
- return;
-
/*
* If it is a wakeup from deep sleep, then recover some core EC-EFS
* context values, including the boot_mode value, from a PWRD_SCRATCH
@@ -139,11 +136,6 @@ static enum vendor_cmd_rc vc_get_boot_mode_(struct vendor_cmd_params *p)
{
uint8_t *buffer;
- if (!board_has_ec_cr50_comm_support()) {
- p->out_size = 0;
- return VENDOR_RC_NO_SUCH_SUBCOMMAND;
- }
-
buffer = (uint8_t *)p->buffer;
buffer[0] = (uint8_t)ec_efs_ctx.boot_mode;
@@ -162,9 +154,6 @@ static enum vendor_cmd_rc vc_reset_ec_(struct vendor_cmd_params *p)
{
p->out_size = 0;
- if (!board_has_ec_cr50_comm_support())
- return VENDOR_RC_NO_SUCH_SUBCOMMAND;
-
/*
* Let's reset EC a little later so that CR50 can send a TPM command
* to AP.
@@ -272,9 +261,6 @@ void ec_efs_refresh(void)
{
int rv;
- if (!board_has_ec_cr50_comm_support())
- return;
-
rv = load_ec_hash_(ec_efs_ctx.hash);
if (rv == EC_SUCCESS) {
ec_efs_ctx.hash_is_loaded = 1;