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)
202 if ((unsigned long)debounce > max_debounce) {
206 div = (unsigned long)debounce * freq;
215 if (debounce) {
217 /* Configure the max debounce from consumers */
225 rockchip_gpio_writel_bit(bank, offset, 1, reg->debounce);
231 rockchip_gpio_writel_bit(bank, offset, 0, reg->debounce);
238 if (debounce) {
256 unsigned int debounce = pinconf_to_config_argument(config);
263 * of the debounce clock(pclk), which is far away from
266 * has crippled debounce capability could only be useful
272 rockchip_gpio_set_debounce(gc, offset, debounce);
625 dev_err(bank->dev, "cannot find debounce clk\n");