diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-08 12:00:58 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-12 21:03:48 +0000 |
commit | 83b1aef29fee7f353b274a388eeb5a670855e666 (patch) | |
tree | 10f3667990e4379146bce7eaf3526edd25b28be8 /baseboard/volteer/baseboard_usbc_config.h | |
parent | 90b9cc786db2453835cdf1711aa939929bac6de7 (diff) | |
download | chrome-ec-83b1aef29fee7f353b274a388eeb5a670855e666.tar.gz |
volteer: Create a header file for baseboard usbc config
There are a few function prototypes defined in baseboard.h that really
should be available to zephyr. Move them into a separate file to permit
that.
BUG=b:175434113
BRANCH=none
TEST=make BOARD=volteer -j30
With a zephyr-chrome CL, build volteer on zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Idf72aeb993c74fec3419627e77c68ada0f33902f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617366
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'baseboard/volteer/baseboard_usbc_config.h')
-rw-r--r-- | baseboard/volteer/baseboard_usbc_config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard_usbc_config.h b/baseboard/volteer/baseboard_usbc_config.h new file mode 100644 index 0000000000..bf02b1cb34 --- /dev/null +++ b/baseboard/volteer/baseboard_usbc_config.h @@ -0,0 +1,18 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* volteer family-specific USB-C configuration */ + +#ifndef __CROS_EC_BASEBOARD_USBC_CONFIG_H +#define __CROS_EC_BASEBOARD_USBC_CONFIG_H + +#include "gpio_signal.h" + +/* Common definition for the USB PD interrupt handlers. */ +void ppc_interrupt(enum gpio_signal signal); +void tcpc_alert_event(enum gpio_signal signal); +void bc12_interrupt(enum gpio_signal signal); + +#endif /* __CROS_EC_BASEBOARD_USBC_CONFIG_H */ |