[U-Boot] USB host on the AT91sam9g45
Marcel
korgull at home.nl
Sat Oct 2 01:53:41 CEST 2010
Hi,
Sorry to top post, but I think it is fine in this case (no replies on my own
message yet).
I have got USB host working on the AT91sam9g45.
The board I'm using is from in-circuit ( http://www.ic-
board.de/product_info.php?info=p125_STK-ADB1000-SAM9G45-OEM-5inchTFT.html ).
In specific I'm using their ICnova SAM9G45 OEM board and also tested using the
ADB1000 main board.
It works with all brands of mass storage devices I have in house, so that's
great. It does however seem to operate only at full speed (not in Linux
though) and although that's not a very big issue, I wonder if there's a reason
for it (I don't see EHCI being configured anywhere yet). This is what the
device tree looks like :
Device Tree:
1 Hub (12 Mb/s, 0mA)
| OHCI Root Hub
|
+-2 Mass Storage (12 Mb/s, 100mA)
CBM Flash Disk 25112500B9281506
Since the Hub shows OHCI, I wonder if I need to enable something to allow EHCI
or whether it's a HUB implementation issue.
I tried CONFIG_USB_EHCI, but no change.
Any comment on this ?
Can it work in high speed mode or has this not been tested yet ?
Unfortunately I changed a few things along the way and tried many times to
just "make" without success. Finally after a "make clean" and "make" things
worked fine. So, I'll need to clean up things before I can commit a patch and
know why initially it didn't work. That shouldn't be too difficult though from a
working state.
My goal is to get USB device working too (actually my main goal) and commit
the whole thing after I have that working as well. The main issue is however
that I have just a couple of days left to get it done this month (otherwise I
will continue next month).
I do have all USB device functions implemented but somehow have no response
(hooked up a USB analyser and see absolutely zero).
I enabled CDC and it seems to run through all functions just fine. It does look
like I'm close to getting it to work, but my guess is I miss some very basic
setting of the G45. If someone has an idea, please let me know as I think I
may be looking for the solution for a while otherwise (not an issue but a fact
I guess ;-) ).
Best regards,
Marcel
> Hi,
>
> I wonder if anyone has used USB host on the AT91sam9g45.
>
> In current u-boot-usb, USB host can be configured, but I can't make it
> work. I used the configuration from the AT91sam9m10g45 regarding the USB
> host part.
>
> It does the following (usb storage device is attached)
>
> Sam9> usb start
> (Re)start USB...
> USB: scanning bus for devices... 1 USB Device(s) found
> scanning bus for storage devices... 0 Storage Device(s) found
> Sam9> usb info
> 1: Hub, USB Revision 1.10
> - OHCI Root Hub
> - Class: Hub
> - PacketSize: 8 Configurations: 1
> - Vendor: 0x0000 Product 0x0000 Version 0.0
> Configuration: 1
> - Interfaces: 1 Self Powered 0mA
> Interface: 0
> - Alternate Setting 0, Endpoints: 1
> - Class Hub
> - Endpoint 1 In Interrupt MaxPacket 2 Interval 255ms
>
> Below are the related config items :
>
> #define CONFIG_ARM926EJS 1 /* This is an ARM926EJS Core */
> #define CONFIG_ICNOVA_ARM9 1 /* It's an ICnova SAM9G45 OEM boardR */
> #define CONFIG_AT91SAM9G45 1 /* It's an Atmel AT91SAM9G45 SoC */
> #define CONFIG_AT91_LEGACY 1 /* needed for some defines */
> #define CONFIG_ARCH_CPU_INIT
> #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
>
> /* USB */
> #define CONFIG_USB_ATMEL 1
> #define CONFIG_USB_OHCI_NEW 1
> #define CONFIG_SYS_USB_OHCI_CPU_INIT 1
> #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00700000
> #define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9g45"
> #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
> #define CONFIG_DOS_PARTITION 1
> #define CONFIG_USB_STORAGE 1
>
> Any ideas what I can check ?
>
> Best regards,
> Marcel
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
More information about the U-Boot
mailing list