From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reinhard Meyer Date: Thu, 29 Jul 2010 08:25:53 +0200 Subject: [U-Boot] How can i add intterrupt for AT91SAM9260EK board In-Reply-To: References: Message-ID: <4C511EF1.3070108@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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