Commit 35ad4271 authored by Laurent Pinchart's avatar Laurent Pinchart

sh-pfc: Use GPIO_FN instead of PINMUX_GPIO where possible

The GPIO_FN macro expands to the PINMUX_GPIO macro. The regular
expression to 'unexpand' PINMUX_GPIO to GPIO_FN is

s/\tPINMUX_GPIO(GPIO_FN_\([A-Z0-9_]*\),[ \t]*\1_MARK)/\tGPIO_FN(\1)/

This consolidates SoC-specific PFC information to use the same macros
for all SoCs.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d785fdb5
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -386,68 +386,68 @@ static struct pinmux_gpio shx3_pinmux_gpios[] = { ...@@ -386,68 +386,68 @@ static struct pinmux_gpio shx3_pinmux_gpios[] = {
PINMUX_GPIO(GPIO_PH0, PH0_DATA), PINMUX_GPIO(GPIO_PH0, PH0_DATA),
/* FN */ /* FN */
PINMUX_GPIO(GPIO_FN_D31, D31_MARK), GPIO_FN(D31),
PINMUX_GPIO(GPIO_FN_D30, D30_MARK), GPIO_FN(D30),
PINMUX_GPIO(GPIO_FN_D29, D29_MARK), GPIO_FN(D29),
PINMUX_GPIO(GPIO_FN_D28, D28_MARK), GPIO_FN(D28),
PINMUX_GPIO(GPIO_FN_D27, D27_MARK), GPIO_FN(D27),
PINMUX_GPIO(GPIO_FN_D26, D26_MARK), GPIO_FN(D26),
PINMUX_GPIO(GPIO_FN_D25, D25_MARK), GPIO_FN(D25),
PINMUX_GPIO(GPIO_FN_D24, D24_MARK), GPIO_FN(D24),
PINMUX_GPIO(GPIO_FN_D23, D23_MARK), GPIO_FN(D23),
PINMUX_GPIO(GPIO_FN_D22, D22_MARK), GPIO_FN(D22),
PINMUX_GPIO(GPIO_FN_D21, D21_MARK), GPIO_FN(D21),
PINMUX_GPIO(GPIO_FN_D20, D20_MARK), GPIO_FN(D20),
PINMUX_GPIO(GPIO_FN_D19, D19_MARK), GPIO_FN(D19),
PINMUX_GPIO(GPIO_FN_D18, D18_MARK), GPIO_FN(D18),
PINMUX_GPIO(GPIO_FN_D17, D17_MARK), GPIO_FN(D17),
PINMUX_GPIO(GPIO_FN_D16, D16_MARK), GPIO_FN(D16),
PINMUX_GPIO(GPIO_FN_BACK, BACK_MARK), GPIO_FN(BACK),
PINMUX_GPIO(GPIO_FN_BREQ, BREQ_MARK), GPIO_FN(BREQ),
PINMUX_GPIO(GPIO_FN_WE3, WE3_MARK), GPIO_FN(WE3),
PINMUX_GPIO(GPIO_FN_WE2, WE2_MARK), GPIO_FN(WE2),
PINMUX_GPIO(GPIO_FN_CS6, CS6_MARK), GPIO_FN(CS6),
PINMUX_GPIO(GPIO_FN_CS5, CS5_MARK), GPIO_FN(CS5),
PINMUX_GPIO(GPIO_FN_CS4, CS4_MARK), GPIO_FN(CS4),
PINMUX_GPIO(GPIO_FN_CLKOUTENB, CLKOUTENB_MARK), GPIO_FN(CLKOUTENB),
PINMUX_GPIO(GPIO_FN_DACK3, DACK3_MARK), GPIO_FN(DACK3),
PINMUX_GPIO(GPIO_FN_DACK2, DACK2_MARK), GPIO_FN(DACK2),
PINMUX_GPIO(GPIO_FN_DACK1, DACK1_MARK), GPIO_FN(DACK1),
PINMUX_GPIO(GPIO_FN_DACK0, DACK0_MARK), GPIO_FN(DACK0),
PINMUX_GPIO(GPIO_FN_DREQ3, DREQ3_MARK), GPIO_FN(DREQ3),
PINMUX_GPIO(GPIO_FN_DREQ2, DREQ2_MARK), GPIO_FN(DREQ2),
PINMUX_GPIO(GPIO_FN_DREQ1, DREQ1_MARK), GPIO_FN(DREQ1),
PINMUX_GPIO(GPIO_FN_DREQ0, DREQ0_MARK), GPIO_FN(DREQ0),
PINMUX_GPIO(GPIO_FN_IRQ3, IRQ3_MARK), GPIO_FN(IRQ3),
PINMUX_GPIO(GPIO_FN_IRQ2, IRQ2_MARK), GPIO_FN(IRQ2),
PINMUX_GPIO(GPIO_FN_IRQ1, IRQ1_MARK), GPIO_FN(IRQ1),
PINMUX_GPIO(GPIO_FN_IRQ0, IRQ0_MARK), GPIO_FN(IRQ0),
PINMUX_GPIO(GPIO_FN_DRAK3, DRAK3_MARK), GPIO_FN(DRAK3),
PINMUX_GPIO(GPIO_FN_DRAK2, DRAK2_MARK), GPIO_FN(DRAK2),
PINMUX_GPIO(GPIO_FN_DRAK1, DRAK1_MARK), GPIO_FN(DRAK1),
PINMUX_GPIO(GPIO_FN_DRAK0, DRAK0_MARK), GPIO_FN(DRAK0),
PINMUX_GPIO(GPIO_FN_SCK3, SCK3_MARK), GPIO_FN(SCK3),
PINMUX_GPIO(GPIO_FN_SCK2, SCK2_MARK), GPIO_FN(SCK2),
PINMUX_GPIO(GPIO_FN_SCK1, SCK1_MARK), GPIO_FN(SCK1),
PINMUX_GPIO(GPIO_FN_SCK0, SCK0_MARK), GPIO_FN(SCK0),
PINMUX_GPIO(GPIO_FN_IRL3, IRL3_MARK), GPIO_FN(IRL3),
PINMUX_GPIO(GPIO_FN_IRL2, IRL2_MARK), GPIO_FN(IRL2),
PINMUX_GPIO(GPIO_FN_IRL1, IRL1_MARK), GPIO_FN(IRL1),
PINMUX_GPIO(GPIO_FN_IRL0, IRL0_MARK), GPIO_FN(IRL0),
PINMUX_GPIO(GPIO_FN_TXD3, TXD3_MARK), GPIO_FN(TXD3),
PINMUX_GPIO(GPIO_FN_TXD2, TXD2_MARK), GPIO_FN(TXD2),
PINMUX_GPIO(GPIO_FN_TXD1, TXD1_MARK), GPIO_FN(TXD1),
PINMUX_GPIO(GPIO_FN_TXD0, TXD0_MARK), GPIO_FN(TXD0),
PINMUX_GPIO(GPIO_FN_RXD3, RXD3_MARK), GPIO_FN(RXD3),
PINMUX_GPIO(GPIO_FN_RXD2, RXD2_MARK), GPIO_FN(RXD2),
PINMUX_GPIO(GPIO_FN_RXD1, RXD1_MARK), GPIO_FN(RXD1),
PINMUX_GPIO(GPIO_FN_RXD0, RXD0_MARK), GPIO_FN(RXD0),
PINMUX_GPIO(GPIO_FN_CE2B, CE2B_MARK), GPIO_FN(CE2B),
PINMUX_GPIO(GPIO_FN_CE2A, CE2A_MARK), GPIO_FN(CE2A),
PINMUX_GPIO(GPIO_FN_IOIS16, IOIS16_MARK), GPIO_FN(IOIS16),
PINMUX_GPIO(GPIO_FN_STATUS1, STATUS1_MARK), GPIO_FN(STATUS1),
PINMUX_GPIO(GPIO_FN_STATUS0, STATUS0_MARK), GPIO_FN(STATUS0),
PINMUX_GPIO(GPIO_FN_IRQOUT, IRQOUT_MARK), GPIO_FN(IRQOUT),
}; };
static struct pinmux_cfg_reg shx3_pinmux_config_regs[] = { static struct pinmux_cfg_reg shx3_pinmux_config_regs[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment