From patchwork Wed May 8 23:12:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2542111 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 475413FE1F for ; Wed, 8 May 2013 23:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752611Ab3EHXMs (ORCPT ); Wed, 8 May 2013 19:12:48 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:35105 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317Ab3EHXMs (ORCPT ); Wed, 8 May 2013 19:12:48 -0400 Received: by mail-la0-f49.google.com with SMTP id eh20so2245584lab.22 for ; Wed, 08 May 2013 16:12:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id:x-gm-message-state; bh=rtf1J5Q8ixZpbZFes9G2pZBdh4IXFIatGLiiWNrml9A=; b=J8whCYQrU6r+2eMF//rUFRZbr2DAiO7UqFvSnfLOGl0KSbwiTJmoJvxmgFWAisIjEt abs4ODFP3qilJNjAMLpzK9IoNQPi8zZFh/T3YKmepN2FBmTvhcx2n2yp7YwEMoFGfrG8 ShKszYrvl3jOy2ySmP6CtxlhpyrK6yW8iK5oRCCLDYAB0CQtBiEVfMqtwAr5248j/MqL xgUaKL5OFK5tR+WbMKVnSs5YWSPSppXvvcW1Gxy2MfhDpyPDxmGKahGIokzcrszf5Nhe CoEIsZezUOJ3/g4bC1XcyDmqgpE7sAEJgIeTVaLtulfrKg0g2EfmnvDrByoDOUBcGxHd nWRg== X-Received: by 10.112.73.70 with SMTP id j6mr4222629lbv.39.1368054766615; Wed, 08 May 2013 16:12:46 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-76-93-8.pppoe.mtu-net.ru. [91.76.93.8]) by mx.google.com with ESMTPSA id m9sm177983lag.10.2013.05.08.16.12.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 08 May 2013 16:12:45 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org, linus.walleij@linaro.org Subject: [PATCH v4 1/4] sh-pfc: r8a7778: add USB pin groups Date: Thu, 9 May 2013 03:12:47 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: laurent.pinchart@ideasonboard.com References: <201305090309.41113.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201305090309.41113.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201305090312.48346.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQmpsoomKLls1FiFrs0HdjJp8VLQD3FZbpyDbLv+2VwgyEPYUhuiyfZpcT9LrqbTrLFkoPl/ Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Add USB0/1 PENC/USB_OVC pin groups to R8A7778 PFC driver. Signed-off-by: Sergei Shtylyov Acked-by: Laurent Pinchart Acked-by: Linus Walleij --- Changes from version 3: - new patch in this series. drivers/pinctrl/sh-pfc/pfc-r8a7778.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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: renesas/drivers/pinctrl/sh-pfc/pfc-r8a7778.c =================================================================== --- renesas.orig/drivers/pinctrl/sh-pfc/pfc-r8a7778.c +++ renesas/drivers/pinctrl/sh-pfc/pfc-r8a7778.c @@ -1501,6 +1501,18 @@ 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); +/* - USB0 ------------------------------------------------------------------- */ +SH_PFC_PINS(usb0, RCAR_GP_PIN(0, 1)); +SH_PFC_MUX1(usb0, PENC0); +SH_PFC_PINS(usb0_ovc, RCAR_GP_PIN(0, 3)); +SH_PFC_MUX1(usb0_ovc, USB_OVC0); + +/* - USB1 ------------------------------------------------------------------- */ +SH_PFC_PINS(usb1, RCAR_GP_PIN(0, 2)); +SH_PFC_MUX1(usb1, PENC1); +SH_PFC_PINS(usb1_ovc, RCAR_GP_PIN(0, 4)); +SH_PFC_MUX1(usb1_ovc, USB_OVC1); + static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(hscif0_data_a), SH_PFC_PIN_GROUP(hscif0_data_b), @@ -1570,6 +1582,10 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(sdhi2_data4_b), SH_PFC_PIN_GROUP(sdhi2_wp_a), SH_PFC_PIN_GROUP(sdhi2_wp_b), + SH_PFC_PIN_GROUP(usb0), + SH_PFC_PIN_GROUP(usb0_ovc), + SH_PFC_PIN_GROUP(usb1), + SH_PFC_PIN_GROUP(usb1_ovc), }; static const char * const hscif0_groups[] = { @@ -1677,6 +1693,16 @@ static const char * const sdhi2_groups[] "sdhi2_wp_b", }; +static const char * const usb0_groups[] = { + "usb0", + "usb0_ovc", +}; + +static const char * const usb1_groups[] = { + "usb1", + "usb1_ovc", +}; + static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(hscif0), SH_PFC_FUNCTION(hscif1), @@ -1690,6 +1716,8 @@ static const struct sh_pfc_function pinm SH_PFC_FUNCTION(sdhi0), SH_PFC_FUNCTION(sdhi1), SH_PFC_FUNCTION(sdhi2), + SH_PFC_FUNCTION(usb0), + SH_PFC_FUNCTION(usb1), }; static struct pinmux_cfg_reg pinmux_config_regs[] = {