Lines Matching refs:debounce
38 .debounce = 0x48,
53 .debounce = 0x38,
189 static int rockchip_gpio_set_debounce(struct gpio_chip *gc, unsigned int offset, unsigned int debounce)
205 if ((unsigned long)debounce > max_debounce) {
209 div = debounce * freq;
218 if (debounce) {
220 /* Configure the max debounce from consumers */
228 rockchip_gpio_writel_bit(bank, offset, 1, reg->debounce);
234 rockchip_gpio_writel_bit(bank, offset, 0, reg->debounce);
241 if (debounce) {
259 unsigned int debounce = pinconf_to_config_argument(config);
266 * of the debounce clock(pclk), which is far away from
269 * has crippled debounce capability could only be useful
275 rockchip_gpio_set_debounce(gc, offset, debounce);
628 dev_err(bank->dev, "cannot find debounce clk\n");