pinctrl: imx: add soc specific mux_mode mask and shift property
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 19 May 2017 07:05:43 +0000 (15:05 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 May 2017 09:05:19 +0000 (11:05 +0200)
commit5586ee4191219f74632ad6e527c46d1c3d9cdf3e
treed96338efd6ffa2f91556f2195cb357212e93d557
parenta5cadbbb081cb84a9fdb14391fb461a41f089a0a
pinctrl: imx: add soc specific mux_mode mask and shift property

MX7ULP MUX mode mask and shift bit is different from VF610.
Let's make it a platform specific property for the later easy of
adding MX7ULP support.

One trick in exist code that Vybrid hardcoded the config part
as 0xffff because its mux_config register BIT[15-0] are all configs
part. But it's not true in ULP, so use mux_mask instead to address
the difference.

Cc: Stefan Agner <stefan@agner.ch>
Cc: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c
drivers/pinctrl/freescale/pinctrl-imx.h
drivers/pinctrl/freescale/pinctrl-vf610.c