OSDN Git Service

pinctrl: sirf: add power management support for atlas7
authorWei Chen <Wei.Chen@csr.com>
Mon, 27 Jul 2015 11:57:25 +0000 (11:57 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Jul 2015 12:09:59 +0000 (14:09 +0200)
commit48356aa79ccb3df36f654d8f622256052bb2bb65
tree905885eeaba711aa0adde45792bbaae9edf777f4
parent1051fade4b1fac0de19478b33383b25bd1d24d10
pinctrl: sirf: add power management support for atlas7

We had not implemented the pm interface of atlas7 pinctrl
and gpio drivers. So when system resumes from sleep, all
pin configuration and gpio status will be lost.

Now, we implement these interfaces to support pm.

At the same time, this patch also drops a lot of if-else
by look-up table for getting and setting pull.

Signed-off-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-atlas7.c