diff options
author | Fabrizio Castro <fabrizio.castro@bp.renesas.com> | 2017-12-18 12:52:07 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-12-19 05:04:49 -0500 |
commit | 21047d5736918b19a3efe11e8ace856cb1b4b403 (patch) | |
tree | b4454098b1e7a3e7b24bb67b38a27df31d657291 /drivers/pinctrl | |
parent | 0d68d46035a196c91ee70df2ba204ed708bba315 (diff) |
pinctrl: sh-pfc: r8a7791: Add tpu groups and function
This patch adds tpu groups and function to r8a7743/r8a7791/r8a7793.
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c index c01ef02d326b..5811784d88cb 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c | |||
@@ -4145,6 +4145,32 @@ static const unsigned int ssi9_ctrl_b_mux[] = { | |||
4145 | SSI_SCK9_B_MARK, SSI_WS9_B_MARK, | 4145 | SSI_SCK9_B_MARK, SSI_WS9_B_MARK, |
4146 | }; | 4146 | }; |
4147 | 4147 | ||
4148 | /* - TPU -------------------------------------------------------------------- */ | ||
4149 | static const unsigned int tpu_to0_pins[] = { | ||
4150 | RCAR_GP_PIN(6, 14), | ||
4151 | }; | ||
4152 | static const unsigned int tpu_to0_mux[] = { | ||
4153 | TPU_TO0_MARK, | ||
4154 | }; | ||
4155 | static const unsigned int tpu_to1_pins[] = { | ||
4156 | RCAR_GP_PIN(1, 17), | ||
4157 | }; | ||
4158 | static const unsigned int tpu_to1_mux[] = { | ||
4159 | TPU_TO1_MARK, | ||
4160 | }; | ||
4161 | static const unsigned int tpu_to2_pins[] = { | ||
4162 | RCAR_GP_PIN(1, 18), | ||
4163 | }; | ||
4164 | static const unsigned int tpu_to2_mux[] = { | ||
4165 | TPU_TO2_MARK, | ||
4166 | }; | ||
4167 | static const unsigned int tpu_to3_pins[] = { | ||
4168 | RCAR_GP_PIN(1, 24), | ||
4169 | }; | ||
4170 | static const unsigned int tpu_to3_mux[] = { | ||
4171 | TPU_TO3_MARK, | ||
4172 | }; | ||
4173 | |||
4148 | /* - USB0 ------------------------------------------------------------------- */ | 4174 | /* - USB0 ------------------------------------------------------------------- */ |
4149 | static const unsigned int usb0_pins[] = { | 4175 | static const unsigned int usb0_pins[] = { |
4150 | RCAR_GP_PIN(7, 23), /* PWEN */ | 4176 | RCAR_GP_PIN(7, 23), /* PWEN */ |
@@ -4431,7 +4457,7 @@ static const unsigned int vin2_clk_mux[] = { | |||
4431 | }; | 4457 | }; |
4432 | 4458 | ||
4433 | static const struct { | 4459 | static const struct { |
4434 | struct sh_pfc_pin_group common[342]; | 4460 | struct sh_pfc_pin_group common[346]; |
4435 | struct sh_pfc_pin_group r8a779x[9]; | 4461 | struct sh_pfc_pin_group r8a779x[9]; |
4436 | } pinmux_groups = { | 4462 | } pinmux_groups = { |
4437 | .common = { | 4463 | .common = { |
@@ -4743,6 +4769,10 @@ static const struct { | |||
4743 | SH_PFC_PIN_GROUP(ssi9_data_b), | 4769 | SH_PFC_PIN_GROUP(ssi9_data_b), |
4744 | SH_PFC_PIN_GROUP(ssi9_ctrl), | 4770 | SH_PFC_PIN_GROUP(ssi9_ctrl), |
4745 | SH_PFC_PIN_GROUP(ssi9_ctrl_b), | 4771 | SH_PFC_PIN_GROUP(ssi9_ctrl_b), |
4772 | SH_PFC_PIN_GROUP(tpu_to0), | ||
4773 | SH_PFC_PIN_GROUP(tpu_to1), | ||
4774 | SH_PFC_PIN_GROUP(tpu_to2), | ||
4775 | SH_PFC_PIN_GROUP(tpu_to3), | ||
4746 | SH_PFC_PIN_GROUP(usb0), | 4776 | SH_PFC_PIN_GROUP(usb0), |
4747 | SH_PFC_PIN_GROUP(usb1), | 4777 | SH_PFC_PIN_GROUP(usb1), |
4748 | VIN_DATA_PIN_GROUP(vin0_data, 24), | 4778 | VIN_DATA_PIN_GROUP(vin0_data, 24), |
@@ -5278,6 +5308,13 @@ static const char * const ssi_groups[] = { | |||
5278 | "ssi9_ctrl_b", | 5308 | "ssi9_ctrl_b", |
5279 | }; | 5309 | }; |
5280 | 5310 | ||
5311 | static const char * const tpu_groups[] = { | ||
5312 | "tpu_to0", | ||
5313 | "tpu_to1", | ||
5314 | "tpu_to2", | ||
5315 | "tpu_to3", | ||
5316 | }; | ||
5317 | |||
5281 | static const char * const usb0_groups[] = { | 5318 | static const char * const usb0_groups[] = { |
5282 | "usb0", | 5319 | "usb0", |
5283 | }; | 5320 | }; |
@@ -5327,7 +5364,7 @@ static const char * const vin2_groups[] = { | |||
5327 | }; | 5364 | }; |
5328 | 5365 | ||
5329 | static const struct { | 5366 | static const struct { |
5330 | struct sh_pfc_function common[57]; | 5367 | struct sh_pfc_function common[58]; |
5331 | struct sh_pfc_function r8a779x[2]; | 5368 | struct sh_pfc_function r8a779x[2]; |
5332 | } pinmux_functions = { | 5369 | } pinmux_functions = { |
5333 | .common = { | 5370 | .common = { |
@@ -5383,6 +5420,7 @@ static const struct { | |||
5383 | SH_PFC_FUNCTION(sdhi1), | 5420 | SH_PFC_FUNCTION(sdhi1), |
5384 | SH_PFC_FUNCTION(sdhi2), | 5421 | SH_PFC_FUNCTION(sdhi2), |
5385 | SH_PFC_FUNCTION(ssi), | 5422 | SH_PFC_FUNCTION(ssi), |
5423 | SH_PFC_FUNCTION(tpu), | ||
5386 | SH_PFC_FUNCTION(usb0), | 5424 | SH_PFC_FUNCTION(usb0), |
5387 | SH_PFC_FUNCTION(usb1), | 5425 | SH_PFC_FUNCTION(usb1), |
5388 | SH_PFC_FUNCTION(vin0), | 5426 | SH_PFC_FUNCTION(vin0), |