]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cros_ec: Drop cros_ec_entering_mode()
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:50 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
This function is not needed anymore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c
drivers/misc/cros_ec_sandbox.c
include/cros_ec.h

index 0818ef8ad6eb6134e133be8c25d817f5ccdc41e2..2a15094d20a6c1ef4d54c64bff67a980219a7d61 100644 (file)
@@ -754,17 +754,6 @@ int cros_ec_flash_protect(struct udevice *dev, uint32_t set_mask,
        return 0;
 }
 
-int cros_ec_entering_mode(struct udevice *dev, int mode)
-{
-       int rc;
-
-       rc = ec_command(dev, EC_CMD_ENTERING_MODE, 0, &mode, sizeof(mode),
-                       NULL, 0);
-       if (rc)
-               return -1;
-       return 0;
-}
-
 static int cros_ec_check_version(struct udevice *dev)
 {
        struct cros_ec_dev *cdev = dev_get_uclass_priv(dev);
index beea47caa33bf0600520135a96a1dc2880867114..ab91f3fa67a1eacb5d347462d4fa6ffc4758721b 100644 (file)
@@ -496,9 +496,6 @@ static int process_cmd(struct ec_state *ec,
        case EC_CMD_MKBP_STATE:
                len = cros_ec_keyscan(ec, resp_data);
                break;
-       case EC_CMD_ENTERING_MODE:
-               len = 0;
-               break;
        case EC_CMD_GET_NEXT_EVENT: {
                struct ec_response_get_next_event *resp = resp_data;
 
index 9dab6cdf9ba936ef2ed47fa8e38eabd91595fdfd..ef89deff76214fb4f7ca4f6cd9b77e47b0f75480 100644 (file)
@@ -198,15 +198,6 @@ int cros_ec_flash_protect(struct udevice *dev, uint32_t set_mask,
                          uint32_t set_flags,
                          struct ec_response_flash_protect *resp);
 
-/**
- * Notify EC of current boot mode
- *
- * @param dev          CROS-EC device
- * @param vboot_mode    Verified boot mode
- * @return 0 if ok, <0 on error
- */
-int cros_ec_entering_mode(struct udevice *dev, int mode);
-
 /**
  * Run internal tests on the cros_ec interface.
  *