From patchwork Wed Jun 5 08:26:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 2667121 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 38799DF264 for ; Wed, 5 Jun 2013 08:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753231Ab3FEI2F (ORCPT ); Wed, 5 Jun 2013 04:28:05 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:33855 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753076Ab3FEI1k (ORCPT ); Wed, 5 Jun 2013 04:27:40 -0400 Received: from ayumi.isobedori.kobe.vergenet.net (p5212-ipbfp1903kobeminato.hyogo.ocn.ne.jp [114.172.132.212]) by kirsty.vergenet.net (Postfix) with ESMTP id 4D6BD2671D5; Wed, 5 Jun 2013 18:27:24 +1000 (EST) Received: by ayumi.isobedori.kobe.vergenet.net (Postfix, from userid 7100) id 8C626EDE7E3; Wed, 5 Jun 2013 17:27:22 +0900 (JST) From: Simon Horman To: Arnd Bergmann , Olof Johansson Cc: linux-sh@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, Magnus Damm , Kuninori Morimoto , Simon Horman Subject: [PATCH 099/130] sh-pfc: r8a7778: tidyup SDHI naming suffixes and sort it alphabetically Date: Wed, 5 Jun 2013 17:26:30 +0900 Message-Id: <1370420821-28420-100-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1370420821-28420-1-git-send-email-horms+renesas@verge.net.au> References: <1370420821-28420-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Kuninori Morimoto SDHI 1/2 are the target Signed-off-by: Kuninori Morimoto Acked-by: Laurent Pinchart Signed-off-by: Simon Horman --- drivers/pinctrl/sh-pfc/pfc-r8a7778.c | 164 +++++++++++++++++------------------ 1 file changed, 80 insertions(+), 84 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7778.c b/drivers/pinctrl/sh-pfc/pfc-r8a7778.c index 72f7a3c..15295a5 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7778.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7778.c @@ -1450,60 +1450,56 @@ SDHI_PFC_PINS(sdhi0_wp, RCAR_GP_PIN(3, 18)); SDHI_PFC_WPPN(sdhi0_wp, SD0_WP); /* - SDHI1 ------------------------------------------------------------------ */ -SDHI_PFC_PINS(sdhi1_a_cd, RCAR_GP_PIN(0, 30)); -SDHI_PFC_CDPN(sdhi1_a_cd, SD1_CD_A); -SDHI_PFC_PINS(sdhi1_a_ctrl, RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6)); -SDHI_PFC_CTRL(sdhi1_a_ctrl, SD1_CLK_A, SD1_CMD_A); -SDHI_PFC_PINS(sdhi1_a_data1, RCAR_GP_PIN(1, 7)); -SDHI_PFC_DAT1(sdhi1_a_data1, SD1_DAT0_A); -SDHI_PFC_PINS(sdhi1_a_data4, RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 8), +SDHI_PFC_PINS(sdhi1_cd_a, RCAR_GP_PIN(0, 30)); +SDHI_PFC_CDPN(sdhi1_cd_a, SD1_CD_A); +SDHI_PFC_PINS(sdhi1_cd_b, RCAR_GP_PIN(2, 24)); +SDHI_PFC_CDPN(sdhi1_cd_b, SD1_CD_B); +SDHI_PFC_PINS(sdhi1_ctrl_a, RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6)); +SDHI_PFC_CTRL(sdhi1_ctrl_a, SD1_CLK_A, SD1_CMD_A); +SDHI_PFC_PINS(sdhi1_ctrl_b, RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16)); +SDHI_PFC_CTRL(sdhi1_ctrl_b, SD1_CLK_B, SD1_CMD_B); +SDHI_PFC_PINS(sdhi1_data1_a, RCAR_GP_PIN(1, 7)); +SDHI_PFC_DAT1(sdhi1_data1_a, SD1_DAT0_A); +SDHI_PFC_PINS(sdhi1_data1_b, RCAR_GP_PIN(1, 18)); +SDHI_PFC_DAT1(sdhi1_data1_b, SD1_DAT0_B); +SDHI_PFC_PINS(sdhi1_data4_a, RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 8), RCAR_GP_PIN(0, 5), RCAR_GP_PIN(0, 6)); -SDHI_PFC_DAT4(sdhi1_a_data4, SD1_DAT0_A, SD1_DAT1_A, +SDHI_PFC_DAT4(sdhi1_data4_a, SD1_DAT0_A, SD1_DAT1_A, SD1_DAT2_A, SD1_DAT3_A); -SDHI_PFC_PINS(sdhi1_a_wp, RCAR_GP_PIN(0, 31)); -SDHI_PFC_WPPN(sdhi1_a_wp, SD1_WP_A); - -SDHI_PFC_PINS(sdhi1_b_cd, RCAR_GP_PIN(2, 24)); -SDHI_PFC_CDPN(sdhi1_b_cd, SD1_CD_B); -SDHI_PFC_PINS(sdhi1_b_ctrl, RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16)); -SDHI_PFC_CTRL(sdhi1_b_ctrl, SD1_CLK_B, SD1_CMD_B); -SDHI_PFC_PINS(sdhi1_b_data1, RCAR_GP_PIN(1, 18)); -SDHI_PFC_DAT1(sdhi1_b_data1, SD1_DAT0_B); -SDHI_PFC_PINS(sdhi1_b_data4, RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19), +SDHI_PFC_PINS(sdhi1_data4_b, RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 21)); -SDHI_PFC_DAT4(sdhi1_b_data4, SD1_DAT0_B, SD1_DAT1_B, +SDHI_PFC_DAT4(sdhi1_data4_b, SD1_DAT0_B, SD1_DAT1_B, SD1_DAT2_B, SD1_DAT3_B); -SDHI_PFC_PINS(sdhi1_b_wp, RCAR_GP_PIN(2, 25)); -SDHI_PFC_WPPN(sdhi1_b_wp, SD1_WP_B); - +SDHI_PFC_PINS(sdhi1_wp_a, RCAR_GP_PIN(0, 31)); +SDHI_PFC_WPPN(sdhi1_wp_a, SD1_WP_A); +SDHI_PFC_PINS(sdhi1_wp_b, RCAR_GP_PIN(2, 25)); +SDHI_PFC_WPPN(sdhi1_wp_b, SD1_WP_B); /* - SDH2 ------------------------------------------------------------------- */ -SDHI_PFC_PINS(sdhi2_a_cd, RCAR_GP_PIN(4, 23)); -SDHI_PFC_CDPN(sdhi2_a_cd, SD2_CD_A); -SDHI_PFC_PINS(sdhi2_a_ctrl, RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18)); -SDHI_PFC_CTRL(sdhi2_a_ctrl, SD2_CLK_A, SD2_CMD_A); -SDHI_PFC_PINS(sdhi2_a_data1, RCAR_GP_PIN(4, 19)); -SDHI_PFC_DAT1(sdhi2_a_data1, SD2_DAT0_A); -SDHI_PFC_PINS(sdhi2_a_data4, RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20), +SDHI_PFC_PINS(sdhi2_cd_a, RCAR_GP_PIN(4, 23)); +SDHI_PFC_CDPN(sdhi2_cd_a, SD2_CD_A); +SDHI_PFC_PINS(sdhi2_cd_b, RCAR_GP_PIN(3, 27)); +SDHI_PFC_CDPN(sdhi2_cd_b, SD2_CD_B); +SDHI_PFC_PINS(sdhi2_ctrl_a, RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18)); +SDHI_PFC_CTRL(sdhi2_ctrl_a, SD2_CLK_A, SD2_CMD_A); +SDHI_PFC_PINS(sdhi2_ctrl_b, RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 6)); +SDHI_PFC_CTRL(sdhi2_ctrl_b, SD2_CLK_B, SD2_CMD_B); +SDHI_PFC_PINS(sdhi2_data1_a, RCAR_GP_PIN(4, 19)); +SDHI_PFC_DAT1(sdhi2_data1_a, SD2_DAT0_A); +SDHI_PFC_PINS(sdhi2_data1_b, RCAR_GP_PIN(4, 7)); +SDHI_PFC_DAT1(sdhi2_data1_b, SD2_DAT0_B); +SDHI_PFC_PINS(sdhi2_data4_a, RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 22)); -SDHI_PFC_DAT4(sdhi2_a_data4, SD2_DAT0_A, SD2_DAT1_A, +SDHI_PFC_DAT4(sdhi2_data4_a, SD2_DAT0_A, SD2_DAT1_A, SD2_DAT2_A, SD2_DAT3_A); -SDHI_PFC_PINS(sdhi2_a_wp, RCAR_GP_PIN(4, 24)); -SDHI_PFC_WPPN(sdhi2_a_wp, SD2_WP_A); - -SDHI_PFC_PINS(sdhi2_b_cd, RCAR_GP_PIN(3, 27)); -SDHI_PFC_CDPN(sdhi2_b_cd, SD2_CD_B); -SDHI_PFC_PINS(sdhi2_b_ctrl, RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 6)); -SDHI_PFC_CTRL(sdhi2_b_ctrl, SD2_CLK_B, SD2_CMD_B); -SDHI_PFC_PINS(sdhi2_b_data1, RCAR_GP_PIN(4, 7)); -SDHI_PFC_DAT1(sdhi2_b_data1, SD2_DAT0_B); -SDHI_PFC_PINS(sdhi2_b_data4, RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8), +SDHI_PFC_PINS(sdhi2_data4_b, RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8), RCAR_GP_PIN(3, 25), RCAR_GP_PIN(3, 26)); -SDHI_PFC_DAT4(sdhi2_b_data4, SD2_DAT0_B, SD2_DAT1_B, +SDHI_PFC_DAT4(sdhi2_data4_b, SD2_DAT0_B, SD2_DAT1_B, SD2_DAT2_B, SD2_DAT3_B); -SDHI_PFC_PINS(sdhi2_b_wp, RCAR_GP_PIN(3, 28)); -SDHI_PFC_WPPN(sdhi2_b_wp, SD2_WP_B); - +SDHI_PFC_PINS(sdhi2_wp_a, RCAR_GP_PIN(4, 24)); +SDHI_PFC_WPPN(sdhi2_wp_a, SD2_WP_A); +SDHI_PFC_PINS(sdhi2_wp_b, RCAR_GP_PIN(3, 28)); +SDHI_PFC_WPPN(sdhi2_wp_b, SD2_WP_B); static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(hscif0_data_a), @@ -1554,26 +1550,26 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(sdhi0_data1), SH_PFC_PIN_GROUP(sdhi0_data4), SH_PFC_PIN_GROUP(sdhi0_wp), - SH_PFC_PIN_GROUP(sdhi1_a_cd), - SH_PFC_PIN_GROUP(sdhi1_a_ctrl), - SH_PFC_PIN_GROUP(sdhi1_a_data1), - SH_PFC_PIN_GROUP(sdhi1_a_data4), - SH_PFC_PIN_GROUP(sdhi1_a_wp), - SH_PFC_PIN_GROUP(sdhi1_b_cd), - SH_PFC_PIN_GROUP(sdhi1_b_ctrl), - SH_PFC_PIN_GROUP(sdhi1_b_data1), - SH_PFC_PIN_GROUP(sdhi1_b_data4), - SH_PFC_PIN_GROUP(sdhi1_b_wp), - SH_PFC_PIN_GROUP(sdhi2_a_cd), - SH_PFC_PIN_GROUP(sdhi2_a_ctrl), - SH_PFC_PIN_GROUP(sdhi2_a_data1), - SH_PFC_PIN_GROUP(sdhi2_a_data4), - SH_PFC_PIN_GROUP(sdhi2_a_wp), - SH_PFC_PIN_GROUP(sdhi2_b_cd), - SH_PFC_PIN_GROUP(sdhi2_b_ctrl), - SH_PFC_PIN_GROUP(sdhi2_b_data1), - SH_PFC_PIN_GROUP(sdhi2_b_data4), - SH_PFC_PIN_GROUP(sdhi2_b_wp), + SH_PFC_PIN_GROUP(sdhi1_cd_a), + SH_PFC_PIN_GROUP(sdhi1_cd_b), + SH_PFC_PIN_GROUP(sdhi1_ctrl_a), + SH_PFC_PIN_GROUP(sdhi1_ctrl_b), + SH_PFC_PIN_GROUP(sdhi1_data1_a), + SH_PFC_PIN_GROUP(sdhi1_data1_b), + SH_PFC_PIN_GROUP(sdhi1_data4_a), + SH_PFC_PIN_GROUP(sdhi1_data4_b), + SH_PFC_PIN_GROUP(sdhi1_wp_a), + SH_PFC_PIN_GROUP(sdhi1_wp_b), + SH_PFC_PIN_GROUP(sdhi2_cd_a), + SH_PFC_PIN_GROUP(sdhi2_cd_b), + SH_PFC_PIN_GROUP(sdhi2_ctrl_a), + SH_PFC_PIN_GROUP(sdhi2_ctrl_b), + SH_PFC_PIN_GROUP(sdhi2_data1_a), + SH_PFC_PIN_GROUP(sdhi2_data1_b), + SH_PFC_PIN_GROUP(sdhi2_data4_a), + SH_PFC_PIN_GROUP(sdhi2_data4_b), + SH_PFC_PIN_GROUP(sdhi2_wp_a), + SH_PFC_PIN_GROUP(sdhi2_wp_b), }; static const char * const hscif0_groups[] = { @@ -1656,29 +1652,29 @@ static const char * const sdhi0_groups[] = { }; static const char * const sdhi1_groups[] = { - "sdhi1_a_cd", - "sdhi1_a_ctrl", - "sdhi1_a_data1", - "sdhi1_a_data4", - "sdhi1_a_wp", - "sdhi1_b_cd", - "sdhi1_b_ctrl", - "sdhi1_b_data1", - "sdhi1_b_data4", - "sdhi1_b_wp", + "sdhi1_cd_a", + "sdhi1_cd_b", + "sdhi1_ctrl_a", + "sdhi1_ctrl_b", + "sdhi1_data1_a", + "sdhi1_data1_b", + "sdhi1_data4_a", + "sdhi1_data4_b", + "sdhi1_wp_a", + "sdhi1_wp_b", }; static const char * const sdhi2_groups[] = { - "sdhi2_a_cd", - "sdhi2_a_ctrl", - "sdhi2_a_data1", - "sdhi2_a_data4", - "sdhi2_a_wp", - "sdhi2_b_cd", - "sdhi2_b_ctrl", - "sdhi2_b_data1", - "sdhi2_b_data4", - "sdhi2_b_wp", + "sdhi2_cd_a", + "sdhi2_cd_b", + "sdhi2_ctrl_a", + "sdhi2_ctrl_b", + "sdhi2_data1_a", + "sdhi2_data1_b", + "sdhi2_data4_a", + "sdhi2_data4_b", + "sdhi2_wp_a", + "sdhi2_wp_b", }; static const struct sh_pfc_function pinmux_functions[] = {