From patchwork Sat Jan 10 18:22:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5605131 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 796C1C058D for ; Sat, 10 Jan 2015 18:22:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B147220531 for ; Sat, 10 Jan 2015 18:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD42E20529 for ; Sat, 10 Jan 2015 18:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752974AbbAJSWl (ORCPT ); Sat, 10 Jan 2015 13:22:41 -0500 Received: from mail-la0-f51.google.com ([209.85.215.51]:56947 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753218AbbAJSWk (ORCPT ); Sat, 10 Jan 2015 13:22:40 -0500 Received: by mail-la0-f51.google.com with SMTP id ms9so18961112lab.10 for ; Sat, 10 Jan 2015 10:22:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding:content-type; bh=4btDQqJFSek7OK+8XLyJ6mSDlxWYIsdYyuvEtmRLpoI=; b=RMWh4VVtQUOP/GpqwQztMHy60l4ykf2hWFgIcV8HU8PXITn55LxMcl36KuQPxItZY1 yXbCe1BoHTgSXTxHKyxr5RZu0UNwOfdGq9y4oZAAMYp9IcpXRz8c75yfb7RjHvp5HznQ ifL0aV/67ysnjK6Ju1wrOM8tkxJNh2HSXakZiWQj1aWop/EXgOO7i4HQ5tr3uIsvuDen huksWNEhX8IvmFmGdo8Vh+zDeXLtzjSM5XhD/RhnsYHTKxYyVRr/fh4Vy+n5oMypmEkp +CQN8NXcLqE2caKqxQ7xQk9BSrCeSOA6+Q09Xu7GAboMJ4Y8om2jROWLIch1eUFTtuCh Bs7Q== X-Gm-Message-State: ALoCoQlPWWdeqR0MFuxZSV8GNY5BS7RJtrtzXonMFM1W5nDtHw21eqwJrxvbogGOUNuVNrWeC6Q1 X-Received: by 10.112.172.194 with SMTP id be2mr28663364lbc.53.1420914159356; Sat, 10 Jan 2015 10:22:39 -0800 (PST) Received: from wasted.cogentembedded.com (ppp16-226.pppoe.mtu-net.ru. [81.195.16.226]) by mx.google.com with ESMTPSA id r3sm2691704lal.37.2015.01.10.10.22.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jan 2015 10:22:38 -0800 (PST) From: Sergei Shtylyov To: linus.walleij@linaro.org, linux-sh@vger.kernel.org, laurent.pinchart@ideasonboard.com, linux-gpio@vger.kernel.org Subject: [PATCH 2/2] sh-pfc: r8a7791: add MLB+ pin group Date: Sat, 10 Jan 2015 21:22:36 +0300 Message-ID: <1771436.VTFsboh7mX@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.17.7-200.fc20.x86_64; KDE/4.14.3; x86_64; ; ) MIME-Version: 1.0 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Add MLB+ 3-pin mode pin group to R8A7791 PFC driver. Based on original patch by Andrey Gusakov . Signed-off-by: Sergei Shtylyov Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart --- The patch is against the 'devel' branch of Linus W.'s 'linux-pinctrl.git' repo. drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7791.c =================================================================== --- linux-pinctrl.orig/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7791.c @@ -2391,6 +2391,13 @@ static const unsigned int intc_irq3_pins static const unsigned int intc_irq3_mux[] = { IRQ3_MARK, }; +/* - MLB+ ------------------------------------------------------------------- */ +static const unsigned int mlb_3pin_pins[] = { + RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9), +}; +static const unsigned int mlb_3pin_mux[] = { + MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK, +}; /* - MMCIF ------------------------------------------------------------------ */ static const unsigned int mmc_data1_pins[] = { /* D[0] */ @@ -4267,6 +4274,7 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(intc_irq1), SH_PFC_PIN_GROUP(intc_irq2), SH_PFC_PIN_GROUP(intc_irq3), + SH_PFC_PIN_GROUP(mlb_3pin), SH_PFC_PIN_GROUP(mmc_data1), SH_PFC_PIN_GROUP(mmc_data4), SH_PFC_PIN_GROUP(mmc_data8), @@ -4648,6 +4656,10 @@ static const char * const intc_groups[] "intc_irq3", }; +static const char * const mlb_groups[] = { + "mlb_3pin", +}; + static const char * const mmc_groups[] = { "mmc_data1", "mmc_data4", @@ -4972,6 +4984,7 @@ static const struct sh_pfc_function pinm SH_PFC_FUNCTION(i2c7), SH_PFC_FUNCTION(i2c8), SH_PFC_FUNCTION(intc), + SH_PFC_FUNCTION(mlb), SH_PFC_FUNCTION(mmc), SH_PFC_FUNCTION(msiof0), SH_PFC_FUNCTION(msiof1),