Searched refs:U300_PIN_REG (Results 1 – 1 of 1) sorted by relevance
/linux-4.1.27/drivers/pinctrl/ |
D | pinctrl-coh901.c | 93 #define U300_PIN_REG(pin, reg) \ macro 242 return readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset); in u300_gpio_get() 253 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set() 255 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 257 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 269 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 272 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 286 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 299 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 317 biasmode = !!(readl(U300_PIN_REG(offset, per)) & U300_PIN_BIT(offset)); in u300_gpio_config_get() [all …]
|