summaryrefslogtreecommitdiff
path: root/baseboard/kukui/battery_max17055.c
Commit message (Collapse)AuthorAgeFilesLines
* util: remove unused includesYuval Peress2022-08-051-0/+1
| | | | | | | | | | | | | | | | Remove these includes as they're not needed in this header. Instead, the includes should go where they're actually being used. BRANCH=none BUG=b:240574048 TEST=make buildall -j TEST=zmake build -a Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I64b10af3216654b2a20caa1cabd267661a0bca39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791980 Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com>
* baseboard/kukui/battery_max17055.c: Format with clang-formatJack Rosenthal2022-06-281-7/+4
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I39406aae25be91a1e47cbabb83698c592c975ba7 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3727918 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* tree: Files should end with single newlineTom Hughes2021-10-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | One of the checks that runs as part of "repo upload" looks for a single newline at the end of each file. I'm getting warnings about this when I touch files that do not follow this, even though I didn't add the extra newlines. This commit fixes all files by running the following: for f in $(find . -name '*.[ch]'); do printf '%s\n' "$(cat ${f})" > ${f}; done BRANCH=none BUG=b:172020503 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ia3ece5b64b549d21ca11708791368002bb6e9b0e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229797 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Kukui: initial a new models kakadu of ec.wen zhang2020-11-021-97/+0
| | | | | | | | | | | | | | | Copy from krane, which is a model from Kukui. Modified for building pass. It will need to be revised later. BUG=b:171763111 BRANCH=master TEST=make -j BOARD=kakadu Change-Id: I87fcf8c8e3bd4fa669e0bcb7fbb9d125a9926cdb Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2501801 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
* kakadu: fix board-specific charge behaviorScott Chao2020-07-071-2/+2
| | | | | | | | | | | | | | | Request voltage always keep at 4320mV when cycle_count is over than 600. We need at a zone for it. BUG=b:153272421 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I8d065a607226a39335e3a663ddf7a179ff73a0db Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282739 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kakadu: add board-specific charge behaviorScott Chao2020-07-061-0/+52
| | | | | | | | | | | | | | | | | | | | | 1.If cycle count > 300, set Charge Voltage=4320, cycle count > 600, set Charge Voltage=4300, cycle count > 1000, set Charge Voltage=4250 2.If charging over 48 hours and Charge Voltage > 4.25V, set Charge Voltage = 4.25V 3.If charging over 2 hours,battery voltage over 4.1V and battery temperature over 45°C, switch to discharge mode and set Charge Voltage = 4.1V BUG=b:153272421 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I4968308b984f08a58491586a90b0b239eec07328 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2280865 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kakadu: prevent OEM name show "unkn"Scott Chao2020-06-291-0/+12
| | | | | | | | | | | | | | | ectool battery need to show proper OEM name when using dump battery. BUG=b:159918228 BRANCH=kukui TEST=make -j board=kakadu TEST=make buildall TEST=ectool battery Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I27e355881d6f6692edb2599fef7fb2c2c30a1062 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2269393 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kakadu: modify charger and gauge parameter to reduce charging timeScott Chao2020-05-141-1/+1
| | | | | | | | | | | | | | | After power team experiment, change those parameter can reduce charging time. BUG=b:156398259 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: I636ac4608e7af4afcc8d1adbadeead75d3e6c3b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2198815 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kakadu: update battery parameterScott Chao2020-04-141-1/+1
| | | | | | | | | | | | | | When battery charge enter CV mode, it can be charged more power if the setting changed to 200. BUG=b:153832582 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Change-Id: Ie2bdff88ca230a3f05458a9cb1b9a3fb546a7f15 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145551 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kakadu: add new battery support for gauge max17055Scott Chao2020-03-261-4/+53
| | | | | | | | | | | | | | Configure battery parameter for gauge max17055 on kakadu. BUG=b:151899905 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Change-Id: I5253f248f0ec4dd0a8e41cf1609160d82212ee6e Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2089221 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* baseboard/kukui: support battery/charger variantsTing Shen2019-07-311-0/+172
This CL introduces config option VARIANT_KUKUI_BATTERY_* and VARIANT_KUKUI_CHARGER_* for derivatives to pick their battery / charger option. BUG=b:137172860 TEST=build and deploy on Krane, verify that `battery` and `charger` console output looks reasonable. BRANCH=master Change-Id: Ic5c33a233ec30c9bc71414c95603157301281041 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1697781 Reviewed-by: Alexandru M Stan <amstan@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>