u-boot-brain/drivers/core
Peng Fan c3ab985362 dm: core: device: set pinctrl state for pinctrl device
We may have pinmux settings for pinctrl device, like the following
example:
"
&iomuxc {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_hog_1>;
	imx6ul-evk {
		pinctrl_hog_1: hoggrp-1 {
			fsl,pins = <
				MX6UL_PAD_UART1_RTS_B__GPIO1_IO19	0x17059 /* SD1 CD */
				MX6UL_PAD_GPIO1_IO05__USDHC1_VSELECT	0x17059 /* SD1 VSELECT */
				MX6UL_PAD_GPIO1_IO09__GPIO1_IO09        0x17059 /* SD1 RESET */
				MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00	0x80000000
			>;
		};
	[......]
};
"

We should not only select pinctrl state for non pinctrl devices, we
need also to handle pin mux settings such as pinctrl_log for pinctrl
devices.

So at the end of probing process of pinctrl device, select the default
state of pinctrl device.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-04-14 11:51:39 -06:00
..
device-remove.c Revert "dm: Export device_remove_children / device_unbind_children" 2015-11-19 20:27:51 -07:00
device.c dm: core: device: set pinctrl state for pinctrl device 2016-04-14 11:51:39 -06:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
Kconfig spl: dm: Add SPL_DM_SEQ_ALIAS config option 2016-01-13 13:20:02 +01:00
lists.c dm: core: Display the error number when driver binding fails 2016-01-24 12:07:18 +08:00
Makefile dm: core: Add SPL Kconfig for REGMAP and SYSCON 2015-12-01 08:07:22 -07:00
regmap.c dm: Add support for register maps (regmap) 2015-07-21 17:39:23 -06:00
root.c dm: core: Add option to configure an offset for the address translation 2016-01-12 10:19:09 -07:00
simple-bus.c dm: core: make simple-bus compatible to simple-mfd 2016-03-14 15:34:50 -06:00
syscon-uclass.c syscon: Avoid returning a device on failure 2016-03-17 10:27:24 +08:00
uclass.c dm: core: Add uclass_first_device_err() to return a valid device 2016-03-14 15:34:50 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00