LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/gpio - ite-it8xxx2-gpio.h Hit Total Coverage
Test: new.info Lines: 4 5 80.0 %
Date: 2025-01-09 18:14:39

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2022 Vestas Wind Systems A/S
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ITE_IT8XXX2_GPIO_H_
       7             : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ITE_IT8XXX2_GPIO_H_
       8             : 
       9             : /**
      10             :  * @name GPIO pin voltage flags
      11             :  *
      12             :  * The voltage flags are a Zephyr specific extension of the standard GPIO flags
      13             :  * specified by the Linux GPIO binding for use with the ITE IT8xxx2 SoCs.
      14             :  *
      15             :  * @{
      16             :  */
      17             : 
      18             : /** @cond INTERNAL_HIDDEN */
      19             : #define IT8XXX2_GPIO_VOLTAGE_POS        11
      20             : #define IT8XXX2_GPIO_VOLTAGE_MASK       (3U << IT8XXX2_GPIO_VOLTAGE_POS)
      21             : /** @endcond */
      22             : 
      23             : /** Set pin at the default voltage level */
      24           1 : #define IT8XXX2_GPIO_VOLTAGE_DEFAULT    (0U << IT8XXX2_GPIO_VOLTAGE_POS)
      25             : /** Set pin voltage level at 1.8 V */
      26           1 : #define IT8XXX2_GPIO_VOLTAGE_1P8        (1U << IT8XXX2_GPIO_VOLTAGE_POS)
      27             : /** Set pin voltage level at 3.3 V */
      28           1 : #define IT8XXX2_GPIO_VOLTAGE_3P3        (2U << IT8XXX2_GPIO_VOLTAGE_POS)
      29             : /** Set pin voltage level at 5.0 V */
      30           1 : #define IT8XXX2_GPIO_VOLTAGE_5P0        (3U << IT8XXX2_GPIO_VOLTAGE_POS)
      31             : 
      32             : /** @} */
      33             : 
      34             : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_ITE_IT8XXX2_GPIO_H_ */

Generated by: LCOV version 1.14