• Home
  • Raw
  • Download

Lines Matching full:debounce

47 	u32 debounce;  member
238 * Disable debounce before cutting it's clock. If debounce is in omap_gpio_dbck_disable()
250 * omap2_set_gpio_debounce - low level gpio debounce time
253 * @debounce: debounce time to use
255 * OMAP's debounce time is in 31us steps
256 * <debounce time> = (GPIO_DEBOUNCINGTIME[7:0].DEBOUNCETIME + 1) x 31
262 unsigned debounce) in omap2_set_gpio_debounce() argument
267 bool enable = !!debounce; in omap2_set_gpio_debounce()
273 debounce = DIV_ROUND_UP(debounce, 31) - 1; in omap2_set_gpio_debounce()
274 if ((debounce & OMAP4_GPIO_DEBOUNCINGTIME_MASK) != debounce) in omap2_set_gpio_debounce()
281 reg = bank->base + bank->regs->debounce; in omap2_set_gpio_debounce()
282 writel_relaxed(debounce, reg); in omap2_set_gpio_debounce()
296 * Enable debounce clock per module. in omap2_set_gpio_debounce()
305 bank->context.debounce = debounce; in omap2_set_gpio_debounce()
313 * omap_clear_gpio_debounce - clear debounce settings for a gpio
317 * If a gpio is using debounce, then clear the debounce enable bit and if
318 * this is the only gpio in this bank using debounce, then clear the debounce
319 * time too. The debounce clock will also be disabled when calling this function
320 * if this is the only gpio in the bank using debounce.
338 bank->context.debounce = 0; in omap_clear_gpio_debounce()
339 writel_relaxed(bank->context.debounce, bank->base + in omap_clear_gpio_debounce()
340 bank->regs->debounce); in omap_clear_gpio_debounce()
1051 unsigned debounce) in omap_gpio_debounce() argument
1060 ret = omap2_set_gpio_debounce(bank, offset, debounce); in omap_gpio_debounce()
1065 "Could not set line %u debounce to %u microseconds (%d)", in omap_gpio_debounce()
1066 offset, debounce, ret); in omap_gpio_debounce()
1074 u32 debounce; in omap_gpio_set_config() local
1079 debounce = pinconf_to_config_argument(config); in omap_gpio_set_config()
1080 return omap_gpio_debounce(chip, offset, debounce); in omap_gpio_set_config()
1327 "Could not get gpio dbck. Disable debounce\n"); in omap_gpio_probe()
1635 writel_relaxed(bank->context.debounce, bank->base + in omap_gpio_restore_context()
1636 bank->regs->debounce); in omap_gpio_restore_context()
1672 .debounce = OMAP24XX_GPIO_DEBOUNCE_VAL,
1697 .debounce = OMAP4_GPIO_DEBOUNCINGTIME,