Searched refs:gpio_ddr (Results 1 – 1 of 1) sorted by relevance
140 unsigned int gpio_ddr; in altera_gpio_direction_input() local147 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() local176 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()