diff options
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7740.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7740.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7740.c b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c index bc5eb453a45c..6c83ce43a940 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7740.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c | |||
@@ -1543,7 +1543,7 @@ static const u16 pinmux_data[] = { | |||
1543 | #define R8A7740_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) | 1543 | #define R8A7740_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) |
1544 | #define R8A7740_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD) | 1544 | #define R8A7740_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD) |
1545 | 1545 | ||
1546 | static struct sh_pfc_pin pinmux_pins[] = { | 1546 | static const struct sh_pfc_pin pinmux_pins[] = { |
1547 | /* Table 56-1 (I/O and Pull U/D) */ | 1547 | /* Table 56-1 (I/O and Pull U/D) */ |
1548 | R8A7740_PIN_IO_PD(0), R8A7740_PIN_IO_PD(1), | 1548 | R8A7740_PIN_IO_PD(0), R8A7740_PIN_IO_PD(1), |
1549 | R8A7740_PIN_IO_PD(2), R8A7740_PIN_IO_PD(3), | 1549 | R8A7740_PIN_IO_PD(2), R8A7740_PIN_IO_PD(3), |
@@ -3234,17 +3234,6 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
3234 | SH_PFC_FUNCTION(tpu0), | 3234 | SH_PFC_FUNCTION(tpu0), |
3235 | }; | 3235 | }; |
3236 | 3236 | ||
3237 | #undef PORTCR | ||
3238 | #define PORTCR(nr, reg) \ | ||
3239 | { \ | ||
3240 | PINMUX_CFG_REG("PORT" nr "CR", reg, 8, 4) { \ | ||
3241 | _PCRH(PORT##nr##_IN, 0, 0, PORT##nr##_OUT), \ | ||
3242 | PORT##nr##_FN0, PORT##nr##_FN1, \ | ||
3243 | PORT##nr##_FN2, PORT##nr##_FN3, \ | ||
3244 | PORT##nr##_FN4, PORT##nr##_FN5, \ | ||
3245 | PORT##nr##_FN6, PORT##nr##_FN7 } \ | ||
3246 | } | ||
3247 | |||
3248 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { | 3237 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
3249 | PORTCR(0, 0xe6050000), /* PORT0CR */ | 3238 | PORTCR(0, 0xe6050000), /* PORT0CR */ |
3250 | PORTCR(1, 0xe6050001), /* PORT1CR */ | 3239 | PORTCR(1, 0xe6050001), /* PORT1CR */ |
@@ -3721,7 +3710,7 @@ static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin) | |||
3721 | &r8a7740_portcr_offsets[i]; | 3710 | &r8a7740_portcr_offsets[i]; |
3722 | 3711 | ||
3723 | if (pin <= group->end_pin) | 3712 | if (pin <= group->end_pin) |
3724 | return pfc->window->virt + group->offset + pin; | 3713 | return pfc->windows->virt + group->offset + pin; |
3725 | } | 3714 | } |
3726 | 3715 | ||
3727 | return NULL; | 3716 | return NULL; |