From c4d0b5e4aa6009733c57964c6d912d1370f8ba3c Mon Sep 17 00:00:00 2001 From: Keith Short Date: Sun, 6 Dec 2020 13:50:04 -0700 Subject: volteer: enable battery support Turn on the battery and smart battery configs. BUG=b:175248556 TEST=boot volteer and type 'battery' Cq-Depend: chromium:2575199 Change-Id: Iae77069bb20985b40f91711cf589ae3054002e30 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2582201 Commit-Queue: Simon Glass Tested-by: Simon Glass Reviewed-by: Jack Rosenthal Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630157 Tested-by: Jack Rosenthal Reviewed-by: Simon Glass Commit-Queue: Jack Rosenthal --- zephyr/projects/volteer/include/i2c_map.h | 1 + zephyr/projects/volteer/prj.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/zephyr/projects/volteer/include/i2c_map.h b/zephyr/projects/volteer/include/i2c_map.h index 337a056ebd..70a73fbb8c 100644 --- a/zephyr/projects/volteer/include/i2c_map.h +++ b/zephyr/projects/volteer/include/i2c_map.h @@ -22,5 +22,6 @@ #define I2C_PORT_EEPROM NAMED_I2C(eeprom) #define I2C_ADDR_EEPROM_FLAGS 0x50 +#define I2C_PORT_BATTERY I2C_PORT_POWER #endif /* __ZEPHYR_CHROME_I2C_MAP_H */ diff --git a/zephyr/projects/volteer/prj.conf b/zephyr/projects/volteer/prj.conf index 8589f56a53..9055bd0da7 100644 --- a/zephyr/projects/volteer/prj.conf +++ b/zephyr/projects/volteer/prj.conf @@ -17,6 +17,10 @@ CONFIG_PLATFORM_EC_LID_SWITCH=y CONFIG_PLATFORM_EC_POWER_BUTTON=y CONFIG_PLATFORM_EC_CBI=y +# Battery +CONFIG_PLATFORM_EC_BATTERY=y +CONFIG_PLATFORM_EC_BATTERY_SMART=y + # Power Sequencing CONFIG_PLATFORM_EC_POWERSEQ=y CONFIG_PLATFORM_EC_POWERSEQ_RTC_RESET=y -- cgit v1.2.1