pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions
Subsystems (3)
PATCH v2 1/1 pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions
---
v2:
- Rebased.
--- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 255 +++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+)
drivers/pinctrl/sh-pfc/pfc-r8a7795.c +255 -0
@@ -1427,6 +1427,191 @@ static const struct sh_pfc_pin pinmux_pins[] = { PINMUX_GPIO_GP_ALL(), }; +/* - HSCIF0 ----------------------------------------------------------------- */ +static const unsigned int hscif0_data_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,13 ),RCAR_GP_PIN (5 ,14 ), +}; +static const unsigned int hscif0_data_mux[] = { +HRX0_MARK ,HTX0_MARK , +}; +static const unsigned int hscif0_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,12 ), +}; +static const unsigned int hscif0_clk_mux[] = { +HSCK0_MARK , +}; +static const unsigned int hscif0_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,16 ),RCAR_GP_PIN (5 ,15 ), +}; +static const unsigned int hscif0_ctrl_mux[] = { +HRTS0_N_MARK ,HCTS0_N_MARK , +}; +/* - HSCIF1 ----------------------------------------------------------------- */ +static const unsigned int hscif1_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,5 ),RCAR_GP_PIN (5 ,6 ), +}; +static const unsigned int hscif1_data_a_mux[] = { +HRX1_A_MARK ,HTX1_A_MARK , +}; +static const unsigned int hscif1_clk_a_pins[] = { +/* SCK */ +RCAR_GP_PIN (6 ,21 ), +}; +static const unsigned int hscif1_clk_a_mux[] = { +HSCK1_A_MARK , +}; +static const unsigned int hscif1_ctrl_a_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,8 ),RCAR_GP_PIN (5 ,7 ), +}; +static const unsigned int hscif1_ctrl_a_mux[] = { +HRTS1_N_A_MARK ,HCTS1_N_A_MARK , +}; + +static const unsigned int hscif1_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,1 ),RCAR_GP_PIN (5 ,2 ), +}; +static const unsigned int hscif1_data_b_mux[] = { +HRX1_B_MARK ,HTX1_B_MARK , +}; +static const unsigned int hscif1_clk_b_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,0 ), +}; +static const unsigned int hscif1_clk_b_mux[] = { +HSCK1_B_MARK , +}; +static const unsigned int hscif1_ctrl_b_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,4 ),RCAR_GP_PIN (5 ,3 ), +}; +static const unsigned int hscif1_ctrl_b_mux[] = { +HRTS1_N_B_MARK ,HCTS1_N_B_MARK , +}; +/* - HSCIF2 ----------------------------------------------------------------- */ +static const unsigned int hscif2_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (6 ,8 ),RCAR_GP_PIN (6 ,9 ), +}; +static const unsigned int hscif2_data_a_mux[] = { +HRX2_A_MARK ,HTX2_A_MARK , +}; +static const unsigned int hscif2_clk_a_pins[] = { +/* SCK */ +RCAR_GP_PIN (6 ,10 ), +}; +static const unsigned int hscif2_clk_a_mux[] = { +HSCK2_A_MARK , +}; +static const unsigned int hscif2_ctrl_a_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (6 ,7 ),RCAR_GP_PIN (6 ,6 ), +}; +static const unsigned int hscif2_ctrl_a_mux[] = { +HRTS2_N_A_MARK ,HCTS2_N_A_MARK , +}; + +static const unsigned int hscif2_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (6 ,17 ),RCAR_GP_PIN (6 ,18 ), +}; +static const unsigned int hscif2_data_b_mux[] = { +HRX2_B_MARK ,HTX2_B_MARK , +}; +static const unsigned int hscif2_clk_b_pins[] = { +/* SCK */ +RCAR_GP_PIN (6 ,21 ), +}; +static const unsigned int hscif2_clk_b_mux[] = { +HSCK1_B_MARK , +}; +static const unsigned int hscif2_ctrl_b_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (6 ,20 ),RCAR_GP_PIN (6 ,19 ), +}; +static const unsigned int hscif2_ctrl_b_mux[] = { +HRTS2_N_B_MARK ,HCTS2_N_B_MARK , +}; +/* - HSCIF3 ----------------------------------------------------------------- */ +static const unsigned int hscif3_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,23 ),RCAR_GP_PIN (1 ,24 ), +}; +static const unsigned int hscif3_data_a_mux[] = { +HRX3_A_MARK ,HTX3_A_MARK , +}; +static const unsigned int hscif3_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (1 ,22 ), +}; +static const unsigned int hscif3_clk_mux[] = { +HSCK3_MARK , +}; +static const unsigned int hscif3_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (1 ,26 ),RCAR_GP_PIN (1 ,25 ), +}; +static const unsigned int hscif3_ctrl_mux[] = { +HRTS3_N_MARK ,HCTS3_N_MARK , +}; + +static const unsigned int hscif3_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (0 ,10 ),RCAR_GP_PIN (0 ,11 ), +}; +static const unsigned int hscif3_data_b_mux[] = { +HRX3_B_MARK ,HTX3_B_MARK , +}; +static const unsigned int hscif3_data_c_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (0 ,14 ),RCAR_GP_PIN (0 ,15 ), +}; +static const unsigned int hscif3_data_c_mux[] = { +HRX3_C_MARK ,HTX3_C_MARK , +}; +static const unsigned int hscif3_data_d_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (2 ,7 ),RCAR_GP_PIN (2 ,8 ), +}; +static const unsigned int hscif3_data_d_mux[] = { +HRX3_D_MARK ,HTX3_D_MARK , +}; +/* - HSCIF4 ----------------------------------------------------------------- */ +static const unsigned int hscif4_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,12 ),RCAR_GP_PIN (1 ,13 ), +}; +static const unsigned int hscif4_data_a_mux[] = { +HRX4_A_MARK ,HTX4_A_MARK , +}; +static const unsigned int hscif4_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (1 ,11 ), +}; +static const unsigned int hscif4_clk_mux[] = { +HSCK4_MARK , +}; +static const unsigned int hscif4_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (1 ,15 ),RCAR_GP_PIN (1 ,14 ), +}; +static const unsigned int hscif4_ctrl_mux[] = { +HRTS4_N_MARK ,HCTS3_N_MARK , +}; + +static const unsigned int hscif4_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,8 ),RCAR_GP_PIN (1 ,11 ), +}; +static const unsigned int hscif4_data_b_mux[] = { +HRX4_B_MARK ,HTX4_B_MARK , +}; +/* - SCIF0 ------------------------------------------------------------------ */ static const unsigned int scif0_data_pins[] = {/* RX, TX */
@@ -1611,6 +1796,31 @@ static const unsigned int scif5_clk_mux[] = { };static const struct sh_pfc_pin_group pinmux_groups[] = { +SH_PFC_PIN_GROUP (hscif0_data), +SH_PFC_PIN_GROUP (hscif0_clk), +SH_PFC_PIN_GROUP (hscif0_ctrl), +SH_PFC_PIN_GROUP (hscif1_data_a), +SH_PFC_PIN_GROUP (hscif1_clk_a), +SH_PFC_PIN_GROUP (hscif1_ctrl_a), +SH_PFC_PIN_GROUP (hscif1_data_b), +SH_PFC_PIN_GROUP (hscif1_clk_b), +SH_PFC_PIN_GROUP (hscif1_ctrl_b), +SH_PFC_PIN_GROUP (hscif2_data_a), +SH_PFC_PIN_GROUP (hscif2_clk_a), +SH_PFC_PIN_GROUP (hscif2_ctrl_a), +SH_PFC_PIN_GROUP (hscif2_data_b), +SH_PFC_PIN_GROUP (hscif2_clk_b), +SH_PFC_PIN_GROUP (hscif2_ctrl_b), +SH_PFC_PIN_GROUP (hscif3_data_a), +SH_PFC_PIN_GROUP (hscif3_clk), +SH_PFC_PIN_GROUP (hscif3_ctrl), +SH_PFC_PIN_GROUP (hscif3_data_b), +SH_PFC_PIN_GROUP (hscif3_data_c), +SH_PFC_PIN_GROUP (hscif3_data_d), +SH_PFC_PIN_GROUP (hscif4_data_a), +SH_PFC_PIN_GROUP (hscif4_clk), +SH_PFC_PIN_GROUP (hscif4_ctrl), +SH_PFC_PIN_GROUP (hscif4_data_b),SH_PFC_PIN_GROUP (scif0_data),SH_PFC_PIN_GROUP (scif0_clk),SH_PFC_PIN_GROUP (scif0_ctrl),
@@ -1638,6 +1848,46 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(scif5_clk), }; +static const char *const hscif0_groups[] = { +"hscif0_data" , +"hscif0_clk" , +"hscif0_ctrl" , +}; + +static const char *const hscif1_groups[] = { +"hscif1_data_a" , +"hscif1_clk_a" , +"hscif1_ctrl_a" , +"hscif1_data_b" , +"hscif1_clk_b" , +"hscif1_ctrl_b" , +}; + +static const char *const hscif2_groups[] = { +"hscif2_data_a" , +"hscif2_clk_a" , +"hscif2_ctrl_a" , +"hscif2_data_b" , +"hscif2_clk_b" , +"hscif2_ctrl_b" , +}; + +static const char *const hscif3_groups[] = { +"hscif3_data_a" , +"hscif3_clk" , +"hscif3_ctrl" , +"hscif3_data_b" , +"hscif3_data_c" , +"hscif3_data_d" , +}; + +static const char *const hscif4_groups[] = { +"hscif4_data_a" , +"hscif4_clk" , +"hscif4_ctrl" , +"hscif4_data_b" , +}; +static const char *const scif0_groups[] = {"scif0_data" ,"scif0_clk" ,
@@ -1682,6 +1932,11 @@ static const char * const scif5_groups[] = { };static const struct sh_pfc_function pinmux_functions[] = { +SH_PFC_FUNCTION (hscif0), +SH_PFC_FUNCTION (hscif1), +SH_PFC_FUNCTION (hscif2), +SH_PFC_FUNCTION (hscif3), +SH_PFC_FUNCTION (hscif4),SH_PFC_FUNCTION (scif0),SH_PFC_FUNCTION (scif1),SH_PFC_FUNCTION (scif2),
Signature · 1 line
1.9.1
Quoted 4 lines · Geert Uytterhoeven
Signed-off-by Geert Uytterhoeven <[email protected]>---
v2:
- Rebased.
Yours,
Linus Walleij
PATCH v2 1/1 pinctrl: sh-pfc: r8a7795: Add SDHI support
In reply to Geert UytterhoevenFrom: Takeshi Kihara <[email protected]>
Add SDHI[0-3] pinmux support to r8a7795 SoC.
---
Note: This patch is picked from
https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x
and rebased against
https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-08-v4.4-rc4
Changes in v2:
Rebased against renesas-drivers-2015-12-08-v4.4-rc4 dropping the parts already added by
[PATCH v2 1/2] pinctrl: sh-pfc: r8a7795: Add pinmux data for single-function pins" (http://www.spinics.net/lists/linux-gpio/msg09960.html).
drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 274 +++++++++++++++++++++++++++++++++++ 1 file changed, 274 insertions(+)
drivers/pinctrl/sh-pfc/pfc-r8a7795.c +274 -0
@@ -2674,6 +2674,212 @@ static const unsigned int scif5_clk_pins[] = {static const unsigned int scif5_clk_mux[] = {SCK5_MARK , }; +/* - SDHI0 ------------------------------------------------------------------ */ +static const unsigned int sdhi0_data1_pins[] = { +/* D0 */ +RCAR_GP_PIN (3 ,2 ), +}; +static const unsigned int sdhi0_data1_mux[] = { +SD0_DAT0_MARK , +}; +static const unsigned int sdhi0_data4_pins[] = { +/* D[0:3] */ +RCAR_GP_PIN (3 ,2 ),RCAR_GP_PIN (3 ,3 ), +RCAR_GP_PIN (3 ,4 ),RCAR_GP_PIN (3 ,5 ), +}; +static const unsigned int sdhi0_data4_mux[] = { +SD0_DAT0_MARK ,SD0_DAT1_MARK , +SD0_DAT2_MARK ,SD0_DAT3_MARK , +}; +static const unsigned int sdhi0_ctrl_pins[] = { +/* CLK, CMD */ +RCAR_GP_PIN (3 ,0 ),RCAR_GP_PIN (3 ,1 ), +}; +static const unsigned int sdhi0_ctrl_mux[] = { +SD0_CLK_MARK ,SD0_CMD_MARK , +}; +static const unsigned int sdhi0_cd_pins[] = { +/* CD */ +RCAR_GP_PIN (3 ,12 ), +}; +static const unsigned int sdhi0_cd_mux[] = { +SD0_CD_MARK , +}; +static const unsigned int sdhi0_wp_pins[] = { +/* WP */ +RCAR_GP_PIN (3 ,13 ), +}; +static const unsigned int sdhi0_wp_mux[] = { +SD0_WP_MARK , +}; +/* - SDHI1 ------------------------------------------------------------------ */ +static const unsigned int sdhi1_data1_pins[] = { +/* D0 */ +RCAR_GP_PIN (3 ,8 ), +}; +static const unsigned int sdhi1_data1_mux[] = { +SD1_DAT0_MARK , +}; +static const unsigned int sdhi1_data4_pins[] = { +/* D[0:3] */ +RCAR_GP_PIN (3 ,8 ),RCAR_GP_PIN (3 ,9 ), +RCAR_GP_PIN (3 ,10 ),RCAR_GP_PIN (3 ,11 ), +}; +static const unsigned int sdhi1_data4_mux[] = { +SD1_DAT0_MARK ,SD1_DAT1_MARK , +SD1_DAT2_MARK ,SD1_DAT3_MARK , +}; +static const unsigned int sdhi1_ctrl_pins[] = { +/* CLK, CMD */ +RCAR_GP_PIN (3 ,6 ),RCAR_GP_PIN (3 ,7 ), +}; +static const unsigned int sdhi1_ctrl_mux[] = { +SD1_CLK_MARK ,SD1_CMD_MARK , +}; +static const unsigned int sdhi1_cd_pins[] = { +/* CD */ +RCAR_GP_PIN (3 ,14 ), +}; +static const unsigned int sdhi1_cd_mux[] = { +SD1_CD_MARK , +}; +static const unsigned int sdhi1_wp_pins[] = { +/* WP */ +RCAR_GP_PIN (3 ,15 ), +}; +static const unsigned int sdhi1_wp_mux[] = { +SD1_WP_MARK , +}; +/* - SDHI2 ------------------------------------------------------------------ */ +static const unsigned int sdhi2_data1_pins[] = { +/* D0 */ +RCAR_GP_PIN (4 ,2 ), +}; +static const unsigned int sdhi2_data1_mux[] = { +SD2_DAT0_MARK , +}; +static const unsigned int sdhi2_data4_pins[] = { +/* D[0:3] */ +RCAR_GP_PIN (4 ,2 ),RCAR_GP_PIN (4 ,3 ), +RCAR_GP_PIN (4 ,4 ),RCAR_GP_PIN (4 ,5 ), +}; +static const unsigned int sdhi2_data4_mux[] = { +SD2_DAT0_MARK ,SD2_DAT1_MARK , +SD2_DAT2_MARK ,SD2_DAT3_MARK , +}; +static const unsigned int sdhi2_data8_pins[] = { +/* D[0:7] */ +RCAR_GP_PIN (4 ,2 ),RCAR_GP_PIN (4 ,3 ), +RCAR_GP_PIN (4 ,4 ),RCAR_GP_PIN (4 ,5 ), +RCAR_GP_PIN (3 ,8 ),RCAR_GP_PIN (3 ,9 ), +RCAR_GP_PIN (3 ,10 ),RCAR_GP_PIN (3 ,11 ), +}; +static const unsigned int sdhi2_data8_mux[] = { +SD2_DAT0_MARK ,SD2_DAT1_MARK , +SD2_DAT2_MARK ,SD2_DAT3_MARK , +SD2_DAT4_MARK ,SD2_DAT5_MARK , +SD2_DAT6_MARK ,SD2_DAT7_MARK , +}; +static const unsigned int sdhi2_ctrl_pins[] = { +/* CLK, CMD */ +RCAR_GP_PIN (4 ,0 ),RCAR_GP_PIN (4 ,1 ), +}; +static const unsigned int sdhi2_ctrl_mux[] = { +SD2_CLK_MARK ,SD2_CMD_MARK , +}; +static const unsigned int sdhi2_cd_a_pins[] = { +/* CD */ +RCAR_GP_PIN (4 ,13 ), +}; +static const unsigned int sdhi2_cd_a_mux[] = { +SD2_CD_A_MARK , +}; +static const unsigned int sdhi2_cd_b_pins[] = { +/* CD */ +RCAR_GP_PIN (5 ,10 ), +}; +static const unsigned int sdhi2_cd_b_mux[] = { +SD2_CD_B_MARK , +}; +static const unsigned int sdhi2_wp_a_pins[] = { +/* WP */ +RCAR_GP_PIN (4 ,14 ), +}; +static const unsigned int sdhi2_wp_a_mux[] = { +SD2_WP_A_MARK , +}; +static const unsigned int sdhi2_wp_b_pins[] = { +/* WP */ +RCAR_GP_PIN (5 ,11 ), +}; +static const unsigned int sdhi2_wp_b_mux[] = { +SD2_WP_B_MARK , +}; +static const unsigned int sdhi2_ds_pins[] = { +/* DS */ +RCAR_GP_PIN (4 ,6 ), +}; +static const unsigned int sdhi2_ds_mux[] = { +SD2_DS_MARK , +}; +/* - SDHI3 ------------------------------------------------------------------ */ +static const unsigned int sdhi3_data1_pins[] = { +/* D0 */ +RCAR_GP_PIN (4 ,9 ), +}; +static const unsigned int sdhi3_data1_mux[] = { +SD3_DAT0_MARK , +}; +static const unsigned int sdhi3_data4_pins[] = { +/* D[0:3] */ +RCAR_GP_PIN (4 ,9 ),RCAR_GP_PIN (4 ,10 ), +RCAR_GP_PIN (4 ,11 ),RCAR_GP_PIN (4 ,12 ), +}; +static const unsigned int sdhi3_data4_mux[] = { +SD3_DAT0_MARK ,SD3_DAT1_MARK , +SD3_DAT2_MARK ,SD3_DAT3_MARK , +}; +static const unsigned int sdhi3_data8_pins[] = { +/* D[0:7] */ +RCAR_GP_PIN (4 ,9 ),RCAR_GP_PIN (4 ,10 ), +RCAR_GP_PIN (4 ,11 ),RCAR_GP_PIN (4 ,12 ), +RCAR_GP_PIN (4 ,13 ),RCAR_GP_PIN (4 ,14 ), +RCAR_GP_PIN (4 ,15 ),RCAR_GP_PIN (4 ,16 ), +}; +static const unsigned int sdhi3_data8_mux[] = { +SD3_DAT0_MARK ,SD3_DAT1_MARK , +SD3_DAT2_MARK ,SD3_DAT3_MARK , +SD3_DAT4_MARK ,SD3_DAT5_MARK , +SD3_DAT6_MARK ,SD3_DAT7_MARK , +}; +static const unsigned int sdhi3_ctrl_pins[] = { +/* CLK, CMD */ +RCAR_GP_PIN (4 ,7 ),RCAR_GP_PIN (4 ,8 ), +}; +static const unsigned int sdhi3_ctrl_mux[] = { +SD3_CLK_MARK ,SD3_CMD_MARK , +}; +static const unsigned int sdhi3_cd_pins[] = { +/* CD */ +RCAR_GP_PIN (4 ,15 ), +}; +static const unsigned int sdhi3_cd_mux[] = { +SD3_CD_MARK , +}; +static const unsigned int sdhi3_wp_pins[] = { +/* WP */ +RCAR_GP_PIN (4 ,16 ), +}; +static const unsigned int sdhi3_wp_mux[] = { +SD3_WP_MARK , +}; +static const unsigned int sdhi3_ds_pins[] = { +/* DS */ +RCAR_GP_PIN (4 ,17 ), +}; +static const unsigned int sdhi3_ds_mux[] = { +SD3_DS_MARK , +};/* - SCIF Clock ------------------------------------------------------------- */ static const unsigned int scif_clk_a_pins[] = {
@@ -3047,6 +3253,32 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {SH_PFC_PIN_GROUP (scif5_clk),SH_PFC_PIN_GROUP (scif_clk_a),SH_PFC_PIN_GROUP (scif_clk_b), +SH_PFC_PIN_GROUP (sdhi0_data1), +SH_PFC_PIN_GROUP (sdhi0_data4), +SH_PFC_PIN_GROUP (sdhi0_ctrl), +SH_PFC_PIN_GROUP (sdhi0_cd), +SH_PFC_PIN_GROUP (sdhi0_wp), +SH_PFC_PIN_GROUP (sdhi1_data1), +SH_PFC_PIN_GROUP (sdhi1_data4), +SH_PFC_PIN_GROUP (sdhi1_ctrl), +SH_PFC_PIN_GROUP (sdhi1_cd), +SH_PFC_PIN_GROUP (sdhi1_wp), +SH_PFC_PIN_GROUP (sdhi2_data1), +SH_PFC_PIN_GROUP (sdhi2_data4), +SH_PFC_PIN_GROUP (sdhi2_data8), +SH_PFC_PIN_GROUP (sdhi2_ctrl), +SH_PFC_PIN_GROUP (sdhi2_cd_a), +SH_PFC_PIN_GROUP (sdhi2_wp_a), +SH_PFC_PIN_GROUP (sdhi2_cd_b), +SH_PFC_PIN_GROUP (sdhi2_wp_b), +SH_PFC_PIN_GROUP (sdhi2_ds), +SH_PFC_PIN_GROUP (sdhi3_data1), +SH_PFC_PIN_GROUP (sdhi3_data4), +SH_PFC_PIN_GROUP (sdhi3_data8), +SH_PFC_PIN_GROUP (sdhi3_ctrl), +SH_PFC_PIN_GROUP (sdhi3_cd), +SH_PFC_PIN_GROUP (sdhi3_wp), +SH_PFC_PIN_GROUP (sdhi3_ds),SH_PFC_PIN_GROUP (ssi0_data),SH_PFC_PIN_GROUP (ssi01239_ctrl), SH_PFC_PIN_GROUP(ssi1_data_a),
@@ -3315,6 +3547,44 @@ static const char * const scif_clk_groups[] = { "scif_clk_b", }; +static const char *const sdhi0_groups[] = { +"sdhi0_data1" , +"sdhi0_data4" , +"sdhi0_ctrl" , +"sdhi0_cd" , +"sdhi0_wp" , +}; + +static const char *const sdhi1_groups[] = { +"sdhi1_data1" , +"sdhi1_data4" , +"sdhi1_ctrl" , +"sdhi1_cd" , +"sdhi1_wp" , +}; + +static const char *const sdhi2_groups[] = { +"sdhi2_data1" , +"sdhi2_data4" , +"sdhi2_data8" , +"sdhi2_ctrl" , +"sdhi2_cd_a" , +"sdhi2_wp_a" , +"sdhi2_cd_b" , +"sdhi2_wp_b" , +"sdhi2_ds" , +}; + +static const char *const sdhi3_groups[] = { +"sdhi3_data1" , +"sdhi3_data4" , +"sdhi3_data8" , +"sdhi3_ctrl" , +"sdhi3_cd" , +"sdhi3_wp" , +"sdhi3_ds" , +}; +static const char *const ssi_groups[] = {"ssi0_data" ,"ssi01239_ctrl" ,
@@ -3365,6 +3635,10 @@ static const struct sh_pfc_function pinmux_functions[] = {SH_PFC_FUNCTION (scif4),SH_PFC_FUNCTION (scif5),SH_PFC_FUNCTION (scif_clk), +SH_PFC_FUNCTION (sdhi0), +SH_PFC_FUNCTION (sdhi1), +SH_PFC_FUNCTION (sdhi2), +SH_PFC_FUNCTION (sdhi3), SH_PFC_FUNCTION(ssi), };
Signature · 1 line
2.6.4
Re: [PATCH v2] pinctrl: sh-pfc: r8a7795: Add SDHI support
In reply to Geert UytterhoevenHi Dirk,
Quoted 7 lines · Dirk Behme
From: Takeshi Kihara <[email protected]>
Add SDHI[0-3] pinmux support to r8a7795 SoC.
Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Dirk Behme <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thank you, queued for v4.5.
Quoted 7 lines
---
Note: This patch is picked fromhttps://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x
and rebased against
Quoted 8 lines
https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-08-v4.4-rc4
Changes in v2:
Rebased against renesas-drivers-2015-12-08-v4.4-rc4 dropping the parts already added by
[PATCH v2 1/2] pinctrl: sh-pfc: r8a7795: Add pinmux data for single-function pins" (http://www.spinics.net/lists/linux-gpio/msg09960.html).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds