mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
i.MX31/Gigabeat S: Implement frequency and voltage scaling-- 1.6V for 528MHz, and 1.35V for 264MHz and 132MHz. Keep DPTC overdrive ( > 400MHz) voltage scaling off for now because of uncertainties. Simplify the (working) mess later.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25699 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6cee7579db
commit
11cca264ff
20 changed files with 1311 additions and 125 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "backlight-target.h"
|
||||
#include "avic-imx31.h"
|
||||
#include "mc13783.h"
|
||||
#include "dvfs_dptc-imx31.h"
|
||||
#if CONFIG_TUNER
|
||||
#include "fmradio_i2c.h"
|
||||
#endif
|
||||
|
|
@ -121,6 +122,9 @@ bool tuner_powered(void)
|
|||
|
||||
void power_off(void)
|
||||
{
|
||||
/* Turn off voltage and frequency scaling */
|
||||
dvfs_dptc_stop();
|
||||
|
||||
/* Cut backlight */
|
||||
_backlight_off();
|
||||
|
||||
|
|
@ -131,9 +135,7 @@ void power_off(void)
|
|||
mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI);
|
||||
|
||||
/* Wait for power cut */
|
||||
disable_interrupt(IRQ_FIQ_STATUS);
|
||||
|
||||
while (1);
|
||||
system_halt();
|
||||
}
|
||||
|
||||
void power_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue