]> Pileus Git - ~andy/linux/commit
usb: musb: dsps: control module handling (quirk)
authorSanthapuri, Damodar <damodar.santhapuri@ti.com>
Fri, 2 Nov 2012 16:32:53 +0000 (22:02 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 6 Nov 2012 13:03:02 +0000 (15:03 +0200)
commitc68bb4c679e68b2814bc5de812665fbd37f8a9b1
tree4e024c8efe2affb784f0803e6d06252b2338d668
parent3e594b18f1871a758812aa5e705873012cabf0e8
usb: musb: dsps: control module handling (quirk)

am335x uses nop transceiver driver and need to enable builtin phy
by writing into usb_ctrl register available in system control
module register space. This is being added at musb glue driver
layer until a separate system control module driver is available.

Proper solution is to make use of control module driver, but it is
not expected to be ready soon.

Other options available are providing control module register space
as memory resource via DT or using omap hwmod.

DT approach has been rejected by Rob Herring, while resources are
being moved from hwmod to DT. And both of the above approaches
require that control module registers be configured in wrapper
itself requring a quirk in driver as well as DT or hwmod.

Here another option is used, providing driver with control module
register physical address. Even though this a hack, there is no other
option left till control module driver is ready. As of now only
am335x is using dsps wrapper, and so driver is made aware of am335x
control module physical address.

Please note that this is a temporary arrangment till omap control
module driver is available.

[afzal@ti.com: limit quirk to dsps wrapper]

Signed-off-by: Santhapuri, Damodar <damodar.santhapuri@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c