
Thank you for your reply, may I get hold on your code please?
Thanks,
Leonid.
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Joey Oravec Sent: Wednesday, July 11, 2007 10:22 AM To: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Interrupts in at91rm9200 u-boot.
"Leonid" Leonid@a-k-a.net wrote in message news:406A31B117F2734987636D6CCC93EE3C01CAD749@ehost011-3.exch011.interme dia.net...
I'm trying to implement simple USB device in u-boot for at91rm9200 and
as a first step I want to see that I can work with interrupts there. I
added temporary device initialization code to usb_lowlevel_init():
I used the USB Device port as a console for my at91sam9261, acting as a usbser.sys compatible usb-to-serial port. It was a lot easier to use a polling interface because there was some Atmel sample code available.
During early startup, I add the usb driver with device_register(). Each function polls the status register, which works out fine since uboot calls tstc constantly to look for a new character or putc to display something. Finally I added a check for the device sense (power) to skip the initialization completely if we know it's not connected to anything.
-joey
------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users