public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Joey Oravec <joravec@drewtech.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Interrupts in at91rm9200 u-boot.
Date: Wed, 11 Jul 2007 13:21:36 -0400	[thread overview]
Message-ID: <f733jb$b0v$1@sea.gmane.org> (raw)
In-Reply-To: 406A31B117F2734987636D6CCC93EE3C01CAD749@ehost011-3.exch011.intermedia.net

"Leonid" <Leonid@a-k-a.net> wrote in message 
news:406A31B117F2734987636D6CCC93EE3C01CAD749 at ehost011-3.exch011.intermedia.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 

  reply	other threads:[~2007-07-11 17:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-11  8:20 [U-Boot-Users] [patch] u-boot patch for ez-x5 Mi-hyun.Yoo
2007-07-11 17:08 ` [U-Boot-Users] Interrupts in at91rm9200 u-boot Leonid
2007-07-11 17:21   ` Joey Oravec [this message]
2007-07-12  2:25     ` Leonid
2007-07-12 15:09     ` Frank Mandarino
2007-07-12 15:36       ` Joey Oravec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='f733jb$b0v$1@sea.gmane.org' \
    --to=joravec@drewtech.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox