From patchwork Fri Nov 10 17:16:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 10053477 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7CC4D60365 for ; Fri, 10 Nov 2017 17:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64A962AF4C for ; Fri, 10 Nov 2017 17:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 597EE2B40B; Fri, 10 Nov 2017 17:16:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD8632AF4C for ; Fri, 10 Nov 2017 17:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750807AbdKJRQz (ORCPT ); Fri, 10 Nov 2017 12:16:55 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:13677 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753211AbdKJRQl (ORCPT ); Fri, 10 Nov 2017 12:16:41 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 11 Nov 2017 02:16:41 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 35F50441A4; Sat, 11 Nov 2017 02:16:41 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.44,375,1505746800"; d="scan'208";a="261926464" Received: from unknown (HELO fabrizio-dev.ree.adwin.renesas.com) ([10.226.37.27]) by relmlii1.idc.renesas.com with ESMTP; 11 Nov 2017 02:16:38 +0900 From: Fabrizio Castro To: Laurent Pinchart , Geert Uytterhoeven , Linus Walleij Cc: Simon Horman , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Chris Paterson , Biju Das , Fabrizio Castro , Ramesh Shanmugasundaram Subject: [RFC PATCH 1/2] pinctrl: sh-pfc: r8a7794: Add can_clk function Date: Fri, 10 Nov 2017 17:16:28 +0000 Message-Id: <1510334189-8942-2-git-send-email-fabrizio.castro@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510334189-8942-1-git-send-email-fabrizio.castro@bp.renesas.com> References: <1510334189-8942-1-git-send-email-fabrizio.castro@bp.renesas.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds can_clk function to r8a7745/r8a7794 which is cleaner, as it reduces duplication, and allows for independent configuration. Signed-off-by: Fabrizio Castro Reviewed-by: Ramesh Shanmugasundaram --- drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7794.c b/drivers/pinctrl/sh-pfc/pfc-r8a7794.c index e5b3d5f..73796aa 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7794.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7794.c @@ -3858,10 +3858,6 @@ static const char * const can0_groups[] = { "can0_data_b", "can0_data_c", "can0_data_d", - "can_clk", - "can_clk_b", - "can_clk_c", - "can_clk_d", }; static const char * const can1_groups[] = { @@ -3869,6 +3865,9 @@ static const char * const can1_groups[] = { "can1_data_b", "can1_data_c", "can1_data_d", +}; + +static const char * const can_clk_groups[] = { "can_clk", "can_clk_b", "can_clk_c", @@ -4248,6 +4247,7 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(avb), SH_PFC_FUNCTION(can0), SH_PFC_FUNCTION(can1), + SH_PFC_FUNCTION(can_clk), SH_PFC_FUNCTION(du0), SH_PFC_FUNCTION(du1), SH_PFC_FUNCTION(eth),