summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/board.c4
-rw-r--r--common/ec_comm.c5
-rw-r--r--common/ec_efs.c14
3 files changed, 2 insertions, 21 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 8aa6dde87d..355c92ff97 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -1148,8 +1148,8 @@ void assert_ec_rst(void)
/* Prevent bit bang interrupt storm. */
if (uart_bitbang_is_enabled())
task_disable_irq(bitbang_config.rx_irq);
- else if (board_has_ec_cr50_comm_support())
- ec_efs_reset();
+
+ ec_efs_reset();
wait_ec_rst(1);
diff --git a/common/ec_comm.c b/common/ec_comm.c
index 18ea225ef9..4ad6311acc 100644
--- a/common/ec_comm.c
+++ b/common/ec_comm.c
@@ -317,11 +317,6 @@ void ec_comm_block(int block)
*/
static int command_ec_comm(int argc, char **argv)
{
- if (!board_has_ec_cr50_comm_support()) {
- ccprintf("No EC-CR50 comm support\n");
- return EC_ERROR_INVAL;
- }
-
if (argc > 1) {
if (!strcasecmp(argv[1], "corrupt")) {
int result = ec_efs_corrupt_hash();
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;