Searched refs:U300_PIN_REG (Results 1 – 1 of 1) sorted by relevance
/drivers/pinctrl/ |
D | pinctrl-coh901.c | 93 #define U300_PIN_REG(pin, reg) \ macro 215 return !!(readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset)); in u300_gpio_get() 226 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set() 228 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 230 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 242 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 245 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 259 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 272 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output() 290 biasmode = !!(readl(U300_PIN_REG(offset, per)) & U300_PIN_BIT(offset)); in u300_gpio_config_get() [all …]
|