usb: chipidea: imx: configure imx for ULPI phy
authorFabien Lahoudere <fabien.lahoudere@collabora.co.uk>
Mon, 26 Sep 2016 11:14:19 +0000 (13:14 +0200)
committerPeter Chen <peter.chen@nxp.com>
Mon, 14 Nov 2016 02:03:40 +0000 (10:03 +0800)
commitd13631bb15cebe8eba50777cb96e2223e5485c23
tree79ad2f4a9dd82b7dd7affca5ae6a97adc6e6dca2
parent34445fb4333f47674e988b98a587195ffa84beae
usb: chipidea: imx: configure imx for ULPI phy

In order to use ULPI phy with usb host 2 and 3, we need to configure
controller register to enable ULPI features.

Each USB controller have different behaviour, so in order to avoid to have
several "swicth(data->index)" and lock/unlock, we prefer to get the index
switch and then test for features if they exist for this index.
This patch also remove useless test of reg and val. Those two values cannot
be NULL.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/ci_hdrc_imx.h
drivers/usb/chipidea/usbmisc_imx.c