Fix sprz319 erratum 2.1
authorRichard Watts <rrw@kynesim.co.uk>
Mon, 20 Feb 2012 17:58:26 +0000 (17:58 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 21 Jan 2014 21:31:30 +0000 (23:31 +0200)
commit597266f729424dfe00d1bf3d69c0162b731f022d
treefa586b9ecc647d34c03afa1a92f6f60c6e87e908
parent249197068c299a407a72f3c4cb88e75f3cdf3d6b
Fix sprz319 erratum 2.1

There is an erratum in DM3730 which results in the
EHCI USB PLL (DPLL5) not updating sufficiently frequently; this
leads to USB PHY clock drift and once the clock has drifted far
enough, the PHY's ULPI interface stops responding and USB
drops out. This is manifested on a Beagle xM by having the attached
SMSC9514 report 'Cannot enable port 2. Maybe the USB cable is bad?'
or similar.

The fix is to carefully adjust your DPLL5 settings so as to
keep the PHY clock as close as possible to 120MHz over the long
term; TI SPRZ319e gives a table of such settings and this patch
applies that table to systems with a 13MHz or a 26MHz clock,
thus fixing the issue (inasfar as it can be fixed) on Beagle xM
and Overo Firestorm.

Signed-off-by: Richard Watts <rrw@kynesim.co.uk>
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/clock3xxx.c
arch/arm/mach-omap2/clock3xxx.h
arch/arm/mach-omap2/clock3xxx_data.c
arch/arm/mach-omap2/dpll3xxx.c