Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpio/
Dgpio-altera.c140 unsigned int gpio_ddr; in altera_gpio_direction_input() local
147 gpio_ddr = readl(mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_input()
148 gpio_ddr &= ~BIT(offset); in altera_gpio_direction_input()
149 writel(gpio_ddr, mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_input()
161 unsigned int data_reg, gpio_ddr; in altera_gpio_direction_output() local
176 gpio_ddr = readl(mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_output()
177 gpio_ddr |= BIT(offset); in altera_gpio_direction_output()
178 writel(gpio_ddr, mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_output()