summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/power-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-01-28 00:43:04 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-02-01 15:02:22 +0100
commit289440605aeda05b0722c64f8798906dcd0af41a (patch)
tree39cb9c309c1134e7c10114b5effdd2a1de22b4e6 /firmware/target/arm/imx233/power-imx233.c
parentc18a4e631690250024031be1b306e9003b2300ad (diff)
downloadrockbox-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.c5
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
29struct current_step_bit_t 30struct 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
104void power_off(void) 109void power_off(void)