From 11cca264ff57ad0b234bd1cd2c9a2366b967feb7 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 23 Apr 2010 15:32:50 +0000 Subject: 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 --- firmware/target/arm/imx31/avic-imx31.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/imx31/avic-imx31.c') 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) : : : "r0"); /* Enable normal interrupts at all priorities */ - avic->nimask = 0x1f; + avic->nimask = AVIC_NIL_ENABLE; } 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) restore_interrupt(oldstatus); } + +void avic_set_ni_level(unsigned int level) +{ + AVIC_NIMASK = level > 0x1f ? 0x1f : level; +} -- cgit v1.2.3