diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-12 11:40:44 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:55:01 +0000 |
commit | a340a64dc9cc1ee0b8302ee4f9fa27375487bd94 (patch) | |
tree | b365cb5e3f05dc12a440feefa49b2c860ee0b02a /common | |
parent | 006f8a6f4a2fdcb236825d87b429be81a9695e2a (diff) | |
download | chrome-ec-a340a64dc9cc1ee0b8302ee4f9fa27375487bd94.tar.gz |
Revert "i2c: add i2clookup host command"
This reverts commit 45434aed20e695e08fcbb3f74c43e03f6fa19bf2.
BUG=b:200823466
TEST=make buildall -j
Change-Id: I353994692fd6b02ff1460234f448ac813cad04cb
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3285752
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/i2c_controller.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c index 9c710e9f06..c12627c085 100644 --- a/common/i2c_controller.c +++ b/common/i2c_controller.c @@ -1054,34 +1054,6 @@ static enum ec_status i2c_command_passthru(struct host_cmd_handler_args *args) } DECLARE_HOST_COMMAND(EC_CMD_I2C_PASSTHRU, i2c_command_passthru, EC_VER_MASK(0)); -static enum ec_status i2c_command_lookup(struct host_cmd_handler_args *args) -{ - const struct ec_params_i2c_lookup *params = args->params; - struct ec_response_i2c_lookup *resp = args->response; - - switch (params->type) { - case I2C_LOOKUP_TYPE_CBI_EEPROM: -#ifdef CONFIG_CROS_BOARD_INFO - resp->i2c_port = I2C_PORT_EEPROM; - /* Convert from 8-bit address to 7-bit address */ - resp->i2c_addr = I2C_ADDR_EEPROM >> 1; -#else - /* Lookup type is supported, but not present on system. */ - return EC_RES_UNAVAILABLE; -#endif /* CONFIG_CROS_BOARD_INFO */ - break; - default: - /* The type was unrecognized */ - return EC_RES_INVALID_PARAM; - } - - args->response_size = sizeof(*resp); - return EC_RES_SUCCESS; -} -DECLARE_HOST_COMMAND(EC_CMD_I2C_LOOKUP, i2c_command_lookup, EC_VER_MASK(0)); -/* If the params union expands in the future, need to bump EC_VER_MASK */ -BUILD_ASSERT(sizeof(struct ec_params_i2c_lookup) == 4); - static enum ec_status i2c_command_passthru_protect(struct host_cmd_handler_args *args) { |