usb: musb: dsps: Add the sw_babble_control() and Enable for newer silicon
authorGeorge Cherian <george.cherian@ti.com>
Wed, 16 Jul 2014 12:52:12 +0000 (18:22 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 15:00:02 +0000 (10:00 -0500)
commit371254ce462fcea2d09ffa30e20f01538b833080
tree8478c839d30fcef3cdb90864d03450be6b38622c
parentd871c622e202efc663f953a4fcbd2cba6a28a24f
usb: musb: dsps: Add the sw_babble_control() and Enable for newer silicon

Add sw_babble_control() logic to differentiate between transient
babble and real babble condition. Also add the SW babble control
register definitions.

Babble control register logic is implemented in the latest
revision of AM335x.

Find whether we are running on newer silicon. The babble control
register reads 0x4 by default in newer silicon as opposed to 0
in old versions of AM335x. Based on this enable the sw babble
control logic.

Signed-off-by: George Cherian <george.cherian@ti.com>
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c
drivers/usb/musb/musb_regs.h