* [U-Boot] [PATCH v3 2/8] mmc: fsl_esdhc: ppc: set sdhc clock
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
@ 2019-04-11 11:01 ` 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
` (6 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:01 UTC (permalink / raw)
To: u-boot
From: Yinbo Zhu <yinbo.zhu@nxp.com>
This patch is to set sdhc clock for ppc
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v3:
(struct fsl_esdhc *)(addr) => (struct fsl_esdhc *)addr
drivers/mmc/fsl_esdhc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 9e34557d16..88a5b0c46d 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1428,7 +1428,9 @@ void fdt_fixup_esdhc(void *blob, bd_t *bd)
#endif
#if CONFIG_IS_ENABLED(DM_MMC)
+#ifndef CONFIG_PPC
#include <asm/arch/clock.h>
+#endif
__weak void init_clk_usdhc(u32 index)
{
}
@@ -1560,7 +1562,11 @@ static int fsl_esdhc_probe(struct udevice *dev)
priv->sdhc_clk = clk_get_rate(&priv->per_clk);
} else {
+#ifndef CONFIG_PPC
priv->sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK + dev->seq);
+#else
+ priv->sdhc_clk = gd->arch.sdhc_clk;
+#endif
if (priv->sdhc_clk <= 0) {
dev_err(dev, "Unable to get clk for %s\n", dev->name);
return -EINVAL;
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 2/8] mmc: fsl_esdhc: ppc: set sdhc clock
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:10 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 2/8] mmc: fsl_esdhc: ppc: set sdhc clock
>
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
>
> This patch is to set sdhc clock for ppc
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address
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-04-11 11:01 ` 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
` (5 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:01 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>
---
Change in v3:
update the commit information
drivers/mmc/fsl_esdhc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 88a5b0c46d..fc84d4b7ee 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1455,8 +1455,11 @@ static int fsl_esdhc_probe(struct udevice *dev)
addr = dev_read_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -EINVAL;
-
+#ifdef CONFIG_PPC
+ priv->esdhc_regs = (struct fsl_esdhc *)lower_32_bits(addr);
+#else
priv->esdhc_regs = (struct fsl_esdhc *)addr;
+#endif
priv->dev = dev;
priv->mode = -1;
if (data) {
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:10 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address
>
> 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>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 4/8] configs: enable device tree support for T2080QDS
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-04-11 11:01 ` [U-Boot] [PATCH v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address Yinbo Zhu
@ 2019-04-11 11:01 ` 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
` (4 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:01 UTC (permalink / raw)
To: u-boot
From: Yinbo Zhu <yinbo.zhu@nxp.com>
This patch is to enable device tree support for T2080QDS
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
configs/T2080QDS_SECURE_BOOT_defconfig | 2 ++
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 3 +++
2 files changed, 5 insertions(+)
diff --git a/configs/T2080QDS_SECURE_BOOT_defconfig b/configs/T2080QDS_SECURE_BOOT_defconfig
index 9e155ee6ae..2658bf8460 100644
--- a/configs/T2080QDS_SECURE_BOOT_defconfig
+++ b/configs/T2080QDS_SECURE_BOOT_defconfig
@@ -50,3 +50,5 @@ CONFIG_RSA=y
CONFIG_SPL_RSA=y
CONFIG_RSA_SOFTWARE_EXP=y
CONFIG_OF_LIBFDT=y
+CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
diff --git a/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig b/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
index 9c9a436d81..8febabd84f 100644
--- a/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
+++ b/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
@@ -39,3 +39,6 @@ CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
+CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_OF_CONTROL=y
+CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 4/8] configs: enable device tree support for T2080QDS
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:10 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 4/8] configs: enable device tree support for T2080QDS
>
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
>
> This patch is to enable device tree support for T2080QDS
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 5/8] configs: enable eSDHC device module in T2080QDS
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
` (2 preceding siblings ...)
2019-04-11 11:01 ` [U-Boot] [PATCH v3 4/8] configs: enable device tree support for T2080QDS Yinbo Zhu
@ 2019-04-11 11:01 ` 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
` (3 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:01 UTC (permalink / raw)
To: u-boot
From: Yinbo Zhu <yinbo.zhu@nxp.com>
This patch is to enable MMC DM for T2080QDS
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v3:
Update the commit information
configs/T2080QDS_NAND_defconfig | 3 +++
configs/T2080QDS_SDCARD_defconfig | 3 +++
configs/T2080QDS_SECURE_BOOT_defconfig | 3 +++
configs/T2080QDS_SPIFLASH_defconfig | 3 +++
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig | 3 +++
configs/T2080QDS_defconfig | 3 +++
6 files changed, 18 insertions(+)
diff --git a/configs/T2080QDS_NAND_defconfig b/configs/T2080QDS_NAND_defconfig
index 948a05af89..02d47c9fdd 100644
--- a/configs/T2080QDS_NAND_defconfig
+++ b/configs/T2080QDS_NAND_defconfig
@@ -59,3 +59,6 @@ CONFIG_SPI=y
CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
+CONFIG_BLK=y
+CONFIG_DM=y
diff --git a/configs/T2080QDS_SDCARD_defconfig b/configs/T2080QDS_SDCARD_defconfig
index 30e87df3bb..4ce83fe8c4 100644
--- a/configs/T2080QDS_SDCARD_defconfig
+++ b/configs/T2080QDS_SDCARD_defconfig
@@ -58,3 +58,6 @@ CONFIG_SPI=y
CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_USB_STORAGE=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 2658bf8460..e2a7d3fa76 100644
--- a/configs/T2080QDS_SECURE_BOOT_defconfig
+++ b/configs/T2080QDS_SECURE_BOOT_defconfig
@@ -52,3 +52,6 @@ CONFIG_RSA_SOFTWARE_EXP=y
CONFIG_OF_LIBFDT=y
CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
+CONFIG_DM_MMC=y
+CONFIG_BLK=y
+CONFIG_OF_CONTROL=y
diff --git a/configs/T2080QDS_SPIFLASH_defconfig b/configs/T2080QDS_SPIFLASH_defconfig
index 0cccb3a85d..641f3c0c97 100644
--- a/configs/T2080QDS_SPIFLASH_defconfig
+++ b/configs/T2080QDS_SPIFLASH_defconfig
@@ -59,3 +59,6 @@ CONFIG_SPI=y
CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_USB_STORAGE=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 8febabd84f..d2a8875aac 100644
--- a/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
+++ b/configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
@@ -42,3 +42,6 @@ CONFIG_OF_LIBFDT=y
CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
+CONFIG_DM_MMC=y
+CONFIG_BLK=y
+CONFIG_DM=y
diff --git a/configs/T2080QDS_defconfig b/configs/T2080QDS_defconfig
index 79cf4424b4..d55ce771a9 100644
--- a/configs/T2080QDS_defconfig
+++ b/configs/T2080QDS_defconfig
@@ -48,3 +48,6 @@ CONFIG_SPI=y
CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
+CONFIG_BLK=y
+CONFIG_DM=y
--
2.17.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 5/8] configs: enable eSDHC device module in T2080QDS
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:10 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 5/8] configs: enable eSDHC device module in T2080QDS
>
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
>
> This patch is to enable MMC DM for T2080QDS
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 6/8] ppc: t2080qds: add usb node
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
` (3 preceding siblings ...)
2019-04-11 11:01 ` [U-Boot] [PATCH v3 5/8] configs: enable eSDHC device module in T2080QDS Yinbo Zhu
@ 2019-04-11 11:02 ` Yinbo Zhu
2019-05-24 5:11 ` Prabhakar Kushwaha
2019-04-11 11:02 ` [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
` (2 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:02 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>
---
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] 16+ messages in thread
* [U-Boot] [PATCH v3 6/8] ppc: t2080qds: add usb node
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:11 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 6/8] ppc: t2080qds: add usb node
>
> 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>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
` (4 preceding siblings ...)
2019-04-11 11:02 ` [U-Boot] [PATCH v3 6/8] ppc: t2080qds: add usb node Yinbo Zhu
@ 2019-04-11 11:02 ` Yinbo Zhu
2019-05-24 5:11 ` 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:10 ` [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Prabhakar Kushwaha
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:02 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] 16+ messages in thread
* [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address
2019-04-11 11:02 ` [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
@ 2019-05-24 5:11 ` Prabhakar Kushwaha
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:11 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 7/8] usb: ehci: ppc: adopt 32 bit address
>
> 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>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 8/8] configs: enable usb device module in T2080QDS
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
` (5 preceding siblings ...)
2019-04-11 11:02 ` [U-Boot] [PATCH v3 7/8] usb: ehci: ppc: adopt 32 bit address Yinbo Zhu
@ 2019-04-11 11:02 ` 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
7 siblings, 1 reply; 16+ messages in thread
From: Yinbo Zhu @ 2019-04-11 11:02 UTC (permalink / raw)
To: u-boot
From: Yinbo Zhu <yinbo.zhu@nxp.com>
This patch is to enable usb DM for T2080QDS
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v3:
Update the commit information
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] 16+ messages in thread
* [U-Boot] [PATCH v3 8/8] configs: enable usb device module in T2080QDS
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
0 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:11 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 8/8] configs: enable usb device module in T2080QDS
>
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
>
> This patch is to enable usb DM for T2080QDS
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread
* [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node
2019-04-11 11:01 [U-Boot] [PATCH v3 1/8] ppc: t2080qds: add eSDHC node Yinbo Zhu
` (6 preceding siblings ...)
2019-04-11 11:02 ` [U-Boot] [PATCH v3 8/8] configs: enable usb device module in T2080QDS Yinbo Zhu
@ 2019-05-24 5:10 ` Prabhakar Kushwaha
7 siblings, 0 replies; 16+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-24 5:10 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Yinbo Zhu
> Sent: Thursday, April 11, 2019 4:32 PM
> 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 v3 1/8] ppc: t2080qds: add eSDHC node
>
> From: Yinbo Zhu <yinbo.zhu@nxp.com>
>
> This patch is to add eSDHC node for t2080qds
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
> ---
This patch has been applied to u-boot-mpc85xx, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 16+ messages in thread