Home
last modified time | relevance | path

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

/arch/mips/jz4740/
Dgpio.c75 #define CHIP_TO_REG(chip, reg) (gpio_chip_to_jz_gpio_chip(chip)->base + (reg)) macro
209 return !!(readl(CHIP_TO_REG(chip, JZ_REG_GPIO_PIN)) & BIT(gpio)); in jz_gpio_get_value()
214 uint32_t __iomem *reg = CHIP_TO_REG(chip, JZ_REG_GPIO_DATA_SET); in jz_gpio_set_value()
222 writel(BIT(gpio), CHIP_TO_REG(chip, JZ_REG_GPIO_DIRECTION_SET)); in jz_gpio_direction_output()
230 writel(BIT(gpio), CHIP_TO_REG(chip, JZ_REG_GPIO_DIRECTION_CLEAR)); in jz_gpio_direction_input()