imx233: fix regulator voltage setting + always enable DCDC mode
commite2da3f47d335dad87362354c36ea7e27bc26676b
authorAmaury Pouly <amaury.pouly@gmail.com>
Wed, 26 Dec 2012 00:08:56 +0000 (26 01:08 +0100)
committerAmaury Pouly <amaury.pouly@gmail.com>
Wed, 26 Dec 2012 00:17:28 +0000 (26 01:17 +0100)
tree9582166e73d0cb05eaff08c2b0208acb157139e0
parentca83b558dffbdc91e7ada0e1c48c208b945e1385
imx233: fix regulator voltage setting + always enable DCDC mode

Make sure DCDC is running at boot (it is disabled by default when
5V is present and we don't want to rely on the bootloader to
change this).
When changing the voltage on a regulator, it usually takes 2ms for
the voltage to stabilize. In DCDC mode, there is an irq to notify
about the event so use it ! This is especially important when
changing cpu frequency because increasing the cpu freq while the
voltage is rising is unreliable.

Change-Id: Icfe9ef3ee90156d1e17da0820d9041859f7f3bca
firmware/target/arm/imx233/power-imx233.c
firmware/target/arm/imx233/power-imx233.h