Searched full:reg_gpcr (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/gpio/ |
D | gpio_ite_it8xxx2_v2.c | 46 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 …]
|
D | gpio_ite_it8801.c | 31 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 …]
|
D | gpio_ite_it8xxx2.c | 38 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/ |
D | pinctrl_ite_it8xxx2.c | 23 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), \
|
/Zephyr-latest/dts/bindings/gpio/ |
D | ite,it8xxx2-gpio-v2.yaml | 34 keyboard controller. In this case the reg_gpcr property is
|