diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-01-05 15:16:34 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-06 23:06:16 +0000 |
commit | cef8f9101e441836669e9884512653414407bd04 (patch) | |
tree | d8ea72654146472dc6ef724c188ca505f905b076 /include | |
parent | f81747eab60e0c329fc930b05c0c1d1edbbe32a4 (diff) | |
download | chrome-ec-cef8f9101e441836669e9884512653414407bd04.tar.gz |
coil: remove ec_ec_comm*
This code uses coil terms we're removing, but we don't use it in
platform/cr50. Remove the code instead of replacing the terms.
BUG=b:175244613
TEST=make buildall -j
Change-Id: Ie04f2aedadaed49af78f2f9d424333c283b12eca
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613142
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 32 | ||||
-rw-r--r-- | include/ec_ec_comm_master.h | 58 | ||||
-rw-r--r-- | include/ec_ec_comm_slave.h | 20 |
3 files changed, 0 insertions, 110 deletions
diff --git a/include/config.h b/include/config.h index 7da7477dfc..68a8e4160d 100644 --- a/include/config.h +++ b/include/config.h @@ -1317,20 +1317,6 @@ */ #undef CONFIG_EC_EFS_SUPPORT -/*****************************************************************************/ -/* Support for EC-EC communication */ - -/* - * Board is master or slave in EC-EC communication. - */ -#undef CONFIG_EC_EC_COMM_MASTER -#undef CONFIG_EC_EC_COMM_SLAVE - -/* - * Board support battery-related functions in EC-EC communication. - */ -#undef CONFIG_EC_EC_COMM_BATTERY - /* * Enable the experimental console. * @@ -4588,24 +4574,6 @@ #endif /*****************************************************************************/ -/* - * Define derived configuration options for EC-EC communication - */ -#ifdef CONFIG_EC_EC_COMM_BATTERY -#ifdef CONFIG_EC_EC_COMM_MASTER -#define CONFIG_EC_EC_COMM_BATTERY_MASTER -#define CONFIG_BATTERY_V2 -#define CONFIG_BATTERY_COUNT 2 -#endif - -#ifdef CONFIG_EC_EC_COMM_SLAVE -#define CONFIG_EC_EC_COMM_BATTERY_SLAVE -#define CONFIG_BATTERY_V2 -#define CONFIG_BATTERY_COUNT 1 -#endif -#endif /* CONFIG_EC_EC_COMM_BATTERY */ - -/*****************************************************************************/ /* Define derived USB PD Discharge common path */ #if defined(CONFIG_USB_PD_DISCHARGE_GPIO) || \ defined(CONFIG_USB_PD_DISCHARGE_TCPC) || \ diff --git a/include/ec_ec_comm_master.h b/include/ec_ec_comm_master.h deleted file mode 100644 index ccd46a9bc2..0000000000 --- a/include/ec_ec_comm_master.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Copyright 2017 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * EC-EC communication, functions for master. - */ - -#ifndef EC_EC_COMM_MASTER_H_ -#define EC_EC_COMM_MASTER_H_ - -#include <stdint.h> -#include "config.h" - -/** - * Sends EC_CMD_BATTERY_GET_DYNAMIC command to slave, and writes the - * battery dynamic information into battery_dynamic[BATT_IDX_BASE]. - * - * Leaves battery_dynamic[BATT_IDX_BASE] intact on error: it is the callers - * responsibility to clear the data or ignore it. - - * @return EC_RES_SUCCESS on success, EC_RES_ERROR on communication error, - * else forwards the error code from the slave. - */ -int ec_ec_master_base_get_dynamic_info(void); - -/** - * Sends EC_CMD_BATTERY_GET_STATIC command to slave, and writes the - * battery static information into battery_static[BATT_IDX_BASE]. - * - * Leaves battery_static[BATT_IDX_BASE] intact on error: it is the callers - * responsibility to clear the data or ignore it. - * - * @return EC_RES_SUCCESS on success, EC_RES_ERROR on communication error, - * else forwards the error code from the slave. - */ -int ec_ec_master_base_get_static_info(void); - -/** - * Sends EC_CMD_CHARGER_CONTROL command to slave, with the given parameters - * (see ec_commands.h/ec_params_charger_control for description). - * - * @return EC_RES_SUCCESS on success, EC_RES_ERROR on communication error, - * else forwards the error code from the slave. - */ -int ec_ec_master_base_charge_control(int max_current, - int otg_voltage, - int allow_charging); - -/** - * Sends EC_CMD_REBOOT_EC command to slave, with EC_REBOOT_HIBERNATE parameter. - * - * @return EC_RES_ERROR on communication error (should always be the case if the - * slave successfully hibernates, as it will not be able to write back the - * response, else forwards the error code from the slave. - */ -int ec_ec_master_hibernate(void); - -#endif /* EC_EC_COMM_MASTER_H_ */ diff --git a/include/ec_ec_comm_slave.h b/include/ec_ec_comm_slave.h deleted file mode 100644 index 19e1912d94..0000000000 --- a/include/ec_ec_comm_slave.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Copyright 2017 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * EC-EC communication, functions and definition for slave. - */ - -#ifndef EC_EC_COMM_SLAVE_H_ -#define EC_EC_COMM_SLAVE_H_ - -#include <stdint.h> -#include "consumer.h" -#include "queue.h" - -extern struct queue const ec_ec_comm_slave_input; -extern struct queue const ec_ec_comm_slave_output; - -void ec_ec_comm_slave_written(struct consumer const *consumer, size_t count); - -#endif /* EC_EC_COMM_SLAVE_H_ */ |