Lines Matching refs:debounce
43 u32 debounce;
157 * Disable debounce before cutting it's clock. If debounce is
169 * omap2_set_gpio_debounce - low level gpio debounce time
172 * @debounce: debounce time to use
174 * OMAP's debounce time is in 31us steps
175 * <debounce time> = (GPIO_DEBOUNCINGTIME[7:0].DEBOUNCETIME + 1) x 31
181 unsigned debounce)
185 bool enable = !!debounce;
191 debounce = DIV_ROUND_UP(debounce, 31) - 1;
192 if ((debounce & OMAP4_GPIO_DEBOUNCINGTIME_MASK) != debounce)
199 writel_relaxed(debounce, bank->base + bank->regs->debounce);
206 * Enable debounce clock per module.
215 bank->context.debounce = debounce;
223 * omap_clear_gpio_debounce - clear debounce settings for a gpio
227 * If a gpio is using debounce, then clear the debounce enable bit and if
228 * this is the only gpio in this bank using debounce, then clear the debounce
229 * time too. The debounce clock will also be disabled when calling this function
230 * if this is the only gpio in the bank using debounce.
248 bank->context.debounce = 0;
249 writel_relaxed(bank->context.debounce, bank->base +
250 bank->regs->debounce);
877 unsigned debounce)
886 ret = omap2_set_gpio_debounce(bank, offset, debounce);
891 "Could not set line %u debounce to %u microseconds (%d)",
892 offset, debounce, ret);
900 u32 debounce;
910 debounce = pinconf_to_config_argument(config);
911 ret = omap_gpio_debounce(chip, offset, debounce);
1107 writel_relaxed(bank->context.debounce, base + regs->debounce);
1304 .debounce = OMAP24XX_GPIO_DEBOUNCE_VAL,
1330 .debounce = OMAP4_GPIO_DEBOUNCINGTIME,
1460 "Could not get gpio dbck. Disable debounce\n");