Skip to contentSkip to conversation

USB OHCI support for PXA270 - no device found

U-Boot-Users stefano babic 1 participant 1 message Aug 18, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I have a PXA270 based board and it is required the support for USB Storage in u-boot. I have merged the USB files for pxa27x from the usb-testing repository (drivers/usb_ohci.c, cpu/pxa/usb.c, usb.h) and the host controller is correctly initialized, reporting no error.

However, no devices are found. After some investigation I have seen that the hub does not provided the power supply to the devices.

In the code the Root Hub Descriptor registers (UHCRHDA/UHCRHDB) are not initialized. I set the UHCRHDA and everything works fine.

It seems to me that the job to enable/disable ports is let to the board initialization code (usb_board_init()), even if I have not found any board setting them.

However, access to the UHCRHDA register is the same for all boards having this CPU - it could be done in the cpu/pxa/usb.c file. There is already a #define (CFG_USB_OHCI_MAX_ROOT_PORTS), that can be used to set the required number of ports for each board.

Has somebody discovered the same problems (hub initialized, but no devices founded) ? How do you manage it ?

Thanks,
stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================