]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r276249:
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 03:32:51 +0000 (03:32 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 03:32:51 +0000 (03:32 +0000)
commitd61a04bce69a9899f3f9e09917c407ae61635203
tree1e60b23eb37541c95a5c10996e9f54f67ca222d1
parenta17c7b00c4de5986e68af31379f0fdfff948f110
MFC r276249:

Fix the musb initialization sequence on AM335x.

According to http://e2e.ti.com/support/arm/sitara_arm/f/791/t/210729 the
USB reset pulse has an undocumented duration of 200ns and during this
period the module must not be acessed.

We wait for 100us to take into account for some imprecision of the early
DELAY() loop.

This fixes the eventual 'External Non-Linefetch Abort (S)' that happens at
boot while resetting the musb subsystem.

While here, enable the USB subsystem clock before the first access.

git-svn-id: svn://svn.freebsd.org/base/stable/10@276877 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/arm/ti/am335x/am335x_usbss.c