All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yinbo Zhu <yinbo.zhu@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address
Date: Thu, 11 Apr 2019 11:02:05 +0000	[thread overview]
Message-ID: <20190411110315.30720-7-yinbo.zhu@nxp.com> (raw)
In-Reply-To: <20190411110315.30720-1-yinbo.zhu@nxp.com>

From: Yinbo Zhu <yinbo.zhu@nxp.com>

This patch is to adopt 32 bit address for ppc

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 drivers/usb/host/ehci-fsl.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 23e7e7125f..b8f8e7a794 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -75,8 +75,12 @@ static int ehci_fsl_init_after_reset(struct ehci_ctrl *ctrl)
 	struct usb_ehci *ehci = NULL;
 	struct ehci_fsl_priv *priv = container_of(ctrl, struct ehci_fsl_priv,
 						   ehci);
-
+#ifdef CONFIG_PPC
+	ehci = (struct usb_ehci *)lower_32_bits(priv->hcd_base);
+#else
 	ehci = (struct usb_ehci *)priv->hcd_base;
+#endif
+
 	if (ehci_fsl_init(priv, ehci, priv->ehci.hccr, priv->ehci.hcor) < 0)
 		return -ENXIO;
 
@@ -103,7 +107,11 @@ static int ehci_fsl_probe(struct udevice *dev)
 		debug("Can't get the EHCI register base address\n");
 		return -ENXIO;
 	}
+#ifdef CONFIG_PPC
+	ehci = (struct usb_ehci *)lower_32_bits(priv->hcd_base);
+#else
 	ehci = (struct usb_ehci *)priv->hcd_base;
+#endif
 	hccr = (struct ehci_hccr *)(&ehci->caplength);
 	hcor = (struct ehci_hcor *)
 		((void *)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
-- 
2.17.1

  parent reply	other threads:[~2019-04-11 11:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
2019-04-11 11:01 ` [U-Boot] [PATCH v3 2/8] mmc: fsl_esdhc: ppc: set sdhc clock Yinbo Zhu
2019-05-24  5:10   ` Prabhakar Kushwaha
2019-04-11 11:01 ` [U-Boot] [PATCH v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address Yinbo Zhu
2019-05-24  5:10   ` Prabhakar Kushwaha
2019-04-11 11:01 ` [U-Boot] [PATCH v3 4/8] configs: enable device tree support for T2080QDS Yinbo Zhu
2019-05-24  5:10   ` Prabhakar Kushwaha
2019-04-11 11:01 ` [U-Boot] [PATCH v3 5/8] configs: enable eSDHC device module in T2080QDS Yinbo Zhu
2019-05-24  5:10   ` Prabhakar Kushwaha
2019-04-11 11:02 ` [U-Boot] [PATCH v3 6/8] ppc: t2080qds: add usb node Yinbo Zhu
2019-05-24  5:11   ` Prabhakar Kushwaha
2019-04-11 11:02 ` Yinbo Zhu [this message]
2019-05-24  5:11   ` [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address Prabhakar Kushwaha
2019-04-11 11:02 ` [U-Boot] [PATCH v3 8/8] configs: enable usb device module in T2080QDS Yinbo Zhu
2019-05-24  5:11   ` Prabhakar Kushwaha
2019-05-24  5:10 ` [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Prabhakar Kushwaha

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=20190411110315.30720-7-yinbo.zhu@nxp.com \
    --to=yinbo.zhu@nxp.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.