Searched refs:U300_PIN_REG (Results 1 – 1 of 1) sorted by relevance
| /linux-4.4.14/drivers/pinctrl/ |
| D | pinctrl-coh901.c | 93 #define U300_PIN_REG(pin, reg) \ macro 224 return readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset); in u300_gpio_get() 235 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set() 237 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 239 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 251 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 254 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 268 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 281 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 299 biasmode = !!(readl(U300_PIN_REG(offset, per)) & U300_PIN_BIT(offset)); in u300_gpio_config_get() [all …]
|