]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: dts: imx6q: add quirky select input for USB_OTG_ID
authorShawn Guo <shawn.guo@linaro.org>
Thu, 1 Aug 2013 04:22:04 +0000 (12:22 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 26 Sep 2013 05:01:37 +0000 (13:01 +0800)
commitd1d67d71d5e86e0c401bb91f91c6a44b8f408b1d
tree630ec117b7f539f91aeb4634eacd2de2610b82ae
parent4191c3401179a3c068fccd5ff84401a7e3d596e3
ARM: dts: imx6q: add quirky select input for USB_OTG_ID

For some reason, the select input of pin function USB_OTG_ID is not
implemented via a regular select input register but using the bit
USB_OTG_ID_ SEL (shift 13) of IOMUXC_GPR1 register (offset 0x4).

As per the workaround for such quirk implemented in pinctrl driver,
we need to compose the input_val cell as below.

31     23      15      7        0
| 0xff | shift | width | select |

Thus, we have 0xff0d0100 for MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID and
0xff0d0101 for MX6QDL_PAD_GPIO_1__USB_OTG_ID in input_val cell.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/imx6q-pinfunc.h