mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 07:51:38 +00:00
mux: autoprobe if "idle-states" present in device tree
Some platforms need the MUX state to be auto initialized at boot time even if there are no explicit users for the MUX. In these cases, the MUX device tree has "idle-states" property which specifies what state the MUX should be initialized to. So far we were relying on custom u-boot property "u-boot,mux-autoprobe" to autoprobe such MUXes. This patch causes the MUX to autoprobe if it has "idle-states" property in device tree. This should allow us to stop using the custom "u-boot,mux-autoprobe" property. Signed-off-by: Roger Quadros <rogerq@kernel.org>
This commit is contained in:
parent
28760ce864
commit
946bc3bc48
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ int dm_mux_init(void)
|
|||
return ret;
|
||||
}
|
||||
uclass_foreach_dev(dev, uc) {
|
||||
if (dev_read_bool(dev, "u-boot,mux-autoprobe")) {
|
||||
if (dev_read_bool(dev, "u-boot,mux-autoprobe") ||
|
||||
dev_read_bool(dev, "idle-states")) {
|
||||
ret = device_probe(dev);
|
||||
if (ret)
|
||||
log_debug("unable to probe device %s\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue