Use the device tree voltage regulator information to supply power to the USB
authorkettenis <kettenis@openbsd.org>
Wed, 13 Jul 2016 09:12:46 +0000 (09:12 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 13 Jul 2016 09:12:46 +0000 (09:12 +0000)
commitf10f8bd709738519db206573cc45c71c52347ae0
treefb99160204b1d029ce9d48f613fdd681690be698
parentb71b7f0a6b7f463d1d08ae748637c9ea828825dc
Use the device tree voltage regulator information to supply power to the USB
bus.  For this only supports "fixed" regulators that are controlled through a
gpio.  But this covers all the case we currently handle with board ID specific
code.  Note that the old code did explicitly remove power first on some boards,
which would reset bus-powered devices/hubs on the bus.  The new code doesn't do
this.  If that causes problems we can revisit the issue.  The boards that would
be affected are sabrelight/nitrogen6x and utilite.

The plan is to evolve this into a generic regulator framework that supports
more complex regulator types as well.

ok jsg@, patrick@
sys/arch/armv7/imx/imxehci.c