sh-pfc: add macro to define pinmux without function
authorNiklas Söderlund <niso@kth.se>
Sun, 18 Jan 2015 12:20:01 +0000 (13:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Jan 2015 07:47:53 +0000 (08:47 +0100)
Used to define pinmux configurations where the pinmux function have no
representation in the configuration registers but instead solely depends
on a group selection.

Signed-off-by: Niklas Söderlund <niso@kth.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/sh_pfc.h

index 5b7283182c1e6c720389acadfce408ad82b619f1..c83728626906c16c586954aa866aafa94ecf576b 100644 (file)
@@ -167,6 +167,8 @@ struct sh_pfc_soc_info {
        PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr)
 #define PINMUX_IPSR_NOGM(ispr, fn, ms)                                 \
        PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ms)
+#define PINMUX_IPSR_NOFN(ipsr, fn, ms)                                 \
+       PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##ms)
 #define PINMUX_IPSR_MSEL(ipsr, fn, ms)                                 \
        PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr, FN_##ms)
 #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms)                          \