mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
imx233: rework power management
The current code was spreaded over power and powermgmt which made it behave strangely, especially since there are relationships between power management and frequency scaling. The new code makes sure power management is initialised before frequency scaling starts. It also makes sure to start from a known state, thus fixing potential issue when the bootloader stops in a trickle state where DCDC is improperly configured. Change-Id: Ibded2e590e108f6c98daa52d2cf1bd28763c8923
This commit is contained in:
parent
659febc749
commit
3afcb53fb9
5 changed files with 32 additions and 27 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include "backlight-target.h"
|
||||
#include "button.h"
|
||||
#include "fmradio_i2c.h"
|
||||
#include "powermgmt.h"
|
||||
|
||||
void imx233_chip_reset(void)
|
||||
{
|
||||
|
|
@ -132,6 +133,7 @@ void system_init(void)
|
|||
imx233_lradc_init();
|
||||
imx233_power_init();
|
||||
imx233_i2c_init();
|
||||
imx233_powermgmt_init();
|
||||
|
||||
/* make sure auto-slow is disable now, we don't know at which frequency we
|
||||
* are running and auto-slow could violate constraints on {xbus,hbus} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue