Tech Support > Computer Hardware > Microprocessors > PXA270 USB host port 2
PXA270 USB host port 2
Posted by ghiggia on June 16th, 2008


I have a custom board with pxa270 with a linux 2.6.18 kernel. USB host
port 1 works correctly,
then I want to use USB host port 2. I configured UHCHR and UP2OCR as
follows, but port 2 don't work.

UP2OCR = UP2OCR_HXS | UP2OCR_HXOE | UP2OCR_DPPDE | UP2OCR_DMPDE
|
UP2OCR_CPVEN | UP2OCR_CPVPE;
UHCHR = (UHCHR | UHCHR_PCPL | UHCHR_PSPL)
&
~(UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSEP3 | UHCHR_SSE);

The system doesn't see an usb key plugged to USB host port 2, and /sys/
class/usb_host/usb_host1/registers is as follows:

bus platform, device pxa27x-ohci
PXA27x OHCI
ohci_hcd version 2005 April 22
OHCI 1.0, NO legacy support registers
control 0x083 HCFS=operational CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000064 RHSC FNO SF
intrenable 0x8000001a MIE UE RD WDH
hcca frame 0xfe10
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x80001f1c FRT FR=0x1f1c
periodicstart 0x2a2f
lsthresh 0x0628
roothub.a 04001202 POTPGT=4 NOCP NPS NDP=2(3)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000100 PPS
roothub.portstatus [1] 0x00000100 PPS
roothub.portstatus [2] 0x00000100 PPS

There is another configuration to enable USB host port 2 or it could
be an hardware problem?
The standard linux pxa27x ohci driver is able to manage both USB host
port 1 and port 2?

Thanks in advance, bye.