U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@mailbox.org>
To: alice.guo@oss.nxp.com, 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: Re: [PATCH v1 2/4] ehci-mx6: Update USB host driver for iMX8ULP
Date: Sun, 30 Nov 2025 02:06:14 +0100	[thread overview]
Message-ID: <7880adeb-e210-4c9a-801e-8c3db5e87d12@mailbox.org> (raw)
In-Reply-To: <20251128-usb2-v1-2-25ec5ac127ff@nxp.com>

On 11/28/25 2:16 PM, alice.guo@oss.nxp.com wrote:

[...]

> -#if defined(CONFIG_MX7ULP) && !defined(CONFIG_PHY)
> +#if (defined(CONFIG_MX7ULP) || defined(CONFIG_IMX8ULP)) && !defined(CONFIG_PHY)
>   static void usb_power_config_mx7ulp(struct usbphy_regs __iomem *usbphy)
>   {
> -	if (!is_mx7ulp())
> +	if (!(is_mx7ulp() || is_imx8ulp()))
>   		return;
>   
>   	writel(ANADIG_USB2_CHRG_DETECT_EN_B |
>   	       ANADIG_USB2_CHRG_DETECT_CHK_CHRG_B,
>   	       &usbphy->usb1_chrg_detect);
>   
> +#if IS_ENABLED(CONFIG_IMX8ULP)

if (IS_ENABLED(...)) , but really , can we avoid the ifdeffery altogether ?

> +	enable_usb_pll((ulong)usbphy);
> +#else
>   	scg_enable_usb_pll(true);
> +#endif


[...]

> @@ -620,13 +632,15 @@ static int mx6_parse_dt_addrs(struct udevice *dev)
>   	if (misc_off < 0)
>   		return -EINVAL;
>   
> -	addr = (void __iomem *)fdtdec_get_addr(blob, phy_off, "reg");
> +	addr = (void __iomem *)fdtdec_get_addr_size_auto_noparent(blob, phy_off,
> +								  "reg", 0, NULL, false);
Separate patch please . Also, why this change ?

  reply	other threads:[~2025-11-30  5:01 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 [this message]
2025-11-28 13:16 ` [PATCH v1 3/4] imx8ulp: clock: Drop CONFIG_USB_MAX_CONTROLLER_COUNT dependency alice.guo
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=7880adeb-e210-4c9a-801e-8c3db5e87d12@mailbox.org \
    --to=marek.vasut@mailbox.org \
    --cc=alice.guo@nxp.com \
    --cc=alice.guo@oss.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