[U-Boot] How can i add intterrupt for AT91SAM9260EK board

Hi all,
I want to add a interrupt for AT91SAM9260EK board. When I define CONFIG_USE_IRQ in at91sam9260ek.h, then compile, I got error message "error: CONFIG_USE_IRQ not supported". I don't know why put this message here so I commented out.
Then I define CONFIG_STACKSIZE_IRQ, CONFIG_STACKSIZE_FIQ like this, and compile complete. #define CONFIG_STACKSIZE_IRQ 4096 #define CONFIG_STACKSIZE_FIQ 4096
Download u-boot.bin to my board with sam-ba.exe, and reset. When u-boot run to enable_interrupts() in board.c, the board halt.
What should I do? Thank you! BTW: Hardware has been verified is good.
Yours lightrain

zhou yu wrote:
Hi all,
Hi Zhou Yu,
I want to add a interrupt for AT91SAM9260EK board. When I define
CONFIG_USE_IRQ in at91sam9260ek.h, then compile, I got error message "error: CONFIG_USE_IRQ not supported". I don't know why put this message here so I commented out.
It is there BECAUSE the current source for AT91 does NOT support interrupts...
Then I define CONFIG_STACKSIZE_IRQ, CONFIG_STACKSIZE_FIQ like this, and compile complete. #define CONFIG_STACKSIZE_IRQ 4096 #define CONFIG_STACKSIZE_FIQ 4096
Download u-boot.bin to my board with sam-ba.exe, and reset. When u-boot run to enable_interrupts() in board.c, the board halt.
What should I do? Thank you!
It requires more than commenting the message out :)
You have add interrupt handling (write source) to AT91 in general and provide a patch for that.
But first you have to define why you need interrupts (in the u-boot phase) in the first place.
Best Regards Reinhard

Hello,
Am Donnerstag, 29. Juli 2010, 08:25:53 schrieb Reinhard Meyer:
You have add interrupt handling (write source) to AT91 in general and provide a patch for that.
But first you have to define why you need interrupts (in the u-boot phase) in the first place.
One reason would be to workaround errata 44.3.5.1 (RSTC: Reset During SDRAM Accesses) on the AT91SAM9G20 which traps the reset interrupt to shutdown the SDRAM controller properly -.-
Best regards, Alexander

Alexander Stein wrote:
Hello,
Am Donnerstag, 29. Juli 2010, 08:25:53 schrieb Reinhard Meyer:
You have add interrupt handling (write source) to AT91 in general and provide a patch for that.
But first you have to define why you need interrupts (in the u-boot phase) in the first place.
One reason would be to workaround errata 44.3.5.1 (RSTC: Reset During SDRAM Accesses) on the AT91SAM9G20 which traps the reset interrupt to shutdown the SDRAM controller properly -.-
This problem exists in the 9260 and 9G20, I wonder if the 9XE has it, too (its not documented there). However it would only prevent initial boot from external NOR or NAND flash. I am not sure if anyone does that... And -what if- a short brownout triggers a reset, but the SDRAM chips don't reset their state machines?
Then, that particular IRQ would not mean enabling IRQs for other devices in u-boot. I would probably add the code in such a manner (board.c) that it does not need CONFIG_USE_IRQ defined.
Reinhard
participants (3)
-
Alexander Stein
-
Reinhard Meyer
-
zhou yu