From patchwork Wed Oct 9 22:14:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 3012341 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3FD779F3EF for ; Wed, 9 Oct 2013 22:15:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CC3220260 for ; Wed, 9 Oct 2013 22:15:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 68A92202C7 for ; Wed, 9 Oct 2013 22:14:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756453Ab3JIWO6 (ORCPT ); Wed, 9 Oct 2013 18:14:58 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:39715 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756227Ab3JIWOy (ORCPT ); Wed, 9 Oct 2013 18:14:54 -0400 Received: by mail-la0-f49.google.com with SMTP id ev20so1289019lab.22 for ; Wed, 09 Oct 2013 15:14:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PKwz6OYmbdZZXZqvSsMwjTohYpn9aLDldVXDBFoJw1A=; b=CQqlVK0pqr1fnzV7P1yHgoxtgxVCs3G1ZlywIS5UJH4kR59e0YEz4ssJWCZcLWHGEq f9p//TYdjCxTykXiL2Zs3q5LDjwBkkzfLWJ9ivc+PIsRF9Zx3odofU1Wp2qJxY8k8T8B iVhFIsOv/mKVj1DCL9sS2dszumZn5sTwtk+ka0ThEgPNCEtU0Ttp5lgbZ6SXDmBq+fgZ m9sF0f5ODv28NJTcu9fBHjMoj+eXbdebk+1Z00HT7ZznKXZhBeSFwiHh4BOYbunxgKrC MHBYWHEhatvJJr5sqYb02GLOPhQcemgu2MgUVd4towzag40TD3IkrAkGitKr5Jqjudza E3XA== X-Gm-Message-State: ALoCoQl63IGyW9BxoSaCdJmX5/eWrGZ2fqiTh6+wC2SaVwSp0sz9VSShZDkRSeLgZp03f9zJBwgC X-Received: by 10.152.19.97 with SMTP id d1mr3751698lae.34.1381356893245; Wed, 09 Oct 2013 15:14:53 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id ap7sm37120580lac.10.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 09 Oct 2013 15:14:52 -0700 (PDT) From: Valentine Barshak To: linux-sh@vger.kernel.org, linux-usb@vger.kernel.org Cc: Simon Horman , Magnus Damm , Kuninori Morimoto , Laurent Pinchart , Guennadi Liakhovetski , Greg Kroah-Hartman , Felipe Balbi Subject: [PATCH 2/3] arm: shmobile: r8a7790: Add USBHS clock support Date: Thu, 10 Oct 2013 02:14:46 +0400 Message-Id: <1381356887-15564-3-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1381356887-15564-1-git-send-email-valentine.barshak@cogentembedded.com> References: <1381356887-15564-1-git-send-email-valentine.barshak@cogentembedded.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=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This adds USBHS clock support. Signed-off-by: Valentine Barshak Acked-by: Kuninori Morimoto --- arch/arm/mach-shmobile/clock-r8a7790.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a64f965..161d44e 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -186,6 +186,7 @@ enum { MSTP813, MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720, MSTP717, MSTP716, + MSTP704, MSTP522, MSTP315, MSTP314, MSTP313, MSTP312, MSTP311, MSTP305, MSTP304, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, @@ -208,6 +209,7 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP720] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 20, 0), /* SCIF1 */ [MSTP717] = SH_CLK_MSTP32(&zs_clk, SMSTPCR7, 17, 0), /* HSCIF0 */ [MSTP716] = SH_CLK_MSTP32(&zs_clk, SMSTPCR7, 16, 0), /* HSCIF1 */ + [MSTP704] = SH_CLK_MSTP32(&mp_clk, SMSTPCR7, 4, 0), /* HSUSB */ [MSTP522] = SH_CLK_MSTP32(&extal_clk, SMSTPCR5, 22, 0), /* Thermal */ [MSTP315] = SH_CLK_MSTP32(&div6_clks[DIV6_MMC0], SMSTPCR3, 15, 0), /* MMC0 */ [MSTP314] = SH_CLK_MSTP32(&div4_clks[DIV4_SD0], SMSTPCR3, 14, 0), /* SDHI0 */ @@ -296,6 +298,8 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("ee220000.mmcif", &mstp_clks[MSTP305]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), + CLKDEV_DEV_ID("renesas_usbhs", &mstp_clks[MSTP704]), + CLKDEV_ICK_ID("usbhs", "usb_phy_rcar_gen2", &mstp_clks[MSTP704]), }; #define R8A7790_CLOCK_ROOT(e, m, p0, p1, p30, p31) \