imx233: move power init to system init

Do low level power init in system_init(). This can be needed
since imx233 must be able to frequecy scale atfer system_init()
and kernel_init() and this is only possible if power system was
initialised.

Change-Id: I27c66ec0dccd60bda26a45be24683c0bfe72c6da
This commit is contained in:
Amaury Pouly 2012-12-29 01:33:55 +01:00
parent f7132e4044
commit 2b1159dda0
3 changed files with 18 additions and 5 deletions

View file

@ -81,7 +81,7 @@ void INT_VDD5V(void)
}
}
void power_init(void)
void imx233_power_init(void)
{
/* setup vbusvalid parameters: set threshold to 4v and power up comparators */
__REG_CLR(HW_POWER_5VCTRL) = HW_POWER_5VCTRL__VBUSVALID_TRSH_BM;
@ -110,6 +110,10 @@ void power_init(void)
__FIELD_SET(HW_POWER_LOOPCTRL, EN_RCSCALE, HW_POWER_LOOPCTRL__EN_RCSCALE__2X);
}
void power_init(void)
{
}
void power_off(void)
{
/* wait a bit, useful for the user to stop touching anything */