]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: core device tree mapping table parsing support
authorStephen Warren <swarren@wwwdotorg.org>
Fri, 23 Mar 2012 16:29:46 +0000 (10:29 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Apr 2012 20:17:25 +0000 (22:17 +0200)
commit23289e6ecc6df9ea47fd1328a792320fe17dda1d
tree563facdcabc3312a556d55ea22dba7962c3dce82
parent87508b8b2eeea370e305fb9aee5200dde8722acd
pinctrl: core device tree mapping table parsing support

During pinctrl_get(), if the client device has a device tree node, look
for the common pinctrl properties there. If found, parse the referenced
device tree nodes, with the help of the pinctrl drivers, and generate
mapping table entries from them.

During pinctrl_put(), free any results of device tree parsing.

Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Makefile
drivers/pinctrl/core.c
drivers/pinctrl/core.h
drivers/pinctrl/devicetree.c [new file with mode: 0644]
drivers/pinctrl/devicetree.h [new file with mode: 0644]
include/linux/pinctrl/pinctrl.h