pinctrl: at91: Add set_multiple GPIO chip feature
authorAlexander Stein <alexanders83@web.de>
Thu, 2 Apr 2015 09:55:49 +0000 (11:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 May 2015 12:45:18 +0000 (14:45 +0200)
commit1893b2cfad0829f8d93f6d88bd396d353ec024c3
treecf4212a1f8f3621d9a14cd167c30b3c0301db1bb
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
pinctrl: at91: Add set_multiple GPIO chip feature

This adds the callback for set_multiple.

As this controller has a separate set and clear register, we
can't write directly to PIO_ODSR as this would required a cached
variable and would race with at91_gpio_set.

So build masks for the PIO_SODR and PIO_CODR registers and
write them together.

Signed-off-by: Alexander Stein <alexanders83@web.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c