From a6dfae38361b8b63727c2ff0d3e3f17215cd773c Mon Sep 17 00:00:00 2001 From: Liam Flaherty Date: Thu, 24 Nov 2022 13:13:32 +1100 Subject: dibbi: Update board specific power implementation Removed battery and battery charging support, as dibbi does not have either of these. Added support for dual barrel-jack/USB-C power supplies and update USB PD policies accordingly. Added support for USB-C0 output load-switch. Made changes in dedede baseboard to allow alternate implementation of extpower_is_present with the absence of a charger chip. BUG=b:257377326 BRANCH=dedede TEST=make -j BOARD=dibbi Signed-off-by: Liam Flaherty Change-Id: I81d01a88caf174eb038685bf098686e8a310a9b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4054386 Code-Coverage: Zoss Reviewed-by: Sam McNally Reviewed-by: Adam Mills Tested-by: Adam Mills --- baseboard/dedede/baseboard.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'baseboard/dedede/baseboard.c') diff --git a/baseboard/dedede/baseboard.c b/baseboard/dedede/baseboard.c index cd55f37588..22034a09bd 100644 --- a/baseboard/dedede/baseboard.c +++ b/baseboard/dedede/baseboard.c @@ -294,6 +294,7 @@ int board_is_i2c_port_powered(int port) return chipset_in_state(CHIPSET_STATE_ANY_OFF) ? 0 : 1; } +#if defined(CONFIG_CHARGER_RAA489000) || defined(CONFIG_CHARGER_SM5803) __overridable int extpower_is_present(void) { int port; @@ -314,6 +315,7 @@ __overridable int extpower_is_present(void) return 0; } +#endif __override uint32_t board_override_feature_flags0(uint32_t flags0) { -- cgit v1.2.1