* [U-Boot] Interrupts in uboot with ARM AT91SAM9
@ 2009-09-03 6:59 Manuel Sahm
0 siblings, 0 replies; only message in thread
From: Manuel Sahm @ 2009-09-03 6:59 UTC (permalink / raw)
To: u-boot
Hello,
I have to use interrupts in UBoot 1.3.4 - how could I enable them ?
I have an AT91SAM9G20 - in ist header file I enable CONFIG_USE_IRQ und
uncomment the lines#ifdefc CONFIG_USE_IRQ #error .... #endif.
I inserted the lines:
#define CONFIG_STACKSIZE_IRQ (4*1024)
#define CONFIG_STACKSIZE_FIQ (4*1024)
In the file (/lib_amr/interrupts.c) I have to insert a function called
do_irq().
I inserted:
void do_irq(struct pt_regs* pt_regs)
{
printf("interrupt request\n");
show_regs(pt_regs);
bad_mode();
}
When UBOOT starts all seems to be OK, but if I trigger my interrupt -
the system hangs....nothing is printed on screen anmd I can?t enter
anything in the prompt ?
Could you please help me.... ?
I have to trigger an interrupt if the Reset Pin is low to disable the
SDRAM Controller and perform a soft reset (It?s a bug in the
AT91SAM9G20).
Thanks a lot
Manuel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-03 6:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-03 6:59 [U-Boot] Interrupts in uboot with ARM AT91SAM9 Manuel Sahm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox