Message ID | 20200430214529.18887-3-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBFUOVX2QKGQEZHFECGI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F2D193F077 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Apr 2020 23:45:59 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id r198sf994170pfc.8 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Apr 2020 14:45:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588283158; cv=pass; d=google.com; s=arc-20160816; b=oU+92tsiJ7USWb2AXRiYivMuSex44cprPPRXVx5VlbQ0vU1Q3rq1mZ134cq/yaYYgk g3epw3YeRMoJcJ7f4GytmNXEFm7p3XJC6TO63rlaQitG3SsozYjz+aHt+6nae4J6ni7M +1NOkHFXhbLNu+jivAKBw1K3bCE0gK3w7EkBoRH4YMzvSATYb6mxDXL2vEQqbTnBg+yz 9CCEL5oybUfmiP4xS88MXA6JsG0CXgwGxZfvsG259g5fUQ2SsR3UHnJlw6MTG9fpn+7P GPFsEEWS/3XTdApPBGhGZ4MOibWTRB4hYI9cB6gkJnAtXfflF5I0XaPPL3G2DDd1lj+p 1udg== 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:dkim-signature; bh=Zef/FZu6hRwggm4bbEBIvfyuF5A6eWCpWNxGK/chYpI=; b=0aM+qvD9rI3zm7UrHLX75aGPT7wCzZgxZiySr46outKpQHQbCLLHxLqE1UL2Zx4l9o 0YaNMEVmV7+cQE5XGc208yBrtkrtizLfwZa0upQzfHGaTB2Gp3tNBhKbZqKfT0RnBSy4 2qFkoyE2BOPGhP6erA9rOCnyIYI223mi/+NVWGEG5RGTlOLL8w0GgQ/NmQdxUyBZXnn7 WohjeIZ2lrPVtJqIT0HrkGAb6LG2teu7mTTzqaZ8nbo8LYnO4YGEnXJ4Z21lys7XwiWP NPjk0/iBiZD37M3s4PhSx42fY+HeveTy70/CwsTbG5kdwma42SuyX8BtGZ3yuguEeE+4 iEXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a1u4SNqw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=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=Zef/FZu6hRwggm4bbEBIvfyuF5A6eWCpWNxGK/chYpI=; b=GmXmK7w7YbqgYNQ3IH3wCHTgNVoLfUZYu7NF40XJceiYTYYRq/FhXTU8b9gRSnVrZd C9FiWylN4Jqyvu6yN4O8m5pP1BuWN/S5GZkqYvP6aMdgdGyVs9bTP7r3BcCqn29KTg1K zo1AAk2Ppla5eruLQ/RhmYJ0LG+CN0lY4PGRE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=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=Zef/FZu6hRwggm4bbEBIvfyuF5A6eWCpWNxGK/chYpI=; b=H6e6WgpbphXXuRmNl2qm9Lhuo9IDvIAbTxSyGl392SolSdUcpKwFoMnNc7fEhjud2c 7LQ/1yTAzpGbEkFTQo3qWVyZxzvpi3I/8VCanBntV7zqcoavYTwj6Y5ADUYCFpRI6pRm dbSbm1T+aAhY32Y/ub3GI/SAO7fbXz18ZcLP2xR7fLDdQeuMF5iCggBsCGdQYOWBDiZS ipNeXVy0m/9f+QkjTgBUQFtT1/O5qdHXVyCe4+wDFoifZSIqNJnJ5fq4bxfKdp4lPpot roqATTFfz3KNqt7nDPPHZOPN1dqTSJuvI+G6ntkqmgl1XtIm5SiIP4e96qGR7pDq4HrJ wh/g== X-Gm-Message-State: AGi0PubSjQrnR+g+TZvprWuhOm4oiFiZk+969+btVc2jcT5foICBINuU ixqqrolVhpM+jtexbgadpSHKJrKu X-Google-Smtp-Source: APiQypIcnYGvjlPumEg3Fys0TrtRL6byJQo6rLVeHawoMAJxrM497H6e4IalIPfc/E0RGXKzpffsRA== X-Received: by 2002:a63:585a:: with SMTP id i26mr1033984pgm.39.1588283158404; Thu, 30 Apr 2020 14:45:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ac91:: with SMTP id h17ls5081632plr.3.gmail; Thu, 30 Apr 2020 14:45:58 -0700 (PDT) X-Received: by 2002:a17:902:5a47:: with SMTP id f7mr1120766plm.288.1588283157927; Thu, 30 Apr 2020 14:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588283157; cv=none; d=google.com; s=arc-20160816; b=woXN+GHETmO148qdPXWRJ/nQMdkkuUeJfRo/LTyLvlTFY1nIvwPTxZJLwrvBHR8hvy vmVADY2WNh5u74fc9IPCnBhtPSE+QJR4nsfyxdNMp1XzaH/4L3bnH+Tl0iyF2Eco71Rt Vbj8W9MrlxH99LIoc1DrOn4nekHX4QPo73CFi4mA/HnF9UpRtMlhVMY7TNy4uakG0oAd gQkChp0GakeV08AzHnG+WvrkiNDKBJElsVqwpHYD/JKHg2cnM9owy8434fTNrMjE29Ws U4jIE/N5vQIBaj7PnSrpV8SiDPmkE0ec7KTUCo6Vqf7AVG71m5mWWRXXAcb022D2uQSn gqDQ== 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 :dkim-signature; bh=40olgW3N0Uw63GCK12v84nv1cBBanm0u/AYCKonjKBo=; b=tPF7MdJtVh6Q7mxa0iWziB3xZMtmNwXLvboL1fVrT3JxnZoyzEFqLuArJKQO+l2SFN b36RQZMneM7ts++baEI9Al30mipfnb/PNWUIy/FMKJbyZkr6c3QkMqgR9USxUIQLa9/I YH/Gojy7CV1F43fYMtx7CdIjJ9jVRxPHm2YzOM2krztnfUqHDjerCya82IQ7e4Cc+OVp Ys6aUstkzY27RMtojuP3E3BiSSDmHy1FrGZ+vfufyHi1Pc9BytEgd7447C/+v+WuvT7z LttXnA4tB0yRnagIFyvXcTFJ+9XwFj/0tw93m7Ey2dhIV06BuaAN3O3rWQxSHfPiZ6W+ lGwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a1u4SNqw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q21sor1712100pgn.46.2020.04.30.14.45.57 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 30 Apr 2020 14:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:e210:: with SMTP id q16mr1033945pgh.26.1588283157626; Thu, 30 Apr 2020 14:45:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a9f2:11c6:8c6c:2861]) by smtp.gmail.com with ESMTPSA id p64sm615243pjp.7.2020.04.30.14.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 14:45:56 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Kever Yang <kever.yang@rock-chips.com>, Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Tom Rini <trini@konsulko.com>, Frank Wang <frank.wang@rock-chips.com>, William Wu <william.wu@rock-chips.com>, Shawn Lin <shawn.lin@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>, Patrice Chotard <patrice.chotard@st.com> Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [RFC 2/7] clk: rk3399: Enable/Disable the USB2PHY clk Date: Fri, 1 May 2020 03:15:24 +0530 Message-Id: <20200430214529.18887-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430214529.18887-1-jagan@amarulasolutions.com> References: <20200430214529.18887-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a1u4SNqw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.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 7feba92f9e..b1c89ea127 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;
Enable/Disable the USB2PHY clk for rk3399. CLK is clear in enable and set in disable functionality. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/clk/rockchip/clk_rk3399.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)