summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-imx.h
diff options
context:
space:
mode:
authorJingchang Lu <b35083@freescale.com>2013-05-28 11:32:07 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-06-16 11:56:51 +0200
commitbf5a530971afbe959348af4d84d17636108e6abf (patch)
treea40a88483b1d5210d8401636a83443b4b59a2c82 /drivers/pinctrl/pinctrl-imx.h
parentDocumentation/pinctrl.txt: fix typo "with with" (diff)
downloadlinux-bf5a530971afbe959348af4d84d17636108e6abf.tar.xz
linux-bf5a530971afbe959348af4d84d17636108e6abf.zip
pinctrl: imx: add VF610 support to imx pinctrl framework
On some platforms such as VF610, offset of mux and pad ctrl register may be zero, and the mux_mode and config_val are in one 32-bit register. This patch adds support to imx core pinctrl framework to handle these cases. Signed-off-by: Jingchang Lu <b35083@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx.h')
-rw-r--r--drivers/pinctrl/pinctrl-imx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-imx.h b/drivers/pinctrl/pinctrl-imx.h
index 607ef5497552..bcedd991c9f3 100644
--- a/drivers/pinctrl/pinctrl-imx.h
+++ b/drivers/pinctrl/pinctrl-imx.h
@@ -74,8 +74,12 @@ struct imx_pinctrl_soc_info {
unsigned int ngroups;
struct imx_pmx_func *functions;
unsigned int nfunctions;
+ unsigned int flags;
};
+#define ZERO_OFFSET_VALID 0x1
+#define SHARE_MUX_CONF_REG 0x2
+
#define NO_MUX 0x0
#define NO_PAD 0x0