usb: chipidea: imx: allow to configure oc polarity on i.MX25
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 4 Dec 2018 08:31:31 +0000 (09:31 +0100)
committerPeter Chen <peter.chen@nxp.com>
Tue, 11 Dec 2018 01:13:11 +0000 (09:13 +0800)
commit9049fce897edae50835a8f799d4b05f67a538e9a
treef70d34d54a22497f7e187c79f62cc451e463d611
parent1bf4743f641d85f32fe3f3a4d8aa01a387549e3e
usb: chipidea: imx: allow to configure oc polarity on i.MX25

Up to now the polarity of the over current pin was hard coded to active
high. Use the already defined device tree properties to configure polarity
on i.MX25, too. In difference to i.MX6/7 use active high behavior if the
polarity is unspecified to keep compatibility to existing device trees.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/usbmisc_imx.c