Commit 3dce053f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: renesas: r8a77980: Share MMC pin group data

Pin groups mmc_data[14] are subsets of mmc_data8.

This reduces kernel size by 40 bytes.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/32d708f423a3f0aa6c3cc87a9d5d3fa6686ab8c7.1640269757.git.geert+renesas@glider.be
parent c5041469
...@@ -1365,30 +1365,14 @@ static const unsigned int intc_ex_irq5_mux[] = { ...@@ -1365,30 +1365,14 @@ static const unsigned int intc_ex_irq5_mux[] = {
}; };
/* - MMC -------------------------------------------------------------------- */ /* - MMC -------------------------------------------------------------------- */
static const unsigned int mmc_data1_pins[] = { static const unsigned int mmc_data_pins[] = {
/* MMC_D0 */
RCAR_GP_PIN(3, 8),
};
static const unsigned int mmc_data1_mux[] = {
MMC_D0_MARK,
};
static const unsigned int mmc_data4_pins[] = {
/* MMC_D[0:3] */
RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
};
static const unsigned int mmc_data4_mux[] = {
MMC_D0_MARK, MMC_D1_MARK,
MMC_D2_MARK, MMC_D3_MARK,
};
static const unsigned int mmc_data8_pins[] = {
/* MMC_D[0:7] */ /* MMC_D[0:7] */
RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14),
RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16), RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16),
}; };
static const unsigned int mmc_data8_mux[] = { static const unsigned int mmc_data_mux[] = {
MMC_D0_MARK, MMC_D1_MARK, MMC_D0_MARK, MMC_D1_MARK,
MMC_D2_MARK, MMC_D3_MARK, MMC_D2_MARK, MMC_D3_MARK,
MMC_D4_MARK, MMC_D5_MARK, MMC_D4_MARK, MMC_D5_MARK,
...@@ -2148,9 +2132,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { ...@@ -2148,9 +2132,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(intc_ex_irq3), SH_PFC_PIN_GROUP(intc_ex_irq3),
SH_PFC_PIN_GROUP(intc_ex_irq4), SH_PFC_PIN_GROUP(intc_ex_irq4),
SH_PFC_PIN_GROUP(intc_ex_irq5), SH_PFC_PIN_GROUP(intc_ex_irq5),
SH_PFC_PIN_GROUP(mmc_data1), BUS_DATA_PIN_GROUP(mmc_data, 1),
SH_PFC_PIN_GROUP(mmc_data4), BUS_DATA_PIN_GROUP(mmc_data, 4),
SH_PFC_PIN_GROUP(mmc_data8), BUS_DATA_PIN_GROUP(mmc_data, 8),
SH_PFC_PIN_GROUP(mmc_ctrl), SH_PFC_PIN_GROUP(mmc_ctrl),
SH_PFC_PIN_GROUP(mmc_cd), SH_PFC_PIN_GROUP(mmc_cd),
SH_PFC_PIN_GROUP(mmc_wp), SH_PFC_PIN_GROUP(mmc_wp),
......
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