aboutsummaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-imx.h
diff options
context:
space:
mode:
authorJingchang Lu <b35083@freescale.com>2013-05-28 17:32:07 +0800
committerLinus Walleij <linus.walleij@linaro.org>2013-06-16 11:56:51 +0200
commitbf5a530971afbe959348af4d84d17636108e6abf (patch)
treea40a88483b1d5210d8401636a83443b4b59a2c82 /drivers/pinctrl/pinctrl-imx.h
parent7bbc87b801fcaa817d828fdaa0ca8c6d223a1347 (diff)
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