public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* 1710 and USB host
@ 2006-05-01 17:54 Kevin Hilman
  2006-05-03  5:11 ` David Brownell
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2006-05-01 17:54 UTC (permalink / raw)
  To: linux-omap-open-source

Anyone else having success using the 1710 in USB host mode?  Using the latest 
git kernel, I'm getting the boot messages below.  I have a USB key plugged in 
and it's lighting up, so presumably it's getting powered properly.

Maybe the jumpers aren't set quite right, I don't quite grok the comments 
around the 'hmc_mode' value in. board-h3.c.  In any case, my SW1501 settings 
are 1=on, and the rest are off.

Thanks for any pointers,

Kevin

isp1301_omap 0-002d: chiprev 2.00, driver 24 August 2004
MUX: initialized N21_1710_GPIO14
usbmon: debugfs is not available
isp1301_omap 0-002d: A-Host sessions ok
ohci ohci: OMAP OHCI
ohci ohci: new USB bus registered, assigned bus number 1
ohci ohci: irq 38, io mem 0xfffba000
ohci ohci: init err (00000000 0000)
ohci ohci: can't start
ohci ohci: startup error -75
ohci ohci: USB bus 1 deregistered
ohci: probe of ohci failed with error -75

^ permalink raw reply	[flat|nested] 4+ messages in thread
* 1710 and USB Host
@ 2006-08-29 14:03 Stefano Babic
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2006-08-29 14:03 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,

sometimes ago someone has already reported troubles to get USB Host working on 
OMAP 1710. I have now on a custom board the same problem and the same error 
messages that were previously reported:

ohci ohci: OMAP OHCI
ohci ohci: new USB bus registered, assigned bus number 1
ohci ohci: irq 38, io mem 0xfffba000
ohci ohci: init err (00000000 0000)
ohci ohci: can't start
ohci ohci: startup error -75
ohci ohci: USB bus 1 deregistered
ohci: probe of ohci failed with error -75

I have seen that the ohci-omap module cannot access the USB registers. A dump 
of all registers reports only zeros.

After some investigation I have found a couple of problems in the function 
otg_init (arch/arm/plat-omap/usb.c). At the start of the function it is still 
possible to access the registers, at the end even the revision register 
(0xFFFBA000) is zero. And this is not possible...

I found that the behavior is related to the values of two registers 
OTG_SYSCON_1 and OTG_SYSCON_2. 
In OTG_SYSCON_2 the bit UHOST_EN is set to zero and this disables the Host 
controller. The behavior of the processor seems correct because according to 
the manual it is not possible to access the USB memory area if UHOST_EN is 
disabled.

A second problem is related to OTG_SYSCON_1. In this register the bit 
OTG_IDLE_EN is set and this produces the same effect disallowing memory 
accesses.

I changed the two registers setting UHOST_EN and disabling OTG_IDLE_EN and now 
it is working. A USB stick is detected by the controller and I can read the 
filesystem, so it seems this is the solution.

Has someone seen the same problems ? In this case, how do you fixed the 
problem ? Do you agree with my conclusions ?

It seems this is a problem related only to the OMAP 1710 and not affecting 
other processors, or it didn't ever worked before. 

Thanks,
stefano

-- 
stefano <stefano.babic@babic.homelinux.org>
GPG Key: 0x55814DDE 
Fingerprint 4E85 2A66 4CBA 497A 2A7B D3BF 5973 F216 5581 4DDE

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-29 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01 17:54 1710 and USB host Kevin Hilman
2006-05-03  5:11 ` David Brownell
2006-07-10 15:02   ` ml
  -- strict thread matches above, loose matches on Subject: below --
2006-08-29 14:03 1710 and USB Host Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox