From: Geert Uytterhoeven Date: Tue, 20 Oct 2015 17:33:00 +0000 (+0200) Subject: pinctrl: sh-pfc: Add PINMUX_SINGLE() X-Git-Tag: v4.5-rc1~154^2~40^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dcd803bebcfc0fae9c2d3d5063210e9225fe4b1b;p=karo-tx-linux.git pinctrl: sh-pfc: Add PINMUX_SINGLE() Add a macro to describe a pinmux configuration for a single-function pin. Signed-off-by: Geert Uytterhoeven Acked-by: Kuninori Morimoto Acked-by: Laurent Pinchart --- diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index 7b373d43d981..fb2de5297609 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -198,6 +198,14 @@ struct sh_pfc_soc_info { #define PINMUX_IPSR_MSEL(ipsr, fn, ms) \ PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn) +/* + * Describe a pinmux configuration for a single-function pin with GPIO + * capability. + * - fn: Function name + */ +#define PINMUX_SINGLE(fn) \ + PINMUX_DATA(fn##_MARK, FN_##fn) + /* * GP port style (32 ports banks) */