Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
START = start.o
COBJS-y += cpu.o
-COBJS-y += interrupts.o
ifndef CONFIG_USE_IRQ
COBJS-y += timer.o
+else
+COBJS-y += interrupts.o
endif
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
#include <common.h>
#include <asm/arch/ixp425.h>
-
-#ifdef CONFIG_USE_IRQ
#include <asm/proc-armv/ptrace.h>
/*
timestamp = 0;
}
-#endif /* #ifdef CONFIG_USE_IRQ */
-
-#ifdef CONFIG_USE_IRQ
void do_irq (struct pt_regs *pt_regs)
{
int irq = next_irq();
IRQ_HANDLER[irq].m_func(IRQ_HANDLER[irq].m_data);
}
-#endif
int interrupt_init (void)
{
-#ifdef CONFIG_USE_IRQ
int i;
/* install default interrupt handlers */
/* enable timer irq */
*IXP425_ICMR = (1 << IXP425_TIMER_2_IRQ);
-#endif
return (0);
}