diff options
author | Neill Corlett <corlett@google.com> | 2021-01-12 12:15:57 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-13 16:15:44 +0000 |
commit | 74d3fa01ba48bebda990e505652c8f978279437b (patch) | |
tree | 4207240eae678ddc2f82c37eaf485ce6424e448c /common/peripheral.c | |
parent | 104d2c0873aa2f336b0114f9f7c7e848debabc85 (diff) | |
download | chrome-ec-74d3fa01ba48bebda990e505652c8f978279437b.tar.gz |
board/genesis: Totally remove CONFIG_CHARGE_MANAGER and
CONFIG_USB_POWER_DELIVERY. Hardcode extpower_is_present() to 1 as the
barrel jack is the only means of powering the board.
BUG=b:173566595
TEST=Flashed to my Endeavour-C EVT1; reaches "Starting kernel"
Change-Id: Ie456646bae2ca7ff5249d66bf0848fdd08caa6b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2624927
Tested-by: Neill Corlett <corlett@google.com>
Commit-Queue: Neill Corlett <corlett@google.com>
Reviewed-by: Matthew Ziegelbaum <ziegs@chromium.org>
Diffstat (limited to 'common/peripheral.c')
-rw-r--r-- | common/peripheral.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/peripheral.c b/common/peripheral.c index d7be53a244..58ca0dbffd 100644 --- a/common/peripheral.c +++ b/common/peripheral.c @@ -30,7 +30,7 @@ static enum ec_status hc_locate_chip(struct host_cmd_handler_args *args) #endif /* CONFIG_CROS_BOARD_INFO */ break; case EC_CHIP_TYPE_TCPC: -#if defined(CONFIG_USB_PD_PORT_MAX_COUNT) && !defined(CONFIG_USB_PD_TCPC) +#if defined(CONFIG_USB_POWER_DELIVERY) && defined(CONFIG_USB_PD_PORT_MAX_COUNT) && !defined(CONFIG_USB_PD_TCPC) if (params->index >= board_get_usb_pd_port_count()) return EC_RES_OVERFLOW; resp->bus_type = tcpc_config[params->index].bus_type; |