1 /* 2 * Copyright (c) 2021 ITE Corporation. All Rights Reserved. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _ITE_IT8XXX2_SOC_ESPI_H_ 8 #define _ITE_IT8XXX2_SOC_ESPI_H_ 9 10 #include <zephyr/device.h> 11 #include <zephyr/sys/util.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #define ESPI_IT8XXX2_SOC_DEV DEVICE_DT_GET(DT_NODELABEL(espi0)) 18 19 /** 20 * @brief eSPI input pad gating 21 * 22 * @param dev pointer to eSPI device 23 * @param enable/disable eSPI pad 24 */ 25 void espi_it8xxx2_enable_pad_ctrl(const struct device *dev, bool enable); 26 27 /** 28 * @brief eSPI transaction interrupt control 29 * 30 * @param dev pointer to eSPI device 31 * @param enable/disable eSPI transaction interrupt 32 */ 33 void espi_it8xxx2_enable_trans_irq(const struct device *dev, bool enable); 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 #endif /* _ITE_IT8XXX2_SOC_ESPI_H_ */ 40