All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/3] ppc: t2080qds: add usb node
@ 2019-03-26  3:12 Yinbo Zhu
  2019-03-26  3:12 ` [U-Boot] [PATCH v2 2/3] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
  2019-03-26  3:12 ` [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS Yinbo Zhu
  0 siblings, 2 replies; 4+ messages in thread
From: Yinbo Zhu @ 2019-03-26  3:12 UTC (permalink / raw)
  To: u-boot

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

This patch is to add usb node for t2080qds

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v2:
		add York Sun for reviewing the patches set. 

 arch/powerpc/dts/t2080.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/powerpc/dts/t2080.dtsi b/arch/powerpc/dts/t2080.dtsi
index f895dda4d7..666601ed49 100644
--- a/arch/powerpc/dts/t2080.dtsi
+++ b/arch/powerpc/dts/t2080.dtsi
@@ -68,5 +68,24 @@
 			bus-width = <4>;
 			voltage-ranges = <1800 1800 3300 3300>;
 		};
+
+		usb0: usb at 210000 {
+			compatible = "fsl-usb2-mph";
+			reg = <0x210000 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <44 0x2 0 0>;
+			phy_type = "utmi";
+		};
+
+		usb1: usb at 211000 {
+			compatible = "fsl-usb2-dr";
+			reg = <0x211000 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <45 0x2 0 0>;
+			dr_mode = "host";
+			phy_type = "utmi";
+		};
 	};
 };
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH v2 2/3] usb: ehci: ppc: adopt 32 bit address
  2019-03-26  3:12 [U-Boot] [PATCH v2 1/3] ppc: t2080qds: add usb node Yinbo Zhu
@ 2019-03-26  3:12 ` Yinbo Zhu
  2019-03-26  3:12 ` [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS Yinbo Zhu
  1 sibling, 0 replies; 4+ messages in thread
From: Yinbo Zhu @ 2019-03-26  3:12 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS
  2019-03-26  3:12 [U-Boot] [PATCH v2 1/3] ppc: t2080qds: add usb node Yinbo Zhu
  2019-03-26  3:12 ` [U-Boot] [PATCH v2 2/3] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
@ 2019-03-26  3:12 ` Yinbo Zhu
  2019-04-07  9:40   ` Prabhakar Kushwaha
  1 sibling, 1 reply; 4+ messages in thread
From: Yinbo Zhu @ 2019-03-26  3:12 UTC (permalink / raw)
  To: u-boot

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

This patch is to enable usb DM for T2080QDS in uboot

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 configs/T2080QDS_NAND_defconfig           | 1 +
 configs/T2080QDS_SDCARD_defconfig         | 1 +
 configs/T2080QDS_SECURE_BOOT_defconfig    | 1 +
 configs/T2080QDS_SPIFLASH_defconfig       | 1 +
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 1 +
 configs/T2080QDS_defconfig                | 1 +
 6 files changed, 6 insertions(+)

diff --git a/configs/T2080QDS_NAND_defconfig b/configs/T2080QDS_NAND_defconfig
index 02d47c9fdd..c8811fbc83 100644
--- a/configs/T2080QDS_NAND_defconfig
+++ b/configs/T2080QDS_NAND_defconfig
@@ -59,6 +59,7 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
 CONFIG_DM_MMC=y
 CONFIG_BLK=y
 CONFIG_DM=y
diff --git a/configs/T2080QDS_SDCARD_defconfig b/configs/T2080QDS_SDCARD_defconfig
index 4ce83fe8c4..6c5838d611 100644
--- a/configs/T2080QDS_SDCARD_defconfig
+++ b/configs/T2080QDS_SDCARD_defconfig
@@ -58,6 +58,7 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
 CONFIG_DM_MMC=y
 CONFIG_BLK=y
 CONFIG_DM=y
diff --git a/configs/T2080QDS_SECURE_BOOT_defconfig b/configs/T2080QDS_SECURE_BOOT_defconfig
index e2a7d3fa76..7ebfcc97e6 100644
--- a/configs/T2080QDS_SECURE_BOOT_defconfig
+++ b/configs/T2080QDS_SECURE_BOOT_defconfig
@@ -46,6 +46,7 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_RSA_SOFTWARE_EXP=y
diff --git a/configs/T2080QDS_SPIFLASH_defconfig b/configs/T2080QDS_SPIFLASH_defconfig
index 641f3c0c97..e9d0d10414 100644
--- a/configs/T2080QDS_SPIFLASH_defconfig
+++ b/configs/T2080QDS_SPIFLASH_defconfig
@@ -59,6 +59,7 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
 CONFIG_DM_MMC=y
 CONFIG_BLK=y
 CONFIG_DM=y
diff --git a/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig b/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
index d2a8875aac..3a50230acf 100644
--- a/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
+++ b/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
@@ -38,6 +38,7 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_USB=y
 CONFIG_OF_LIBFDT=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_OF_CONTROL=y
diff --git a/configs/T2080QDS_defconfig b/configs/T2080QDS_defconfig
index d55ce771a9..a42f728d0d 100644
--- a/configs/T2080QDS_defconfig
+++ b/configs/T2080QDS_defconfig
@@ -51,3 +51,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_DM_MMC=y
 CONFIG_BLK=y
 CONFIG_DM=y
+CONFIG_DM_USB=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS
  2019-03-26  3:12 ` [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS Yinbo Zhu
@ 2019-04-07  9:40   ` Prabhakar Kushwaha
  0 siblings, 0 replies; 4+ messages in thread
From: Prabhakar Kushwaha @ 2019-04-07  9:40 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Yinbo Zhu
> Sent: Tuesday, March 26, 2019 8:43 AM
> To: York Sun <york.sun@nxp.com>; u-boot at lists.denx.de
> Cc: Yinbo Zhu <yinbo.zhu@nxp.com>; Xiaobo Xie <xiaobo.xie@nxp.com>; Ran
> Wang <ran.wang_1@nxp.com>; Jiafei Pan <jiafei.pan@nxp.com>; Y.b. Lu
> <yangbo.lu@nxp.com>; Jagdish Gediya <jagdish.gediya@nxp.com>; Prabhakar
> Kushwaha <prabhakar.kushwaha@nxp.com>
> Subject: [PATCH v2 3/3] configs: enable usb device module in T2080QDS
> 
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
> 
> This patch is to enable usb DM for T2080QDS in uboot
> 
Please work on description

--pk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-07  9:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26  3:12 [U-Boot] [PATCH v2 1/3] ppc: t2080qds: add usb node Yinbo Zhu
2019-03-26  3:12 ` [U-Boot] [PATCH v2 2/3] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
2019-03-26  3:12 ` [U-Boot] [PATCH v2 3/3] configs: enable usb device module in T2080QDS Yinbo Zhu
2019-04-07  9:40   ` Prabhakar Kushwaha

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.