U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] How can i add intterrupt for AT91SAM9260EK board
@ 2010-07-29  6:19 zhou yu
  2010-07-29  6:25 ` Reinhard Meyer
  0 siblings, 1 reply; 4+ messages in thread
From: zhou yu @ 2010-07-29  6:19 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] How can i add intterrupt for AT91SAM9260EK board
  2010-07-29  6:19 [U-Boot] How can i add intterrupt for AT91SAM9260EK board zhou yu
@ 2010-07-29  6:25 ` Reinhard Meyer
  2010-07-29  6:38   ` Alexander Stein
  0 siblings, 1 reply; 4+ messages in thread
From: Reinhard Meyer @ 2010-07-29  6:25 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] How can i add intterrupt for AT91SAM9260EK board
  2010-07-29  6:25 ` Reinhard Meyer
@ 2010-07-29  6:38   ` Alexander Stein
  2010-07-29  7:19     ` Reinhard Meyer
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Stein @ 2010-07-29  6:38 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] How can i add intterrupt for AT91SAM9260EK board
  2010-07-29  6:38   ` Alexander Stein
@ 2010-07-29  7:19     ` Reinhard Meyer
  0 siblings, 0 replies; 4+ messages in thread
From: Reinhard Meyer @ 2010-07-29  7:19 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-29  7:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29  6:19 [U-Boot] How can i add intterrupt for AT91SAM9260EK board zhou yu
2010-07-29  6:25 ` Reinhard Meyer
2010-07-29  6:38   ` Alexander Stein
2010-07-29  7:19     ` Reinhard Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox