Files
OpenCellular/common
Nicolas Boichat abdb022a2b battery: Allow 2 batteries to be fetched via ACPI
We share the same shared memory fields for both batteries. When
the host wants to switch battery to read out:
 - The host sets EC_ACPI_MEM_BATTERY_INDEX to the required index
 - EC then swaps the data is the shared memory fields, then update
   EC_MEMMAP_BATT_INDEX
 - Host waits for EC_MEMMAP_BATT_INDEX to have the required value,
   then fetches the data

BRANCH=none
BUG=b:65697620
TEST=Boot lux, both /sys/class/power_supply/BAT0 and BAT1 are
     present, data is valid.
TEST=Unplug base, BAT1 goes away, replug, BAT1 comes back.

Change-Id: Icce12f9eef2f6f8cde9bae0a968a65e1703d0369
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/888382
Reviewed-by: Gwendal Grignou <gwendal@google.com>
2018-02-09 07:55:33 -08:00
..
2017-12-28 14:50:29 -08:00
2018-02-05 23:05:39 -08:00
2018-02-08 09:24:07 -08:00
2018-02-08 23:42:33 -08:00
2015-05-19 02:46:27 +00:00
2017-11-06 13:48:38 -08:00
2018-01-10 12:58:55 -08:00
2018-01-23 05:25:08 -08:00
2016-11-15 17:41:53 -08:00
2017-12-28 12:35:08 -08:00
2017-10-19 14:56:09 -07:00
2017-09-11 11:14:24 -07:00
2018-02-05 23:05:39 -08:00
2016-03-02 13:39:47 -08:00
2017-06-02 10:38:57 -07:00
2017-10-31 13:04:59 -07:00
2017-10-24 12:57:45 -07:00
2014-05-17 20:14:17 +00:00
2018-02-09 05:24:46 -08:00
2016-03-21 16:35:33 -07:00
2017-05-09 23:20:07 -07:00
2017-11-06 13:48:38 -08:00
2017-08-10 22:47:24 -07:00
2018-01-31 22:38:56 -08:00
2017-12-18 20:32:58 -08:00
2017-12-18 20:32:58 -08:00
2017-09-22 10:18:50 -07:00