diff options
author | Fabrizio Castro <fabrizio.castro@bp.renesas.com> | 2017-12-18 13:06:50 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-12-19 04:20:05 -0500 |
commit | 64dbebc87d5f91435bf4fb8b04a688f570121b7f (patch) | |
tree | e13632fbee358d8fa050456bcb14209078d46c85 | |
parent | 20796a2caf011b9a94763e26b89be7a13a2756f5 (diff) |
pinctrl: sh-pfc: r8a7794: Add tpu groups and function
This patch adds tpu groups and function to r8a7745/r8a7794.
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>
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7794.c b/drivers/pinctrl/sh-pfc/pfc-r8a7794.c index dccc20ae1130..f133b4f323a2 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7794.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7794.c | |||
@@ -3493,6 +3493,79 @@ static const unsigned int ssi9_ctrl_b_pins[] = { | |||
3493 | static const unsigned int ssi9_ctrl_b_mux[] = { | 3493 | static const unsigned int ssi9_ctrl_b_mux[] = { |
3494 | SSI_SCK9_B_MARK, SSI_WS9_B_MARK, | 3494 | SSI_SCK9_B_MARK, SSI_WS9_B_MARK, |
3495 | }; | 3495 | }; |
3496 | /* - TPU -------------------------------------------------------------------- */ | ||
3497 | static const unsigned int tpu_to0_pins[] = { | ||
3498 | RCAR_GP_PIN(3, 31), | ||
3499 | }; | ||
3500 | static const unsigned int tpu_to0_mux[] = { | ||
3501 | TPUTO0_MARK, | ||
3502 | }; | ||
3503 | static const unsigned int tpu_to0_b_pins[] = { | ||
3504 | RCAR_GP_PIN(3, 30), | ||
3505 | }; | ||
3506 | static const unsigned int tpu_to0_b_mux[] = { | ||
3507 | TPUTO0_B_MARK, | ||
3508 | }; | ||
3509 | static const unsigned int tpu_to0_c_pins[] = { | ||
3510 | RCAR_GP_PIN(1, 18), | ||
3511 | }; | ||
3512 | static const unsigned int tpu_to0_c_mux[] = { | ||
3513 | TPUTO0_C_MARK, | ||
3514 | }; | ||
3515 | static const unsigned int tpu_to1_pins[] = { | ||
3516 | RCAR_GP_PIN(4, 9), | ||
3517 | }; | ||
3518 | static const unsigned int tpu_to1_mux[] = { | ||
3519 | TPUTO1_MARK, | ||
3520 | }; | ||
3521 | static const unsigned int tpu_to1_b_pins[] = { | ||
3522 | RCAR_GP_PIN(4, 0), | ||
3523 | }; | ||
3524 | static const unsigned int tpu_to1_b_mux[] = { | ||
3525 | TPUTO1_B_MARK, | ||
3526 | }; | ||
3527 | static const unsigned int tpu_to1_c_pins[] = { | ||
3528 | RCAR_GP_PIN(4, 4), | ||
3529 | }; | ||
3530 | static const unsigned int tpu_to1_c_mux[] = { | ||
3531 | TPUTO1_C_MARK, | ||
3532 | }; | ||
3533 | static const unsigned int tpu_to2_pins[] = { | ||
3534 | RCAR_GP_PIN(1, 3), | ||
3535 | }; | ||
3536 | static const unsigned int tpu_to2_mux[] = { | ||
3537 | TPUTO2_MARK, | ||
3538 | }; | ||
3539 | static const unsigned int tpu_to2_b_pins[] = { | ||
3540 | RCAR_GP_PIN(1, 0), | ||
3541 | }; | ||
3542 | static const unsigned int tpu_to2_b_mux[] = { | ||
3543 | TPUTO2_B_MARK, | ||
3544 | }; | ||
3545 | static const unsigned int tpu_to2_c_pins[] = { | ||
3546 | RCAR_GP_PIN(0, 22), | ||
3547 | }; | ||
3548 | static const unsigned int tpu_to2_c_mux[] = { | ||
3549 | TPUTO2_C_MARK, | ||
3550 | }; | ||
3551 | static const unsigned int tpu_to3_pins[] = { | ||
3552 | RCAR_GP_PIN(1, 14), | ||
3553 | }; | ||
3554 | static const unsigned int tpu_to3_mux[] = { | ||
3555 | TPUTO3_MARK, | ||
3556 | }; | ||
3557 | static const unsigned int tpu_to3_b_pins[] = { | ||
3558 | RCAR_GP_PIN(1, 13), | ||
3559 | }; | ||
3560 | static const unsigned int tpu_to3_b_mux[] = { | ||
3561 | TPUTO3_B_MARK, | ||
3562 | }; | ||
3563 | static const unsigned int tpu_to3_c_pins[] = { | ||
3564 | RCAR_GP_PIN(0, 21), | ||
3565 | }; | ||
3566 | static const unsigned int tpu_to3_c_mux[] = { | ||
3567 | TPUTO3_C_MARK, | ||
3568 | }; | ||
3496 | /* - USB0 ------------------------------------------------------------------- */ | 3569 | /* - USB0 ------------------------------------------------------------------- */ |
3497 | static const unsigned int usb0_pins[] = { | 3570 | static const unsigned int usb0_pins[] = { |
3498 | RCAR_GP_PIN(5, 24), /* PWEN */ | 3571 | RCAR_GP_PIN(5, 24), /* PWEN */ |
@@ -3926,6 +3999,18 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
3926 | SH_PFC_PIN_GROUP(ssi9_ctrl), | 3999 | SH_PFC_PIN_GROUP(ssi9_ctrl), |
3927 | SH_PFC_PIN_GROUP(ssi9_data_b), | 4000 | SH_PFC_PIN_GROUP(ssi9_data_b), |
3928 | SH_PFC_PIN_GROUP(ssi9_ctrl_b), | 4001 | SH_PFC_PIN_GROUP(ssi9_ctrl_b), |
4002 | SH_PFC_PIN_GROUP(tpu_to0), | ||
4003 | SH_PFC_PIN_GROUP(tpu_to0_b), | ||
4004 | SH_PFC_PIN_GROUP(tpu_to0_c), | ||
4005 | SH_PFC_PIN_GROUP(tpu_to1), | ||
4006 | SH_PFC_PIN_GROUP(tpu_to1_b), | ||
4007 | SH_PFC_PIN_GROUP(tpu_to1_c), | ||
4008 | SH_PFC_PIN_GROUP(tpu_to2), | ||
4009 | SH_PFC_PIN_GROUP(tpu_to2_b), | ||
4010 | SH_PFC_PIN_GROUP(tpu_to2_c), | ||
4011 | SH_PFC_PIN_GROUP(tpu_to3), | ||
4012 | SH_PFC_PIN_GROUP(tpu_to3_b), | ||
4013 | SH_PFC_PIN_GROUP(tpu_to3_c), | ||
3929 | SH_PFC_PIN_GROUP(usb0), | 4014 | SH_PFC_PIN_GROUP(usb0), |
3930 | SH_PFC_PIN_GROUP(usb1), | 4015 | SH_PFC_PIN_GROUP(usb1), |
3931 | VIN_DATA_PIN_GROUP(vin0_data, 24), | 4016 | VIN_DATA_PIN_GROUP(vin0_data, 24), |
@@ -4388,6 +4473,21 @@ static const char * const ssi_groups[] = { | |||
4388 | "ssi9_ctrl_b", | 4473 | "ssi9_ctrl_b", |
4389 | }; | 4474 | }; |
4390 | 4475 | ||
4476 | static const char * const tpu_groups[] = { | ||
4477 | "tpu_to0", | ||
4478 | "tpu_to0_b", | ||
4479 | "tpu_to0_c", | ||
4480 | "tpu_to1", | ||
4481 | "tpu_to1_b", | ||
4482 | "tpu_to1_c", | ||
4483 | "tpu_to2", | ||
4484 | "tpu_to2_b", | ||
4485 | "tpu_to2_c", | ||
4486 | "tpu_to3", | ||
4487 | "tpu_to3_b", | ||
4488 | "tpu_to3_c", | ||
4489 | }; | ||
4490 | |||
4391 | static const char * const usb0_groups[] = { | 4491 | static const char * const usb0_groups[] = { |
4392 | "usb0", | 4492 | "usb0", |
4393 | }; | 4493 | }; |
@@ -4470,6 +4570,7 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
4470 | SH_PFC_FUNCTION(sdhi1), | 4570 | SH_PFC_FUNCTION(sdhi1), |
4471 | SH_PFC_FUNCTION(sdhi2), | 4571 | SH_PFC_FUNCTION(sdhi2), |
4472 | SH_PFC_FUNCTION(ssi), | 4572 | SH_PFC_FUNCTION(ssi), |
4573 | SH_PFC_FUNCTION(tpu), | ||
4473 | SH_PFC_FUNCTION(usb0), | 4574 | SH_PFC_FUNCTION(usb0), |
4474 | SH_PFC_FUNCTION(usb1), | 4575 | SH_PFC_FUNCTION(usb1), |
4475 | SH_PFC_FUNCTION(vin0), | 4576 | SH_PFC_FUNCTION(vin0), |