diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 08:57:16 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 08:57:16 -0400 |
commit | 0565f49cfe937640c2347f6d7f40ad2f4e4f088b (patch) | |
tree | 6067447df39c37946bc2de3ee004f45957bf123e /drivers/pinctrl/pinctrl-amd.c | |
parent | ccf1e9e1c0072088420aad42797986d6e74366b5 (diff) | |
parent | 9395452b4aab7bc2475ef8935b4a4fb99d778d70 (diff) |
Merge tag 'v4.8-rc6' into devel
Linux 4.8-rc6
Diffstat (limited to 'drivers/pinctrl/pinctrl-amd.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-amd.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c index be8ae98871f5..aea310a91821 100644 --- a/drivers/pinctrl/pinctrl-amd.c +++ b/drivers/pinctrl/pinctrl-amd.c | |||
@@ -43,17 +43,6 @@ static int amd_gpio_direction_input(struct gpio_chip *gc, unsigned offset) | |||
43 | 43 | ||
44 | spin_lock_irqsave(&gpio_dev->lock, flags); | 44 | spin_lock_irqsave(&gpio_dev->lock, flags); |
45 | pin_reg = readl(gpio_dev->base + offset * 4); | 45 | pin_reg = readl(gpio_dev->base + offset * 4); |
46 | /* | ||
47 | * Suppose BIOS or Bootloader sets specific debounce for the | ||
48 | * GPIO. if not, set debounce to be 2.75ms and remove glitch. | ||
49 | */ | ||
50 | if ((pin_reg & DB_TMR_OUT_MASK) == 0) { | ||
51 | pin_reg |= 0xf; | ||
52 | pin_reg |= BIT(DB_TMR_OUT_UNIT_OFF); | ||
53 | pin_reg |= DB_TYPE_REMOVE_GLITCH << DB_CNTRL_OFF; | ||
54 | pin_reg &= ~BIT(DB_TMR_LARGE_OFF); | ||
55 | } | ||
56 | |||
57 | pin_reg &= ~BIT(OUTPUT_ENABLE_OFF); | 46 | pin_reg &= ~BIT(OUTPUT_ENABLE_OFF); |
58 | writel(pin_reg, gpio_dev->base + offset * 4); | 47 | writel(pin_reg, gpio_dev->base + offset * 4); |
59 | spin_unlock_irqrestore(&gpio_dev->lock, flags); | 48 | spin_unlock_irqrestore(&gpio_dev->lock, flags); |
@@ -326,15 +315,6 @@ static void amd_gpio_irq_enable(struct irq_data *d) | |||
326 | 315 | ||
327 | spin_lock_irqsave(&gpio_dev->lock, flags); | 316 | spin_lock_irqsave(&gpio_dev->lock, flags); |
328 | pin_reg = readl(gpio_dev->base + (d->hwirq)*4); | 317 | pin_reg = readl(gpio_dev->base + (d->hwirq)*4); |
329 | /* | ||
330 | Suppose BIOS or Bootloader sets specific debounce for the | ||
331 | GPIO. if not, set debounce to be 2.75ms. | ||
332 | */ | ||
333 | if ((pin_reg & DB_TMR_OUT_MASK) == 0) { | ||
334 | pin_reg |= 0xf; | ||
335 | pin_reg |= BIT(DB_TMR_OUT_UNIT_OFF); | ||
336 | pin_reg &= ~BIT(DB_TMR_LARGE_OFF); | ||
337 | } | ||
338 | pin_reg |= BIT(INTERRUPT_ENABLE_OFF); | 318 | pin_reg |= BIT(INTERRUPT_ENABLE_OFF); |
339 | pin_reg |= BIT(INTERRUPT_MASK_OFF); | 319 | pin_reg |= BIT(INTERRUPT_MASK_OFF); |
340 | writel(pin_reg, gpio_dev->base + (d->hwirq)*4); | 320 | writel(pin_reg, gpio_dev->base + (d->hwirq)*4); |