diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-01-28 00:43:04 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-02-01 15:02:22 +0100 |
commit | 289440605aeda05b0722c64f8798906dcd0af41a (patch) | |
tree | 39cb9c309c1134e7c10114b5effdd2a1de22b4e6 /firmware/target/arm/imx233/power-imx233.c | |
parent | c18a4e631690250024031be1b306e9003b2300ad (diff) | |
download | rockbox-289440605aeda05b0722c64f8798906dcd0af41a.tar.gz rockbox-289440605aeda05b0722c64f8798906dcd0af41a.zip |
imx233/fuze+: set a few recommended power bits by Freescale, remove some uneeded headers, implement audio path selection for playback and radio
Change-Id: If926ead9b776504a58eb102fcc0e9acadf4f7379
Diffstat (limited to 'firmware/target/arm/imx233/power-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/power-imx233.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.c b/firmware/target/arm/imx233/power-imx233.c index 1d025675c7..479cba4430 100644 --- a/firmware/target/arm/imx233/power-imx233.c +++ b/firmware/target/arm/imx233/power-imx233.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "string.h" | 25 | #include "string.h" |
26 | #include "usb.h" | 26 | #include "usb.h" |
27 | #include "system-target.h" | 27 | #include "system-target.h" |
28 | #include "power-imx233.h" | ||
28 | 29 | ||
29 | struct current_step_bit_t | 30 | struct current_step_bit_t |
30 | { | 31 | { |
@@ -99,6 +100,10 @@ void power_init(void) | |||
99 | __FIELD_SET(HW_POWER_VDDDCTRL, LINREG_OFFSET, 2); | 100 | __FIELD_SET(HW_POWER_VDDDCTRL, LINREG_OFFSET, 2); |
100 | __FIELD_SET(HW_POWER_VDDACTRL, LINREG_OFFSET, 2); | 101 | __FIELD_SET(HW_POWER_VDDACTRL, LINREG_OFFSET, 2); |
101 | __FIELD_SET(HW_POWER_VDDIOCTRL, LINREG_OFFSET, 2); | 102 | __FIELD_SET(HW_POWER_VDDIOCTRL, LINREG_OFFSET, 2); |
103 | /* enable a few bits controlling the DC-DC as recommended by Freescale */ | ||
104 | __REG_SET(HW_POWER_LOOPCTRL) = HW_POWER_LOOPCTRL__TOGGLE_DIF | | ||
105 | HW_POWER_LOOPCTRL__EN_CM_HYST; | ||
106 | __FIELD_SET(HW_POWER_LOOPCTRL, EN_RCSCALE, HW_POWER_LOOPCTRL__EN_RCSCALE__2X); | ||
102 | } | 107 | } |
103 | 108 | ||
104 | void power_off(void) | 109 | void power_off(void) |