diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-04-23 15:32:50 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-04-23 15:32:50 +0000 |
commit | 11cca264ff57ad0b234bd1cd2c9a2366b967feb7 (patch) | |
tree | 7693e7150d5abc9687966cc248bfbd550d356964 /firmware/target/arm/imx31/avic-imx31.c | |
parent | 6cee7579dbdc4d41c4df08c9395cf96c952ebab1 (diff) | |
download | rockbox-11cca264ff57ad0b234bd1cd2c9a2366b967feb7.tar.gz rockbox-11cca264ff57ad0b234bd1cd2c9a2366b967feb7.zip |
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
Diffstat (limited to 'firmware/target/arm/imx31/avic-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/avic-imx31.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/avic-imx31.c b/firmware/target/arm/imx31/avic-imx31.c index 4ba7da4be0..c8bf419bcd 100644 --- a/firmware/target/arm/imx31/avic-imx31.c +++ b/firmware/target/arm/imx31/avic-imx31.c | |||
@@ -128,7 +128,7 @@ void avic_init(void) | |||
128 | : : : "r0"); | 128 | : : : "r0"); |
129 | 129 | ||
130 | /* Enable normal interrupts at all priorities */ | 130 | /* Enable normal interrupts at all priorities */ |
131 | avic->nimask = 0x1f; | 131 | avic->nimask = AVIC_NIL_ENABLE; |
132 | } | 132 | } |
133 | 133 | ||
134 | void avic_set_int_priority(enum IMX31_INT_LIST ints, | 134 | void avic_set_int_priority(enum IMX31_INT_LIST ints, |
@@ -210,3 +210,8 @@ void avic_set_int_type(enum IMX31_INT_LIST ints, enum INT_TYPE intstype) | |||
210 | 210 | ||
211 | restore_interrupt(oldstatus); | 211 | restore_interrupt(oldstatus); |
212 | } | 212 | } |
213 | |||
214 | void avic_set_ni_level(unsigned int level) | ||
215 | { | ||
216 | AVIC_NIMASK = level > 0x1f ? 0x1f : level; | ||
217 | } | ||