diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-04-19 06:31:08 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-04 08:04:06 -0400 |
commit | 8b1b71d3a857cb0486e27516d9d296ae7b45c5ca (patch) | |
tree | 4c52c7e0da540008d28192edd09162a853cdf2f1 /drivers/pinctrl/sh-pfc/pfc-sh7372.c | |
parent | d4d1c6538ea4784bc1386014dee65a796d207815 (diff) |
sh-pfc: sh7372: Add FLCTL pin groups and functions
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-sh7372.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-sh7372.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7372.c b/drivers/pinctrl/sh-pfc/pfc-sh7372.c index 3da8319805ef..99486996e3ce 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh7372.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7372.c | |||
@@ -1081,6 +1081,38 @@ static const unsigned int ceu_field_pins[] = { | |||
1081 | static const unsigned int ceu_field_mux[] = { | 1081 | static const unsigned int ceu_field_mux[] = { |
1082 | VIO_FIELD_MARK, | 1082 | VIO_FIELD_MARK, |
1083 | }; | 1083 | }; |
1084 | /* - FLCTL ------------------------------------------------------------------ */ | ||
1085 | static const unsigned int flctl_data_pins[] = { | ||
1086 | /* NAF[0:15] */ | ||
1087 | 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, | ||
1088 | }; | ||
1089 | static const unsigned int flctl_data_mux[] = { | ||
1090 | D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK, | ||
1091 | D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK, | ||
1092 | D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK, | ||
1093 | D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK, | ||
1094 | }; | ||
1095 | static const unsigned int flctl_ce0_pins[] = { | ||
1096 | /* CE */ | ||
1097 | 68, | ||
1098 | }; | ||
1099 | static const unsigned int flctl_ce0_mux[] = { | ||
1100 | FCE0_MARK, | ||
1101 | }; | ||
1102 | static const unsigned int flctl_ce1_pins[] = { | ||
1103 | /* CE */ | ||
1104 | 66, | ||
1105 | }; | ||
1106 | static const unsigned int flctl_ce1_mux[] = { | ||
1107 | FCE1_MARK, | ||
1108 | }; | ||
1109 | static const unsigned int flctl_ctrl_pins[] = { | ||
1110 | /* FCDE, FOE, FSC, FWE, FRB */ | ||
1111 | 24, 23, 69, 70, 73, | ||
1112 | }; | ||
1113 | static const unsigned int flctl_ctrl_mux[] = { | ||
1114 | A5_FCDE_MARK, A4_FOE_MARK, RD_FSC_MARK, WE0_FWE_MARK, FRB_MARK, | ||
1115 | }; | ||
1084 | /* - MMCIF ------------------------------------------------------------------ */ | 1116 | /* - MMCIF ------------------------------------------------------------------ */ |
1085 | static const unsigned int mmc0_data1_0_pins[] = { | 1117 | static const unsigned int mmc0_data1_0_pins[] = { |
1086 | /* D[0] */ | 1118 | /* D[0] */ |
@@ -1242,6 +1274,10 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
1242 | SH_PFC_PIN_GROUP(ceu_clk_2), | 1274 | SH_PFC_PIN_GROUP(ceu_clk_2), |
1243 | SH_PFC_PIN_GROUP(ceu_sync), | 1275 | SH_PFC_PIN_GROUP(ceu_sync), |
1244 | SH_PFC_PIN_GROUP(ceu_field), | 1276 | SH_PFC_PIN_GROUP(ceu_field), |
1277 | SH_PFC_PIN_GROUP(flctl_data), | ||
1278 | SH_PFC_PIN_GROUP(flctl_ce0), | ||
1279 | SH_PFC_PIN_GROUP(flctl_ce1), | ||
1280 | SH_PFC_PIN_GROUP(flctl_ctrl), | ||
1245 | SH_PFC_PIN_GROUP(mmc0_data1_0), | 1281 | SH_PFC_PIN_GROUP(mmc0_data1_0), |
1246 | SH_PFC_PIN_GROUP(mmc0_data4_0), | 1282 | SH_PFC_PIN_GROUP(mmc0_data4_0), |
1247 | SH_PFC_PIN_GROUP(mmc0_data8_0), | 1283 | SH_PFC_PIN_GROUP(mmc0_data8_0), |
@@ -1288,6 +1324,13 @@ static const char * const ceu_groups[] = { | |||
1288 | "ceu_field", | 1324 | "ceu_field", |
1289 | }; | 1325 | }; |
1290 | 1326 | ||
1327 | static const char * const flctl_groups[] = { | ||
1328 | "flctl_data", | ||
1329 | "flctl_ce0", | ||
1330 | "flctl_ce1", | ||
1331 | "flctl_ctrl", | ||
1332 | }; | ||
1333 | |||
1291 | static const char * const mmc0_groups[] = { | 1334 | static const char * const mmc0_groups[] = { |
1292 | "mmc0_data1_0", | 1335 | "mmc0_data1_0", |
1293 | "mmc0_data4_0", | 1336 | "mmc0_data4_0", |
@@ -1322,6 +1365,7 @@ static const char * const sdhi2_groups[] = { | |||
1322 | static const struct sh_pfc_function pinmux_functions[] = { | 1365 | static const struct sh_pfc_function pinmux_functions[] = { |
1323 | SH_PFC_FUNCTION(bsc), | 1366 | SH_PFC_FUNCTION(bsc), |
1324 | SH_PFC_FUNCTION(ceu), | 1367 | SH_PFC_FUNCTION(ceu), |
1368 | SH_PFC_FUNCTION(flctl), | ||
1325 | SH_PFC_FUNCTION(mmc0), | 1369 | SH_PFC_FUNCTION(mmc0), |
1326 | SH_PFC_FUNCTION(sdhi0), | 1370 | SH_PFC_FUNCTION(sdhi0), |
1327 | SH_PFC_FUNCTION(sdhi1), | 1371 | SH_PFC_FUNCTION(sdhi1), |