From patchwork Thu May 7 16:10:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 6359331 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 17C249F399 for ; Thu, 7 May 2015 16:10:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4956F203B5 for ; Thu, 7 May 2015 16:10:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7CB83203B7 for ; Thu, 7 May 2015 16:10:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbbEGQKu (ORCPT ); Thu, 7 May 2015 12:10:50 -0400 Received: from mail-wg0-f53.google.com ([74.125.82.53]:36660 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbbEGQKu (ORCPT ); Thu, 7 May 2015 12:10:50 -0400 Received: by wgiu9 with SMTP id u9so48497946wgi.3 for ; Thu, 07 May 2015 09:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=GbRv15XFHlLcK1UrCIDCjtFcwWCYlxmBMIUsRminXEE=; b=HMlLpPySVNBV+UUTdPydkN8KePOnZ4llkGLOOpoHECVcYcH/EdCq98aTmo0y/VRNnJ 2Lz02o+fGWNtjOUVxGkZYrwBpwEHpeVJdA5NLggnfJlbKTGeJ2vda2QpwuCCh821dlKP UHiuCdVJ6s+JjNTL6vyTKPixc2wzL2ufraD1emr+JhUYYQ5o/LpGqpqq9Xx4j/rizyN4 YxXUttHjG+ujUqhqLSbbVFOqz1WjgdLEWmYTqGmu+z385R/xSG5wJ46RxsXRRAzrIq2Y i9yBht1aTvHgyNNsXDvPnCEmt03pHCeq+5/jwIEZocDqSNQwAqCLGq5V4OjsLL2r4Vcx q42Q== X-Received: by 10.180.208.42 with SMTP id mb10mr7836825wic.80.1431015049345; Thu, 07 May 2015 09:10:49 -0700 (PDT) Received: from groucho.site (tsn109-201-154-186.dyn.nltelcom.net. [109.201.154.186]) by mx.google.com with ESMTPSA id pz6sm4111929wjc.43.2015.05.07.09.10.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 09:10:48 -0700 (PDT) From: Ulrich Hecht To: geert@linux-m68k.org, horms@verge.net.au, linux-sh@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com Cc: magnus.damm@gmail.com, kuninori.morimoto.gx@renesas.com, linus.walleij@linaro.org, Ulrich Hecht Subject: [PATCH 4/4] pinctrl: sh-pfc: r8a7791/3: Add SSP pin group Date: Thu, 7 May 2015 18:10:37 +0200 Message-Id: <1431015037-25254-5-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1431015037-25254-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1431015037-25254-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "Stream and Security Processor", applicable to r8a7791 and r8a7793. Based on patch by Hisashi Nakamura. Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c index cbf8ec3..849bd4e 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c @@ -4183,6 +4183,23 @@ static const unsigned int vin2_clk_mux[] = { VI2_CLK_MARK, }; +/* - SSP ------------------------------------------------------------------- */ +static const unsigned int ssp_pins[] = { + RCAR_GP_PIN(5, 25), + RCAR_GP_PIN(5, 26), + RCAR_GP_PIN(5, 27), + RCAR_GP_PIN(5, 28), + RCAR_GP_PIN(5, 29), +}; + +static const unsigned int ssp_mux[] = { + STP_IVCXO27_0_MARK, + STP_ISCLK_0_MARK, + STP_ISD_0_MARK, + STP_ISEN_0_MARK, + STP_ISSYNC_0_MARK, +}; + static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(audio_clk_a), SH_PFC_PIN_GROUP(audio_clk_b), @@ -4472,6 +4489,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(ssi9_data_b), SH_PFC_PIN_GROUP(ssi9_ctrl), SH_PFC_PIN_GROUP(ssi9_ctrl_b), + SH_PFC_PIN_GROUP(ssp), SH_PFC_PIN_GROUP(usb0), SH_PFC_PIN_GROUP(usb1), VIN_DATA_PIN_GROUP(vin0_data, 24),