|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In case of some hatch variants, there might be a need to identify
battery hardware presence using custom method
i.e. GPIO_EC_BATT_PRES_ODL might not work correctly. In order to
accommodate these variants, this change provides a callback
variant_battery_present() that allows variant to provide its own
implementation if required. By default, a weak implementation is
provided which returns BP_NOT_SURE to use the default GPIO for reading
battery present state.
BUG=b:135278000
BRANCH=None
TEST=None
Change-Id: I8504e807cff853dc3276d76a0cd3db1ccb587b9e
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1702869
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: YongBeum Ha <ybha@samsung.com>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Tested-by: YongBeum Ha <ybha@samsung.com>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
|