Home
last modified time | relevance | path

Searched refs:reg_gpcr (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/gpio/
Dgpio_ite_it8xxx2_v2.c46 uintptr_t reg_gpcr; member
84 volatile uint8_t *reg_gpcr = (uint8_t *)gpio_config->reg_gpcr + pin; in gpio_ite_configure() local
97 ECREG(reg_gpcr) = GPCR_PORT_PIN_MODE_TRISTATE; in gpio_ite_configure()
102 if (ECREG(reg_gpcr) != GPCR_PORT_PIN_MODE_TRISTATE) { in gpio_ite_configure()
104 ECREG(reg_gpcr) = GPCR_PORT_PIN_MODE_INPUT; in gpio_ite_configure()
166 uint8_t ksxgctrlr = ECREG(reg_gpcr); in gpio_ite_configure()
174 ECREG(reg_gpcr) = ksxgctrlr; in gpio_ite_configure()
178 ECREG(reg_gpcr) = (ECREG(reg_gpcr) | GPCR_PORT_PIN_MODE_OUTPUT) & in gpio_ite_configure()
181 ECREG(reg_gpcr) = (ECREG(reg_gpcr) | GPCR_PORT_PIN_MODE_INPUT) & in gpio_ite_configure()
189 uint8_t ksxgctrlr = ECREG(reg_gpcr); in gpio_ite_configure()
[all …]
Dgpio_ite_it8801.c31 uint8_t reg_gpcr; member
61 uint8_t reg_gpcr = config->reg_gpcr + pin; in gpio_it8801_configure() local
74 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_configure()
125 ret = i2c_reg_write_byte_dt(&config->i2c_dev, reg_gpcr, control); in gpio_it8801_configure()
140 uint8_t reg_gpcr = config->reg_gpcr + pin; in gpio_it8801_get_config() local
148 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_get_config()
326 uint8_t reg_gpcr = config->reg_gpcr + pin; in gpio_it8801_pin_interrupt_configure() local
346 ret = i2c_reg_update_byte_dt(&config->i2c_dev, reg_gpcr, IT8801_GPIODIR, 0); in gpio_it8801_pin_interrupt_configure()
353 ret = i2c_reg_update_byte_dt(&config->i2c_dev, reg_gpcr, GENMASK(4, 3), 0); in gpio_it8801_pin_interrupt_configure()
359 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_pin_interrupt_configure()
[all …]
Dgpio_ite_it8xxx2.c38 uintptr_t reg_gpcr; member
362 volatile uint8_t *reg_gpcr = (uint8_t *)(gpio_config->reg_gpcr + pin); in gpio_ite_configure() local
378 *reg_gpcr = GPCR_PORT_PIN_MODE_TRISTATE; in gpio_ite_configure()
383 if (*reg_gpcr != GPCR_PORT_PIN_MODE_TRISTATE) { in gpio_ite_configure()
385 *reg_gpcr = GPCR_PORT_PIN_MODE_INPUT; in gpio_ite_configure()
437 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_OUTPUT) & in gpio_ite_configure()
440 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_INPUT) & in gpio_ite_configure()
446 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_PULLUP) & in gpio_ite_configure()
449 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_PULLDOWN) & in gpio_ite_configure()
453 *reg_gpcr &= ~(GPCR_PORT_PIN_MODE_PULLUP | in gpio_ite_configure()
[all …]
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_ite_it8xxx2.c23 uint8_t *reg_gpcr; member
78 volatile uint8_t *reg_gpcr = (uint8_t *)gpio->reg_gpcr + pin; in pinctrl_it8xxx2_set() local
86 *reg_gpcr &= ~(GPCR_PORT_PIN_MODE_PULLUP | in pinctrl_it8xxx2_set()
90 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_PULLUP) & in pinctrl_it8xxx2_set()
94 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_PULLDOWN) & in pinctrl_it8xxx2_set()
128 *reg_gpcr |= (GPCR_PORT_PIN_MODE_PULLUP | in pinctrl_it8xxx2_set()
152 volatile uint8_t *reg_gpcr = (uint8_t *)gpio->reg_gpcr + pin; in pinctrl_gpio_it8xxx2_configure_pins() local
167 *reg_gpcr = (*reg_gpcr | GPCR_PORT_PIN_MODE_INPUT) & in pinctrl_gpio_it8xxx2_configure_pins()
226 *reg_gpcr &= ~(GPCR_PORT_PIN_MODE_INPUT | in pinctrl_gpio_it8xxx2_configure_pins()
398 .reg_gpcr = (uint8_t *)DT_INST_REG_ADDR_BY_IDX(inst, 0), \