From 0b3347e47f8b6a1d81b4d6cf83178a017db5b1f0 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 18 Oct 2011 21:58:18 +0000 Subject: 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 --- firmware/target/arm/imx233/system-imx233.c | 6 +++++- firmware/target/arm/imx233/system-target.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm') 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 -- cgit v1.2.3