pinctrl: Add functions to select pinctrl from device_node
Instead of requiring a device pointer, add a functions to select
the pinctrl state based on a device node.
The AM33xx cpsw devicetree description has several subdevices with
pinctrl information attached to them. In barebox we do not handle
the subdevices as distinct devices, so the pinctrl is never configured
correctly and the mdio bus subdevice stops working. This patch makes
it possible to configure the pinctrl without having a device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e586a64 commit 6d2f0d57beeda5f380a20f5b31b6f0cd431fe377
@Sascha Hauer Sascha Hauer authored on 27 Nov 2013
Showing 2 changed files
View
drivers/pinctrl/pinctrl.c
View
include/pinctrl.h