From: Dinh Nguyen <dinguyen@kernel.org>
To: hminas@synopsys.com
Cc: dinguyen@kernel.org, gregkh@linuxfoundation.org,
robh+dt@kernel.org, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org
Subject: [PATCH 2/3] usb: dwc2: Add platform specific data for Intel's Agilex
Date: Tue, 25 Jan 2022 10:18:20 -0600 [thread overview]
Message-ID: <20220125161821.1951906-2-dinguyen@kernel.org> (raw)
In-Reply-To: <20220125161821.1951906-1-dinguyen@kernel.org>
The DWC2 IP on the Agilex platform does not support clock-gating.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
drivers/usb/dwc2/params.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
index d300ae3d9274..1306f4ec788d 100644
--- a/drivers/usb/dwc2/params.c
+++ b/drivers/usb/dwc2/params.c
@@ -82,6 +82,14 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg)
p->phy_utmi_width = 8;
}
+static void dwc2_set_socfpga_agilex_params(struct dwc2_hsotg *hsotg)
+{
+ struct dwc2_core_params *p = &hsotg->params;
+
+ p->power_down = DWC2_POWER_DOWN_PARAM_NONE;
+ p->no_clock_gating = true;
+}
+
static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)
{
struct dwc2_core_params *p = &hsotg->params;
@@ -239,6 +247,8 @@ const struct of_device_id dwc2_of_match_table[] = {
.data = dwc2_set_stm32mp15_fsotg_params },
{ .compatible = "st,stm32mp15-hsotg",
.data = dwc2_set_stm32mp15_hsotg_params },
+ { .compatible = "intel,socfpga-agilex-hsotg",
+ .data = dwc2_set_socfpga_agilex_params },
{},
};
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
--
2.25.1
next prev parent reply other threads:[~2022-01-25 16:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-25 16:18 [PATCH 1/3] dt-bindings: usb: dwc2: add compatible "intel,socfpga-agilex-hsotg" Dinh Nguyen
2022-01-25 16:18 ` Dinh Nguyen [this message]
2022-02-01 5:15 ` [PATCH 2/3] usb: dwc2: Add platform specific data for Intel's Agilex Minas Harutyunyan
2022-01-25 16:18 ` [PATCH 3/3] arm64: dts: agilex: use the compatible "intel,socfpga-agilex-hsotg" Dinh Nguyen
2022-03-18 14:34 ` Krzysztof Kozlowski
2022-02-09 3:19 ` [PATCH 1/3] dt-bindings: usb: dwc2: add " Rob Herring
2022-03-18 14:40 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220125161821.1951906-2-dinguyen@kernel.org \
--to=dinguyen@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hminas@synopsys.com \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).