From 0ab7ffefc75159861c7e35d9e6eb673997358c14 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Wed, 13 Feb 2019 12:21:21 +0800 Subject: battery: add support for mm8013 battery gauge Implements basic functions that makes mm8013 looks like a battery on ec side. BUG=b:123267889 TEST=Build a kukui ec with CONFIG_BATTERY_MM8013 defined, verify the battery readings are sane. BRANCH=None Change-Id: Ica5237b5425681447f3cac0f0889a0ebdc35bf8f Signed-off-by: Ting Shen Reviewed-on: https://chromium-review.googlesource.com/1469192 Commit-Ready: Ting Shen Tested-by: Ting Shen Reviewed-by: Yilun Lin --- include/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index ee7ba39095..8baea11ff9 100644 --- a/include/config.h +++ b/include/config.h @@ -305,6 +305,7 @@ #undef CONFIG_BATTERY_BQ27621 #undef CONFIG_BATTERY_BQ4050 #undef CONFIG_BATTERY_MAX17055 +#undef CONFIG_BATTERY_MM8013 /* * MAX17055 support alert on voltage, current, temperature, and state-of-charge. @@ -3981,6 +3982,7 @@ defined(CONFIG_BATTERY_BQ27621) || \ defined(CONFIG_BATTERY_BQ4050) || \ defined(CONFIG_BATTERY_MAX17055) || \ + defined(CONFIG_BATTERY_MM8013) || \ defined(CONFIG_BATTERY_SMART) #define CONFIG_BATTERY #endif -- cgit v1.2.1