aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2018-03-08 14:12:47 -0500
committerGeert Uytterhoeven <geert+renesas@glider.be>2018-03-09 07:55:26 -0500
commitc21a3e30e88bd2084891a2c4cf6278ebc5304dcb (patch)
tree82e9b2ff8ab45915e796ed91fda2a13b1896cb6c
parentc490b28f36ac225799df3f36eca03b4801bd0eec (diff)
pinctrl: sh-pfc: Add PORT_GP_CFG_25() helper macro
They follow the style of the existing PORT_GP_CFG_<n>() macros and will be used by a follow-up patch for the R8A77980 SoC. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
-rw-r--r--drivers/pinctrl/sh-pfc/sh_pfc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index 7253a8cbb0ea..05a3ff81e4a4 100644
--- a/drivers/pinctrl/sh-pfc/sh_pfc.h
+++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
@@ -471,9 +471,13 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info;
471 PORT_GP_CFG_1(bank, 23, fn, sfx, cfg) 471 PORT_GP_CFG_1(bank, 23, fn, sfx, cfg)
472#define PORT_GP_24(bank, fn, sfx) PORT_GP_CFG_24(bank, fn, sfx, 0) 472#define PORT_GP_24(bank, fn, sfx) PORT_GP_CFG_24(bank, fn, sfx, 0)
473 473
474#define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ 474#define PORT_GP_CFG_25(bank, fn, sfx, cfg) \
475 PORT_GP_CFG_24(bank, fn, sfx, cfg), \ 475 PORT_GP_CFG_24(bank, fn, sfx, cfg), \
476 PORT_GP_CFG_1(bank, 24, fn, sfx, cfg), \ 476 PORT_GP_CFG_1(bank, 24, fn, sfx, cfg)
477#define PORT_GP_25(bank, fn, sfx) PORT_GP_CFG_25(bank, fn, sfx, 0)
478
479#define PORT_GP_CFG_26(bank, fn, sfx, cfg) \
480 PORT_GP_CFG_25(bank, fn, sfx, cfg), \
477 PORT_GP_CFG_1(bank, 25, fn, sfx, cfg) 481 PORT_GP_CFG_1(bank, 25, fn, sfx, cfg)
478#define PORT_GP_26(bank, fn, sfx) PORT_GP_CFG_26(bank, fn, sfx, 0) 482#define PORT_GP_26(bank, fn, sfx) PORT_GP_CFG_26(bank, fn, sfx, 0)
479 483