summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Deshatty <deepti.deshatty@intel.corp-partner.google.com>2022-02-14 14:35:48 +0530
committerCommit Bot <commit-bot@chromium.org>2022-02-16 10:30:17 +0000
commite9d56cdd0619fd3e6e9a4714391666641c5c333b (patch)
tree4b1c9aab1b0249b3470c00dda2376f7118eef156
parentf99fabd9c36e90f42e290a83494e84ee6eba7e0e (diff)
downloadchrome-ec-e9d56cdd0619fd3e6e9a4714391666641c5c333b.tar.gz
adlrvp: configure board specific battery type first
board_pre_task_i2c_peripheral_init() api selects board specific battery type and charger information. Charger configure is called first and later configure battery type is called. Charger configuration uses battery type information, hence battery type needs to be configured before calling charger configuration. BUG=none BRANCH=none TEST=Verified battery fuctionality on ADL-N rvp board. Change-Id: Ie0f54fc2675721ea3f38f675eca446a32da49cf7 Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459596 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Deepti Deshatty <deepti.deshatty@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--baseboard/intelrvp/adlrvp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/baseboard/intelrvp/adlrvp.c b/baseboard/intelrvp/adlrvp.c
index 00d4d1c280..5e368ae350 100644
--- a/baseboard/intelrvp/adlrvp.c
+++ b/baseboard/intelrvp/adlrvp.c
@@ -530,12 +530,12 @@ __override void board_pre_task_i2c_peripheral_init(void)
/* Make sure SBU are routed to CCD or AUX based on CCD status at init */
board_connect_c0_sbu_deferred();
+ /* Configure battery type */
+ configure_battery_type();
+
/* Reconfigure board specific charger drivers */
configure_charger();
/* Configure board specific retimer & mux */
configure_retimer_usbmux();
-
- /* Configure battery type */
- configure_battery_type();
}