Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340116
b: refs/heads/master
c: 22b9ba0
h: refs/heads/master
v: v3
  • Loading branch information
Tomasz Figa authored and Linus Walleij committed Oct 15, 2012
1 parent db2f4ab commit d73ab1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a04b07c0fc4d63e3fb9fea84d48a177ac5bd9164
refs/heads/master: 22b9ba033bb4401e4cceb69c9e1af74a4631dd74
11 changes: 11 additions & 0 deletions trunk/drivers/pinctrl/pinctrl-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ static int exynos_wkup_irq_set_type(struct irq_data *irqd, unsigned int type)
unsigned long reg_con = d->ctrl->weint_con + bank->eint_offset;
unsigned long shift = EXYNOS_EINT_CON_LEN * pin;
unsigned long con, trig_type;
unsigned int mask;

switch (type) {
case IRQ_TYPE_EDGE_RISING:
Expand Down Expand Up @@ -288,6 +289,16 @@ static int exynos_wkup_irq_set_type(struct irq_data *irqd, unsigned int type)
con &= ~(EXYNOS_EINT_CON_MASK << shift);
con |= trig_type << shift;
writel(con, d->virt_base + reg_con);

reg_con = bank->pctl_offset;
shift = pin * bank->func_width;
mask = (1 << bank->func_width) - 1;

con = readl(d->virt_base + reg_con);
con &= ~(mask << shift);
con |= EXYNOS_EINT_FUNC << shift;
writel(con, d->virt_base + reg_con);

return 0;
}

Expand Down

0 comments on commit d73ab1d

Please sign in to comment.