]> git.dujemihanovic.xyz Git - u-boot.git/commit
mux: autoprobe if "idle-states" present in device tree
authorRoger Quadros <rogerq@kernel.org>
Wed, 31 Jan 2024 13:33:46 +0000 (15:33 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Feb 2024 00:19:53 +0000 (19:19 -0500)
commit946bc3bc48b734f0a36e8802f6bfc41a613500b1
tree8e1d5ab1752f4a241de65655ffbe7fe822b51aca
parent28760ce8640ff6266bd1c1c568a4a231576f3919
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>
drivers/mux/mux-uclass.c