All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/6] clk: imx: clk-imxrt1050: introduce IMXRT1050_CLK_USBOH3
Date: Thu, 20 May 2021 16:10:14 +0200	[thread overview]
Message-ID: <20210520141018.2972320-3-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20210520141018.2972320-1-giulio.benetti@benettiengineering.com>

Usb needs IMXRT1050_CLK_USBOH3 clock to be enabled, so let's add it to
clock driver.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 drivers/clk/imx/clk-imxrt1050.c             | 2 ++
 include/dt-bindings/clock/imxrt1050-clock.h | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c
index eb6847f865..3e17161002 100644
--- a/drivers/clk/imx/clk-imxrt1050.c
+++ b/drivers/clk/imx/clk-imxrt1050.c
@@ -259,6 +259,8 @@ static int imxrt1050_clk_probe(struct udevice *dev)
 	       imx_clk_gate2("lcdif", "lcdif_podf", base + 0x70, 28));
 	clk_dm(IMXRT1050_CLK_LCDIF_PIX,
 	       imx_clk_gate2("lcdif_pix", "lcdif", base + 0x74, 10));
+	clk_dm(IMXRT1050_CLK_USBOH3,
+	       imx_clk_gate2("usboh3", "pll3_usb_otg", base + 0x80, 0));
 
 	struct clk *clk, *clk1;
 
diff --git a/include/dt-bindings/clock/imxrt1050-clock.h b/include/dt-bindings/clock/imxrt1050-clock.h
index 09b65e5df2..f74dbbcf93 100644
--- a/include/dt-bindings/clock/imxrt1050-clock.h
+++ b/include/dt-bindings/clock/imxrt1050-clock.h
@@ -61,6 +61,7 @@
 #define IMXRT1050_CLK_PLL6_ENET			52
 #define IMXRT1050_CLK_PLL7_USB_HOST		53
 #define IMXRT1050_CLK_LCDIF_PIX			54
-#define IMXRT1050_CLK_END			55
+#define IMXRT1050_CLK_USBOH3			55
+#define IMXRT1050_CLK_END			56
 
 #endif /* __DT_BINDINGS_CLOCK_IMXRT1050_H */
-- 
2.25.1

  parent reply	other threads:[~2021-05-20 14:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 14:10 [PATCH 0/6] i.MXRT1050 add Usb Host support Giulio Benetti
2021-05-20 14:10 ` [PATCH 1/6] ARM: IMXRT: introduce is_imxrt*() macros and get_cpu_rev() Giulio Benetti
2021-06-09 13:43   ` sbabic
2021-05-20 14:10 ` Giulio Benetti [this message]
2021-06-09 13:44   ` [PATCH 2/6] clk: imx: clk-imxrt1050: introduce IMXRT1050_CLK_USBOH3 sbabic
2021-05-20 14:10 ` [PATCH 3/6] usb: ehci-mx6: add support for i.MXRT Giulio Benetti
2021-05-20 15:06   ` Marek Vasut
2021-06-09 13:42   ` sbabic
2021-05-20 14:10 ` [PATCH 4/6] ARM: dts: imxrt1050: add usbotg1, usbphy1 and usbmisc nodes Giulio Benetti
2021-05-20 15:08   ` Marek Vasut
2021-06-09 13:42   ` sbabic
2021-05-20 14:10 ` [PATCH 5/6] ARM: dts: imxrt1050-evk: enable usbotg1 node as host Giulio Benetti
2021-06-09 13:42   ` sbabic
2021-05-20 14:10 ` [PATCH 6/6] configs: imxrt1050-evk: enable host usb support and its command Giulio Benetti
2021-06-09 13:42   ` sbabic

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=20210520141018.2972320-3-giulio.benetti@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.