From bf407535977e557d93e3d1ace5d8c171e8edadf4 Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Wed, 19 May 2021 23:21:53 -0700 Subject: brya: Move battery_hw_present to board This moves the battery_hw_present() function from the baseboard to the board file. We have a GPIO shuffle in the works for brya that requires board specific knowledge to support multiple revisions of the board. BRANCH=none BUG=b:183452273 TEST=battery works fine on brya ID 1 Change-Id: Ida698911539486cc68f509efd8533325b59e031e Signed-off-by: Caveh Jalali Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2912055 Reviewed-by: Boris Mittelberg Commit-Queue: Boris Mittelberg --- baseboard/brya/battery_presence.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'baseboard/brya') diff --git a/baseboard/brya/battery_presence.c b/baseboard/brya/battery_presence.c index 4fc8060de6..8efda188ed 100644 --- a/baseboard/brya/battery_presence.c +++ b/baseboard/brya/battery_presence.c @@ -14,12 +14,6 @@ static enum battery_present batt_pres_prev = BP_NOT_SURE; -enum battery_present battery_hw_present(void) -{ - /* The GPIO is low when the battery is physically present */ - return gpio_get_level(GPIO_EC_BATT_PRES_ODL) ? BP_NO : BP_YES; -} - __overridable bool board_battery_is_initialized(void) { int batt_status; -- cgit v1.2.1