Message ID | 20200526033220.20047-2-frank.wang@rock-chips.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD745LOGUQLBB2U3WL3AKGQELY2ZAMY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E3F9B3F1EE for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 26 May 2020 05:32:59 +0200 (CEST) Received: by mail-ot1-f72.google.com with SMTP id 99sf9240021oty.6 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 25 May 2020 20:32:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590463978; cv=pass; d=google.com; s=arc-20160816; b=jRzM7WvSI94UXPfRBv1ZmZ36AQmhRI5rBbal7hbaa2PINjMVGh2ba8eB4b2OblnAjP pLbfJNuWGlNBHdemQWSRS1p7ZKD/mm5ye6qG7x128ajNrQIORxHIqGkYHdOB+CBUvFv1 Qss4oY4/nnH+wtDgovfv6J2tfuQCc/QwAMlJFLP7vlbtpGJtN160zNBo6jtySlyCWQ2P 6mIja5ja4c4+nWjq/hN71yWfqpnNl6QB8D+Fb30X9pn31czAeS8EZmSR5KNkS2VtvWvF ddUm8phv6FqgXG+lwJHLKcGD93sVKdAJq+U908STuKnG2Cs6THqBb8tcDbQc/+W9bG6w YRow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:sender:dkim-signature; bh=3RNK9c+pdw8k80cUOgJHHmOjE5XBoFD75seXwiXfUEU=; b=EEzhPkO1vW9FwRN/bxALS4eQCiIQ+S78WTh38OzS+25bDxaLSJtvc6InzRfIw/3B0p hoYekcQgMYGkPKhqtTH+phlavChWe7hOEd4AXNVcaIEJvavfkBJG3BnepK9oJ0bomxUp 0e0erepQGiCwg34barYSe7aJ+xZpMFw7zEmeSVHe9Nl9bbMwQ9uEtBSnjMD5FtNjwp9n kDEgk/PDpABCnPIv00U0PHe7M0cue1PyOIDhvh+tWgpCjAz6h5rBzOfN7Jdr3LSys6TT NN6vW/8BEZ+kU42FJAtB3xvhgsYRGyxTHwX+GuEgOeSz/Vtvp2mpDwPktsH6Ss+mMZQD ak+g== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.131 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=3RNK9c+pdw8k80cUOgJHHmOjE5XBoFD75seXwiXfUEU=; b=MIM2l+GTwHONbJ6ccL1uyEBQLWLpSjAC33RCMECC+6XsAS7BEE42kupIQg7Zl9gYZ4 HEe6AzZ16v3+qfD3AtYqhvSQMzmjA46JORW2G887lCgeFEa6bzOhCEo/rnSA4M+7i1PR R0pGd9WLccRzUaFXv22Y+A0532kPS+Y2sdwHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=3RNK9c+pdw8k80cUOgJHHmOjE5XBoFD75seXwiXfUEU=; b=AXaA+gKkr+6Ohg6bUKPLFYQpdkQwW70TaqRMgdYICOaEskN1O+85cn65KzAbA2Pi2o N7diedSY5S/7ey3uQx+7CLxwWIPzLjSCnb2wBNYSs6wPZQJux53nIvQxE79O6LLt3aU5 BTPcnO1PdBScXiIUj4pP/qL6pBTx8ga024K2Yne3+lqXtVxTDlMjFGoljjgjiJT8vHL/ hXGt2nEzsI2jW8DEFRa76uZxj6ZLz6yBliHec3fuYKN50TBIUZRmgARwDPQwUT3O2Fkb i3ObjaQpcbNOzDWqhWlPrxZ8PImBcnzbYHaSO4ANUHR77wxSJM8O4BuZBXFpnIi3UUJU DaKg== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AOAM531FHJYf2CAqf8ZItXDBZkUpv7/bDHDl73q6pnOzHjzTN5Zb42zG 8PTMGWya6HOUWsUD/lfbXZvCy8rw X-Google-Smtp-Source: ABdhPJxq9KM9YcZxNbNreRAZ46jvVGYn2MDyzhSsAwLSO82S/EpLQnryzI5O5V0iRDGHo6UEU4df/Q== X-Received: by 2002:a05:6830:1455:: with SMTP id w21mr21948769otp.169.1590463978301; Mon, 25 May 2020 20:32:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aca:c7d2:: with SMTP id x201ls1811972oif.8.gmail; Mon, 25 May 2020 20:32:58 -0700 (PDT) X-Received: by 2002:aca:4715:: with SMTP id u21mr13373768oia.25.1590463977900; Mon, 25 May 2020 20:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590463977; cv=none; d=google.com; s=arc-20160816; b=tIi5gGCzoIH5mlpgnLmG8qWYLVuTwwoIqrJHmNiXQYld+LxxlMKQelT14e+ZRTuPM+ yhoCmNd2MuoKbnzzsrw1WUsyXjvdKOix0Aqf3ea/wo/XCbfbNAb4OIVH83lbuNixGQcG +tePnWZo2K40sm+26ugrVX4cvZ7H07PJA8kv5AYhIKCkZKfLlsBWSPwuzMq0IkGOtbRn oBqVgjl5uGHeMF75EgHNbfDBNAH2t932NlQseKv9e1nAOb8179a6Y6BupkyuFbBWkRVD qv37DguP7Ih9BiJMh1fhRZRl6UtQd3ab0fNRfRCm4p/bNt/AcIzjorkN5IFN4A1QkUVc aWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=caGHEc8U8Nqqd4TG7hcNM8/nxnliNnG4H5WbxdNMKGw=; b=wwqTi5pxyXPuw00aBFc52ai1fBVoc5NKl+g394cG+ZuhrmAIRNXQNN8ohSsJKJfLai LbK5nvJsaBT4nAE3oZhZGW2ox/pZmAPOH4mSBgeBcNyAxJrcN3MjLwbi+blQEqsYscax 8Z230UD0zN3132WbDyzGM+tseY9jKXkg1di9Zcc0V0mfritAQdfjaj6vGhZzsxPwGijU +knQkLlKJVuZZojfY6VZdzPSD2fJqi4ulX5lli+NeXRgaAZ0ekFLYVMaYK9IhGNRr+Fi CR/6J4IiBbUhUpqXbETuIOo6+jlaauBqII5edKopG/bo9ZHzU3NhvBdpllngXVAYa14O z/VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.131 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.131]) by mx.google.com with ESMTPS id p4si2272410oti.315.2020.05.25.20.32.57 for <linux-amarula@amarulasolutions.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2020 20:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.131 as permitted sender) client-ip=211.157.147.131; Received: from localhost (unknown [192.168.167.8]) by lucky1.263xmail.com (Postfix) with ESMTP id 2E220A72BA; Tue, 26 May 2020 11:32:24 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P21206T140696379496192S1590463941416434_; Tue, 26 May 2020 11:32:23 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <477ef20d92f1293979b75290065dd7e2> X-RL-SENDER: frank.wang@rock-chips.com X-SENDER: wmc@rock-chips.com X-LOGIN-NAME: frank.wang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Frank Wang <frank.wang@rock-chips.com> To: heiko@sntech.de, marex@denx.de, bmeng.cn@gmail.com, philipp.tomsich@theobroma-systems.com, klaus.goger@theobroma-systems.com, jagan@amarulasolutions.com, sjg@chromium.org, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, marek.belisko@gmail.com, william.wu@rock-chips.com, jianing.ren@rock-chips.com, chenjh@rock-chips.com, wmc@rock-chips.com Subject: [PATCH v6 01/16] clk: rk3399: Enable/Disable the USB2PHY clk Date: Tue, 26 May 2020 11:32:05 +0800 Message-Id: <20200526033220.20047-2-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526033220.20047-1-frank.wang@rock-chips.com> References: <20200526033220.20047-1-frank.wang@rock-chips.com> X-Original-Sender: frank.wang@rock-chips.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.131 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 5fb72d83c2..b53f2f984e 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -1091,6 +1091,12 @@ static int rk3399_clk_enable(struct clk *clk) case SCLK_MACREF_OUT: rk_clrreg(&priv->cru->clkgate_con[5], BIT(6)); break; + case SCLK_USB2PHY0_REF: + rk_clrreg(&priv->cru->clkgate_con[6], BIT(5)); + break; + case SCLK_USB2PHY1_REF: + rk_clrreg(&priv->cru->clkgate_con[6], BIT(6)); + break; case ACLK_GMAC: rk_clrreg(&priv->cru->clkgate_con[32], BIT(0)); break; @@ -1167,6 +1173,12 @@ static int rk3399_clk_disable(struct clk *clk) case SCLK_MACREF_OUT: rk_setreg(&priv->cru->clkgate_con[5], BIT(6)); break; + case SCLK_USB2PHY0_REF: + rk_setreg(&priv->cru->clkgate_con[6], BIT(5)); + break; + case SCLK_USB2PHY1_REF: + rk_setreg(&priv->cru->clkgate_con[6], BIT(6)); + break; case ACLK_GMAC: rk_setreg(&priv->cru->clkgate_con[32], BIT(0)); break;