diff options
Diffstat (limited to 'zephyr/program/myst/include/usbc_config.h')
-rw-r--r-- | zephyr/program/myst/include/usbc_config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/zephyr/program/myst/include/usbc_config.h b/zephyr/program/myst/include/usbc_config.h new file mode 100644 index 0000000000..1c983ba8e9 --- /dev/null +++ b/zephyr/program/myst/include/usbc_config.h @@ -0,0 +1,20 @@ +/* Copyright 2023 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* Myst type-c definitions */ + +#ifndef __CROS_EC_USBC_CONFIG_H +#define __CROS_EC_USBC_CONFIG_H + +void ppc_interrupt(enum gpio_signal signal); + +/* USB-A ports */ +enum usba_port { USBA_PORT_A0 = 0, USBA_PORT_A1, USBA_PORT_COUNT }; + +/* USB-C ports */ +enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C1, USBC_PORT_COUNT }; +BUILD_ASSERT(USBC_PORT_COUNT == CONFIG_USB_PD_PORT_MAX_COUNT); + +#endif /* __CROS_EC_USBC_CONFIG_H */ |