USB: otg: add otg id notifier utiltiies

Add a otg_id notifier to allow multiple drivers to cooperate to
determine the type of cable connected to a USB connector without
requiring direct calls between the drivers.

Change-Id: Ic5675f1a89daf85b17336765de24e4bdb6df6348
Signed-off-by: Colin Cross <ccross@android.com>
usb: otg: add proxy_wait handler to otg_id

Some otg_id handlers can detect what's connected but can't detect a change.
This allows that handler to pass off the waiting for ID change to a proxy.

Change-Id: Ib38b750c3da4bffc35e37b620ecee37c5d64d31f
Signed-off-by: Erik Gilling <konkers@android.com>
usb: otg_id: add suspend/resume interface

It is possible that while one driver has already suspended,
another driver calls otg_id_notify() because it has not yet been
suspended. It would then be possible for the suspended driver's
detect callback to be called. This is undesirable.

Introduce new otg_id_suspend/otg_id_resume functions that
keep a suspended count, and if a notification happens while
someone is suspended, that notification is deferred until
all the drivers are resumed. If the notification happens before
the last driver is suspended, that suspend will be aborted
and once the final driver resumes through otg_id_resume, the
notification will be delivered.

Change-Id: I32fd32bec65e366e5f97a25c15255d94773b85b3
Signed-off-by: Dima Zavin <dima@android.com>
input: misc: add missing header

Add modules header to add module macros

Signed-off-by: Israel Cepeda <israel4c@gmail.com>
misc: update fsa9480 driver and platform data

Update driver to android

Signed-off-by: Israel Cepeda <israel4c@gmail.com>
tuna: fix usb connector

Update usb structures for otg in kernel 3.4

Signed-off-by: Israel Cepeda <israel4c@gmail.com>
power: pda: fix transceiver error

transceiver is not used anymore, update to use usb phy

Signed-off-by: Israel Cepeda <israel4c@gmail.com>
usb: otg: fix transceiver error

Transceiver is no longer used, use usb phy instead

Signed-off-by: Israel Cepeda <israel4c@gmail.com>