diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-04-23 10:04:07 -0400 |
|---|---|---|
| committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-05 04:17:17 -0400 |
| commit | c2ad27e63dac83af4d6acd7af2f424497f1d4c74 (patch) | |
| tree | 81454502f22bbea71524ca9fcacc5e1564032ea3 | |
| parent | 5da4eb049de803c7e9b81afbadf9f2e70e34dcae (diff) | |
sh-pfc: r8a7740: Add TPU pin groups and functions
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| -rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7740.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7740.c b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c index e5ef587abe0f..f6ea47c433b3 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7740.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7740.c | |||
| @@ -2745,6 +2745,42 @@ static const unsigned int sdhi2_wp_1_pins[] = { | |||
| 2745 | static const unsigned int sdhi2_wp_1_mux[] = { | 2745 | static const unsigned int sdhi2_wp_1_mux[] = { |
| 2746 | SDHI2_WP_PORT25_MARK, | 2746 | SDHI2_WP_PORT25_MARK, |
| 2747 | }; | 2747 | }; |
| 2748 | /* - TPU0 ------------------------------------------------------------------- */ | ||
| 2749 | static const unsigned int tpu0_to0_pins[] = { | ||
| 2750 | /* TO */ | ||
| 2751 | 23, | ||
| 2752 | }; | ||
| 2753 | static const unsigned int tpu0_to0_mux[] = { | ||
| 2754 | TPU0TO0_MARK, | ||
| 2755 | }; | ||
| 2756 | static const unsigned int tpu0_to1_pins[] = { | ||
| 2757 | /* TO */ | ||
| 2758 | 21, | ||
| 2759 | }; | ||
| 2760 | static const unsigned int tpu0_to1_mux[] = { | ||
| 2761 | TPU0TO1_MARK, | ||
| 2762 | }; | ||
| 2763 | static const unsigned int tpu0_to2_0_pins[] = { | ||
| 2764 | /* TO */ | ||
| 2765 | 66, | ||
| 2766 | }; | ||
| 2767 | static const unsigned int tpu0_to2_0_mux[] = { | ||
| 2768 | TPU0TO2_PORT66_MARK, | ||
| 2769 | }; | ||
| 2770 | static const unsigned int tpu0_to2_1_pins[] = { | ||
| 2771 | /* TO */ | ||
| 2772 | 202, | ||
| 2773 | }; | ||
| 2774 | static const unsigned int tpu0_to2_1_mux[] = { | ||
| 2775 | TPU0TO2_PORT202_MARK, | ||
| 2776 | }; | ||
| 2777 | static const unsigned int tpu0_to3_pins[] = { | ||
| 2778 | /* TO */ | ||
| 2779 | 180, | ||
| 2780 | }; | ||
| 2781 | static const unsigned int tpu0_to3_mux[] = { | ||
| 2782 | TPU0TO3_MARK, | ||
| 2783 | }; | ||
| 2748 | 2784 | ||
| 2749 | static const struct sh_pfc_pin_group pinmux_groups[] = { | 2785 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
| 2750 | SH_PFC_PIN_GROUP(bsc_data8), | 2786 | SH_PFC_PIN_GROUP(bsc_data8), |
| @@ -2926,6 +2962,11 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
| 2926 | SH_PFC_PIN_GROUP(sdhi2_wp_0), | 2962 | SH_PFC_PIN_GROUP(sdhi2_wp_0), |
| 2927 | SH_PFC_PIN_GROUP(sdhi2_cd_1), | 2963 | SH_PFC_PIN_GROUP(sdhi2_cd_1), |
| 2928 | SH_PFC_PIN_GROUP(sdhi2_wp_1), | 2964 | SH_PFC_PIN_GROUP(sdhi2_wp_1), |
| 2965 | SH_PFC_PIN_GROUP(tpu0_to0), | ||
| 2966 | SH_PFC_PIN_GROUP(tpu0_to1), | ||
| 2967 | SH_PFC_PIN_GROUP(tpu0_to2_0), | ||
| 2968 | SH_PFC_PIN_GROUP(tpu0_to2_1), | ||
| 2969 | SH_PFC_PIN_GROUP(tpu0_to3), | ||
| 2929 | }; | 2970 | }; |
| 2930 | 2971 | ||
| 2931 | static const char * const bsc_groups[] = { | 2972 | static const char * const bsc_groups[] = { |
| @@ -3176,6 +3217,14 @@ static const char * const sdhi2_groups[] = { | |||
| 3176 | "sdhi2_wp_1", | 3217 | "sdhi2_wp_1", |
| 3177 | }; | 3218 | }; |
| 3178 | 3219 | ||
| 3220 | static const char * const tpu0_groups[] = { | ||
| 3221 | "tpu0_to0", | ||
| 3222 | "tpu0_to1", | ||
| 3223 | "tpu0_to2_0", | ||
| 3224 | "tpu0_to2_1", | ||
| 3225 | "tpu0_to3", | ||
| 3226 | }; | ||
| 3227 | |||
| 3179 | static const struct sh_pfc_function pinmux_functions[] = { | 3228 | static const struct sh_pfc_function pinmux_functions[] = { |
| 3180 | SH_PFC_FUNCTION(bsc), | 3229 | SH_PFC_FUNCTION(bsc), |
| 3181 | SH_PFC_FUNCTION(ceu0), | 3230 | SH_PFC_FUNCTION(ceu0), |
| @@ -3200,6 +3249,7 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
| 3200 | SH_PFC_FUNCTION(sdhi0), | 3249 | SH_PFC_FUNCTION(sdhi0), |
| 3201 | SH_PFC_FUNCTION(sdhi1), | 3250 | SH_PFC_FUNCTION(sdhi1), |
| 3202 | SH_PFC_FUNCTION(sdhi2), | 3251 | SH_PFC_FUNCTION(sdhi2), |
| 3252 | SH_PFC_FUNCTION(tpu0), | ||
| 3203 | }; | 3253 | }; |
| 3204 | 3254 | ||
| 3205 | #undef PORTCR | 3255 | #undef PORTCR |
