summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/battery_smart.h7
-rw-r--r--include/config.h18
-rw-r--r--include/i2c.h2
3 files changed, 0 insertions, 27 deletions
diff --git a/include/battery_smart.h b/include/battery_smart.h
index 9295cb884a..1c088a5e27 100644
--- a/include/battery_smart.h
+++ b/include/battery_smart.h
@@ -91,13 +91,6 @@
#define STATUS_TERMINATE_CHARGE_ALARM BIT(14)
#define STATUS_OVERCHARGED_ALARM BIT(15)
-/* Battery Spec Info */
-#define BATTERY_SPEC_VERSION(INFO) ((INFO >> 4) & 0xF)
-/* Smart battery version info */
-#define BATTERY_SPEC_VER_1_0 1
-#define BATTERY_SPEC_VER_1_1 2
-#define BATTERY_SPEC_VER_1_1_WITH_PEC 3
-
/* Charger alarm warning */
#define ALARM_OVER_CHARGED 0x8000
#define ALARM_TERMINATE_CHARGE 0x4000
diff --git a/include/config.h b/include/config.h
index a4d3545422..52d7bb44fa 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2284,20 +2284,6 @@
*/
#undef CONFIG_I2C_MULTI_PORT_CONTROLLER
-/*
- * Packet error checking support for SMBus.
- *
- * If defined, adds error checking support for i2c_readN, i2c_writeN,
- * i2c_read_string and i2c_write_block. Where
- * - write operation appends an error checking byte at end of transfer, and
- * - read operatoin verifies the correctness of error checking byte from the
- * slave.
- * Set I2C_FLAG on addr_flags parameter to use this feature.
- *
- * This option also enables error checking function on smart batteries.
- */
-#undef CONFIG_SMBUS_PEC
-
/*****************************************************************************/
/* IPI configuration. Support mt_scp only for now. */
@@ -4997,8 +4983,4 @@
#define CONFIG_SHA256
#endif
-#ifdef CONFIG_SMBUS_PEC
-#define CONFIG_CRC8
-#endif
-
#endif /* __CROS_EC_CONFIG_H */
diff --git a/include/i2c.h b/include/i2c.h
index 4be5472a11..0d68b5bc90 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -35,13 +35,11 @@
* address that is pertinent to its use.
*/
#define I2C_ADDR_MASK 0x03FF
-#define I2C_FLAG_PEC BIT(13)
#define I2C_FLAG_BIG_ENDIAN BIT(14)
/* BIT(15) SPI_FLAG - used in motion_sense to overload address */
#define I2C_FLAG_ADDR_IS_SPI BIT(15)
#define I2C_GET_ADDR(addr_flags) ((addr_flags) & I2C_ADDR_MASK)
-#define I2C_USE_PEC(addr_flags) ((addr_flags) & I2C_FLAG_PEC)
#define I2C_IS_BIG_ENDIAN(addr_flags) ((addr_flags) & I2C_FLAG_BIG_ENDIAN)
/*