diff options
author | Ruibin Chang <Ruibin.Chang@ite.com.tw> | 2021-07-01 16:56:03 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-09 03:45:49 +0000 |
commit | 4cf446bf5f122050f00376af66b9f5edcab26ba6 (patch) | |
tree | 1ec37f00932eea32cac7bb4d0e53cc0a1a62d788 /driver/tcpm/ite_pd_intc.h | |
parent | de941c3ac9c049fea4fa199a95b39d0df20ce6c0 (diff) | |
download | chrome-ec-4cf446bf5f122050f00376af66b9f5edcab26ba6.tar.gz |
driver/tcpm/ite_pd_intc: separate pd interrupt to ite_pd_intc
Separate pd interrupt functions to ite_pd_intc for
easier maintenance on cros_ec and zephyr.
And enable PD interrupt functions for zephyr.
BRANCH=none
BUG=none
TEST=1.can zmake hayato and make asurada
2.PD port functions work on board hayato
Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Change-Id: I67082bb442da7dfb669e23d8315d81f4abe7ba76
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2999358
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/tcpm/ite_pd_intc.h')
-rw-r--r-- | driver/tcpm/ite_pd_intc.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/driver/tcpm/ite_pd_intc.h b/driver/tcpm/ite_pd_intc.h new file mode 100644 index 0000000000..8123e1a233 --- /dev/null +++ b/driver/tcpm/ite_pd_intc.h @@ -0,0 +1,22 @@ +/* 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. + */ + +/* ITE PD INTC control module */ + +#ifndef __CROS_EC_ITE_PD_INTC_H +#define __CROS_EC_ITE_PD_INTC_H + +/** + * ITE embedded PD interrupt routine + * + * NOTE: Enable ITE embedded PD that it requires CONFIG_USB_PD_TCPM_ITE_ON_CHIP + * + * @param port Type-C port number + * + * @return none + */ +void chip_pd_irq(enum usbpd_port port); + +#endif /* __CROS_EC_ITE_PD_INTC_H */ |