summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-18 21:58:18 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-18 21:58:18 +0000
commit0b3347e47f8b6a1d81b4d6cf83178a017db5b1f0 (patch)
tree2031d4feb8cfdbec7467192169eb0f1359a99811 /firmware/target/arm
parent359826aa940bf34c05f7a7433fed7a8b0b26e762 (diff)
imx233/fuze+: fix typo and add dac dma/error interrupts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30792 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c6
-rw-r--r--firmware/target/arm/imx233/system-target.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 7b8e0c858e..34a8a8e326 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -66,6 +66,8 @@ default_interrupt(INT_LRADC_CH4);
default_interrupt(INT_LRADC_CH5);
default_interrupt(INT_LRADC_CH6);
default_interrupt(INT_LRADC_CH7);
+default_interrupt(INT_DAC_DMA);
+default_interrupt(INT_DAC_ERROR);
typedef void (*isr_t)(void);
@@ -96,6 +98,8 @@ static isr_t isr_table[INT_SRC_NR_SOURCES] =
[INT_SRC_LRADC_CHx(5)] = INT_LRADC_CH5,
[INT_SRC_LRADC_CHx(6)] = INT_LRADC_CH6,
[INT_SRC_LRADC_CHx(7)] = INT_LRADC_CH7,
+ [INT_SRC_DAC_DMA] = INT_DAC_DMA,
+ [INT_SRC_DAC_ERROR] = INT_DAC_ERROR,
};
static void UIRQ(void)
@@ -108,7 +112,7 @@ void irq_handler(void)
{
HW_ICOLL_VECTOR = HW_ICOLL_VECTOR; /* notify icoll that we entered ISR */
(*(isr_t *)HW_ICOLL_VECTOR)();
- /* acknowledge completion of IRQ (all use the same priority 0 */
+ /* acknowledge completion of IRQ (all use the same priority 0) */
HW_ICOLL_LEVELACK = HW_ICOLL_LEVELACK__LEVEL0;
}
diff --git a/firmware/target/arm/imx233/system-target.h b/firmware/target/arm/imx233/system-target.h
index 29c175175b..87063510ad 100644
--- a/firmware/target/arm/imx233/system-target.h
+++ b/firmware/target/arm/imx233/system-target.h
@@ -63,6 +63,8 @@
#define INT_SRC_SSP2_ERROR 2
#define INT_SRC_VDD5V 3
+#define INT_SRC_DAC_DMA 5
+#define INT_SRC_DAC_ERROR 6
#define INT_SRC_USB_CTRL 11
#define INT_SRC_SSP1_DMA 14
#define INT_SRC_SSP1_ERROR 15