U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: alice.guo@oss.nxp.com
To: u-boot@lists.denx.de, "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: Marek Vasut <marex@denx.de>,
	 Marek Vasut <marek.vasut+renesas@mailbox.org>,
	 Tom Rini <trini@konsulko.com>, Ye Li <ye.li@nxp.com>,
	 Fabio Estevam <festevam@gmail.com>,
	Tim Harvey <tharvey@gateworks.com>,
	 Mattijs Korpershoek <mkorpershoek@kernel.org>,
	 Patrice Chotard <patrice.chotard@foss.st.com>,
	 Stefano Babic <sbabic@nabladev.com>, Peng Fan <peng.fan@nxp.com>,
	 Lukasz Majewski <lukma@denx.de>, Simon Glass <sjg@chromium.org>,
	 David Zang <davidzangcs@gmail.com>,
	Alice Guo <alice.guo@nxp.com>
Subject: [PATCH v1 3/4] imx8ulp: clock: Drop CONFIG_USB_MAX_CONTROLLER_COUNT dependency
Date: Fri, 28 Nov 2025 21:16:35 +0800	[thread overview]
Message-ID: <20251128-usb2-v1-3-25ec5ac127ff@nxp.com> (raw)
In-Reply-To: <20251128-usb2-v1-0-25ec5ac127ff@nxp.com>

From: Ye Li <ye.li@nxp.com>

Remove the use of CONFIG_USB_MAX_CONTROLLER_COUNT in
enable_usboh3_clk(), as this option is relevant for non-DM USB. The
i.MX8ULP platform uses DM-based USB, so this dependency is unnecessary.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
---
 arch/arm/mach-imx/imx8ulp/clock.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-imx/imx8ulp/clock.c b/arch/arm/mach-imx/imx8ulp/clock.c
index c390f20d769..faf81262160 100644
--- a/arch/arm/mach-imx/imx8ulp/clock.c
+++ b/arch/arm/mach-imx/imx8ulp/clock.c
@@ -286,14 +286,10 @@ void enable_usboh3_clk(unsigned char enable)
 		pcc_reset_peripheral(4, USB0_PCC4_SLOT, false);
 		pcc_reset_peripheral(4, USBPHY_PCC4_SLOT, false);
 
-#ifdef CONFIG_USB_MAX_CONTROLLER_COUNT
-		if (CONFIG_USB_MAX_CONTROLLER_COUNT > 1) {
-			pcc_clock_enable(4, USB1_PCC4_SLOT, true);
-			pcc_clock_enable(4, USB1PHY_PCC4_SLOT, true);
-			pcc_reset_peripheral(4, USB1_PCC4_SLOT, false);
-			pcc_reset_peripheral(4, USB1PHY_PCC4_SLOT, false);
-		}
-#endif
+		pcc_clock_enable(4, USB1_PCC4_SLOT, true);
+		pcc_clock_enable(4, USB1PHY_PCC4_SLOT, true);
+		pcc_reset_peripheral(4, USB1_PCC4_SLOT, false);
+		pcc_reset_peripheral(4, USB1PHY_PCC4_SLOT, false);
 
 		pcc_clock_enable(4, USB_XBAR_PCC4_SLOT, true);
 	} else {

-- 
2.43.0


  parent reply	other threads:[~2025-11-28 13:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-28 13:16 [PATCH 0/4] Enable USB on i.MX8ULP EVK alice.guo
2025-11-28 13:16 ` [PATCH v1 1/4] ehci-mx6: Add powerup_fixup implementation alice.guo
2025-11-30  1:05   ` Marek Vasut
2025-12-01 11:07     ` 回复: " Alice Guo (OSS)
2025-12-01 17:47       ` Marek Vasut
2025-11-28 13:16 ` [PATCH v1 2/4] ehci-mx6: Update USB host driver for iMX8ULP alice.guo
2025-11-30  1:06   ` Marek Vasut
2025-11-28 13:16 ` alice.guo [this message]
2025-11-28 13:16 ` [PATCH v1 4/4] imx8ulp: dst: Enable USB controller at 0x29920000 in host mode alice.guo
2025-11-28 13:28   ` Fabio Estevam
2025-11-30  0:06   ` Fabio Estevam
2025-12-01 11:05     ` 回复: " Alice Guo (OSS)

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=20251128-usb2-v1-3-25ec5ac127ff@nxp.com \
    --to=alice.guo@oss.nxp.com \
    --cc=alice.guo@nxp.com \
    --cc=davidzangcs@gmail.com \
    --cc=festevam@gmail.com \
    --cc=lukma@denx.de \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marex@denx.de \
    --cc=mkorpershoek@kernel.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@nabladev.com \
    --cc=sjg@chromium.org \
    --cc=tharvey@gateworks.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=ye.li@nxp.com \
    /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