RE: [EXT] Re: [PATCH v1] T1024RDB: USB: Add a 10808 us delay in usb_scan_port

2019-12-17 Thread Yinbo Zhu


-Original Message-
From: Marek Vasut  
Sent: 2019年12月16日 16:33
To: Bin Meng ; Yinbo Zhu 
Cc: U-Boot Mailing List ; Peter Chen 
; Xiaobo Xie ; Joe Hershberger 
; Jiafei Pan ; Ran Wang 
; Jun Li 
Subject: [EXT] Re: [PATCH v1] T1024RDB: USB: Add a 10808 us delay in 
usb_scan_port

Caution: EXT Email

On 12/16/19 4:17 AM, Bin Meng wrote:
> +Marek,
>
> On Mon, Dec 16, 2019 at 11:13 AM Yinbo Zhu  wrote:
>>
>> T1024RDB usb controller doesn't detect usb device at first usb start 
>> Add a delay that is greater than 10808 us can fix that issue, which 
>> delay if is less than 10808 us, issue is probabilistic occurrence
>>
>> => usb start
>> starting USB...
>> USB0:   USB EHCI 1.00
>> USB1:   USB EHCI 1.00
>> scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 
>> for devices... 1 USB Device(s) found
>>scanning usb for storage devices... 0 Storage Device(s) found 
>> => usb stop stopping USB..
>> => usb start
>> starting USB...
>> USB0:   USB EHCI 1.00
>> USB1:   USB EHCI 1.00
>> scanning bus 0 for devices... 2 USB Device(s) found scanning bus 1 
>> for devices... 1 USB Device(s) found
>>scanning usb for storage devices... 1 Storage Device(s) found 
>> =>
>>
>> Signed-off-by: Yinbo Zhu 
>> ---
>>  common/usb_hub.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/common/usb_hub.c b/common/usb_hub.c index 
>> 33aaeb8e44..6dd06696b2 100644
>> --- a/common/usb_hub.c
>> +++ b/common/usb_hub.c
>> @@ -486,6 +486,9 @@ static int usb_scan_port(struct usb_device_scan 
>> *usb_scan)
>> return 0;
>> }
>>
>> +#ifdef CONFIG_TARGET_T1024RDB
>> +   udelay(10808);
>> +#endif
>
> This looks like a workaround. Is this a silicon errata?

 > Does setting usb_pgood_delay to e.g. 2000 help ?

Hi Marek Casut,

Thanks your feedback, I test it 2000, usb start can list device, in fact, 120 
is enough,
In addition, if it is some usb storage issue, I think add it into bootargs it 
is reasonable, but I test some usb storage,
It is all encounter issue, so I think add it that delay into usb driver code.
=> setenv usb_pgood_delay 120 
=> usb start
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
   scanning usb for storage devices... 1 Storage Device(s) found
=>

Thanks,
Yinbo


[PATCH v3 3/3] configs: ls1012afwry: Enable usb network cards support

2019-12-15 Thread Yinbo Zhu
Enable RTL8152, AX88179 and AX8817X USB network cards support
for ls1012afwry

Signed-off-by: Yinbo Zhu 
---
Change in v3:
Update the commit information

 configs/ls1012afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1012afrwy_tfa_defconfig 
b/configs/ls1012afrwy_tfa_defconfig
index 354c521ea4..12fb8740e7 100644
--- a/configs/ls1012afrwy_tfa_defconfig
+++ b/configs/ls1012afrwy_tfa_defconfig
@@ -55,4 +55,8 @@ CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.17.1



[PATCH v3 1/3] configs: ls1046afwry: Enable usb network cards support

2019-12-15 Thread Yinbo Zhu
Enable RTL8152, AX88179 and AX8817X USB network cards support
for ls1046afrwy

Signed-off-by: Yinbo Zhu 
---
Change in v3:
Update the commit information

 configs/ls1046afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1046afrwy_tfa_defconfig 
b/configs/ls1046afrwy_tfa_defconfig
index 4137eda995..49240b051d 100644
--- a/configs/ls1046afrwy_tfa_defconfig
+++ b/configs/ls1046afrwy_tfa_defconfig
@@ -56,5 +56,9 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.17.1



[PATCH v3 2/3] configs: ls1088ardb: Enable usb network cards support

2019-12-15 Thread Yinbo Zhu
Enable RTL8152, AX88179 and AX8817X USB network cards support
for ls1088ardb

Signed-off-by: Yinbo Zhu 
---
Change in v3:
Update the commit information

 configs/ls1088ardb_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1088ardb_tfa_defconfig b/configs/ls1088ardb_tfa_defconfig
index e071f1a3c9..b7e28ce586 100644
--- a/configs/ls1088ardb_tfa_defconfig
+++ b/configs/ls1088ardb_tfa_defconfig
@@ -72,4 +72,8 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.17.1



[PATCH v2 1/3] configs: ls1046afwry: Enable usb network card

2019-12-15 Thread Yinbo Zhu
enable ls1046afwry usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
Change in v2:
update the commit information

 configs/ls1046afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1046afrwy_tfa_defconfig 
b/configs/ls1046afrwy_tfa_defconfig
index 4137eda995..49240b051d 100644
--- a/configs/ls1046afrwy_tfa_defconfig
+++ b/configs/ls1046afrwy_tfa_defconfig
@@ -56,5 +56,9 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.17.1



[PATCH v2 3/3] configs: ls1012afwry: Enable usb network card

2019-12-15 Thread Yinbo Zhu
enable ls1012afwry usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
Change in v2:
update the commit information

 configs/ls1012afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1012afrwy_tfa_defconfig 
b/configs/ls1012afrwy_tfa_defconfig
index 354c521ea4..12fb8740e7 100644
--- a/configs/ls1012afrwy_tfa_defconfig
+++ b/configs/ls1012afrwy_tfa_defconfig
@@ -55,4 +55,8 @@ CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.17.1



[PATCH v2 2/3] configs: ls1088ardb: Enable usb network card

2019-12-15 Thread Yinbo Zhu
enable ls1088ardb usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
Change in v2:
update the commit information

 configs/ls1088ardb_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1088ardb_tfa_defconfig b/configs/ls1088ardb_tfa_defconfig
index e071f1a3c9..b7e28ce586 100644
--- a/configs/ls1088ardb_tfa_defconfig
+++ b/configs/ls1088ardb_tfa_defconfig
@@ -72,4 +72,8 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.17.1



[PATCH v1] T1024RDB: USB: Add a 10808 us delay in usb_scan_port

2019-12-15 Thread Yinbo Zhu
T1024RDB usb controller doesn't detect usb device at first usb start
Add a delay that is greater than 10808 us can fix that issue, which
delay if is less than 10808 us, issue is probabilistic occurrence

=> usb start
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
   scanning usb for storage devices... 0 Storage Device(s) found
=> usb stop
stopping USB..
=> usb start
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
   scanning usb for storage devices... 1 Storage Device(s) found
=>

Signed-off-by: Yinbo Zhu 
---
 common/usb_hub.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/usb_hub.c b/common/usb_hub.c
index 33aaeb8e44..6dd06696b2 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -486,6 +486,9 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
return 0;
}
 
+#ifdef CONFIG_TARGET_T1024RDB
+   udelay(10808);
+#endif
if (portchange & USB_PORT_STAT_C_RESET) {
debug("port %d reset change\n", i + 1);
usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_RESET);
-- 
2.17.1



[PATCH v1 2/3] enable ls1088ardb usb network card

2019-12-12 Thread Yinbo Zhu
enable ls1088ardb usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
 configs/ls1088ardb_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1088ardb_tfa_defconfig b/configs/ls1088ardb_tfa_defconfig
index 4532d85..27d7ff7 100644
--- a/configs/ls1088ardb_tfa_defconfig
+++ b/configs/ls1088ardb_tfa_defconfig
@@ -69,4 +69,8 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_GADGET=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.7.4



[PATCH v1 3/3] enable ls1046afwry usb network card

2019-12-12 Thread Yinbo Zhu
enable ls1046afwry usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
 configs/ls1012afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1012afrwy_tfa_defconfig 
b/configs/ls1012afrwy_tfa_defconfig
index 65ed34e..5ae7ae9 100644
--- a/configs/ls1012afrwy_tfa_defconfig
+++ b/configs/ls1012afrwy_tfa_defconfig
@@ -52,4 +52,8 @@ CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.7.4



[PATCH v1 1/3] enable ls1046afwry usb network card

2019-12-12 Thread Yinbo Zhu
enable ls1046afwry usb network card r8152_eth AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
 configs/ls1046afrwy_tfa_defconfig | 4 
 1 file changed, 4 insertions(+)

diff --git a/configs/ls1046afrwy_tfa_defconfig 
b/configs/ls1046afrwy_tfa_defconfig
index 1d27408..550e521 100644
--- a/configs/ls1046afrwy_tfa_defconfig
+++ b/configs/ls1046afrwy_tfa_defconfig
@@ -52,5 +52,9 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.7.4



[U-Boot] [PATCH v1] configs: ls1028ardb: enable ugreen usb network card AX88179 and AX8817X drvier

2019-11-27 Thread Yinbo Zhu
enable ls1028ardb ugreen usb network card AX88179 and AX8817X driver

Signed-off-by: Yinbo Zhu 
---
 configs/ls1028ardb_tfa_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index 0664014..fc6d2ec 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -78,4 +78,6 @@ CONFIG_WDT_SP805=y
 CONFIG_MMC_IO_VOLTAGE=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_RTL8152=y
+CONFIG_USB_ETHER_ASIX=y
+CONFIG_USB_ETHER_ASIX88179=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2] configs: ls1028ardb: enable usb net r8152_eth

2019-11-24 Thread Yinbo Zhu
Enable ls1028ardb usb net r8152_eth

Signed-off-by: Yinbo Zhu 
---
 configs/ls1028ardb_tfa_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index 1fab450..0664014 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -76,4 +76,6 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_WDT=y
 CONFIG_WDT_SP805=y
 CONFIG_MMC_IO_VOLTAGE=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1] configs: ls1028ardb: enable usb net r8152_eth

2019-11-20 Thread Yinbo Zhu
Enable usb net r8152_eth for download img when enetc is busy

Signed-off-by: Yinbo Zhu 
---
 configs/ls1028ardb_tfa_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index 1fab450..0664014 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -76,4 +76,6 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_WDT=y
 CONFIG_WDT_SP805=y
 CONFIG_MMC_IO_VOLTAGE=y
+CONFIG_USB_HOST_ETHER=y
+CONFIG_USB_ETHER_RTL8152=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-10-23 Thread Yinbo Zhu


-Original Message-
From: Priyanka Jain 
Sent: 2019年10月23日 12:29
To: Yinbo Zhu ; Wolfgang Denk ; Shengzhou Liu 
; u-boot@lists.denx.de
Cc: Yinbo Zhu ; Xiaobo Xie ; Jiafei Pan 
; Prabhakar X ; Bin Meng 
; Simon Goldschmidt ; Adam 
Ford ; Patrick Delaunay ; Jeremy 
Gebben ; Joe Hershberger ; Y.b. 
Lu 
Subject: RE: [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts



>-Original Message-
>From: Yinbo Zhu 
>Sent: Tuesday, October 15, 2019 2:51 PM
>To: Wolfgang Denk ; Priyanka Jain ; 
>Shengzhou Liu ; u-boot@lists.denx.de
>Cc: Yinbo Zhu ; Xiaobo Xie ; 
>Jiafei Pan ; Prabhakar X 
>; Bin Meng ; Simon 
>Goldschmidt ; Adam Ford 
>; Patrick Delaunay ; 
>Jeremy Gebben ; Joe Hershberger 
>; Y.b. Lu 
>Subject: [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts
>
>Add eSDHC node to p1020 dts
>
>Signed-off-by: Yinbo Zhu 
>---
> arch/powerpc/dts/p1020-post.dtsi | 7 +++
> 1 file changed, 7 insertions(+)
>
>diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020- 
>post.dtsi index 1e5e678..fb3b203 100644
>--- a/arch/powerpc/dts/p1020-post.dtsi
>+++ b/arch/powerpc/dts/p1020-post.dtsi
>@@ -24,6 +24,13 @@
>   single-cpu-affinity;
>   last-interrupt-source = <255>;
>   };
>+
>+  esdhc: esdhc@2e000 {
>+  compatible = "fsl,esdhc";
>+  reg = <0x2e000 0x1000>;
>+  /* Filled in by U-Boot */
>+  clock-frequency = <0>;
>+  };
> };
>
> /* PCIe controller base address 0x9000 */
>--
>2.9.5
>ravis reports error with this series:
> https://travis-ci.org/p-priyanka-jain/u-boot-fsl-qoriq/builds/601133375
>  Kindly fix. Putting the series for merge on-hold till then
  
>--priyankajain

Hi Priyanka,

For my series patch compile is rely on following sata patch, please wait it's 
patch merged
  
https://patchwork.ozlabs.org/patch/1176766/
https://patchwork.ozlabs.org/patch/1176767/


Regards,
Yinbo.

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 20/20] configs: enable eSDHC device module for T4240RDB board

2019-10-15 Thread Yinbo Zhu
Hi,

This patch series has a minor change, that is p4080 dts add ";" fix that node.
And please help merge it to upstream.

Regards,
Yinbo

-Original Message-----
From: Yinbo Zhu  
Sent: 2019年10月15日 17:21
To: Wolfgang Denk ; Priyanka Jain ; 
Shengzhou Liu ; u-boot@lists.denx.de
Cc: Yinbo Zhu ; Xiaobo Xie ; Jiafei Pan 
; Prabhakar X ; Bin Meng 
; Simon Goldschmidt ; Adam 
Ford ; Patrick Delaunay ; Jeremy 
Gebben ; Joe Hershberger ; Y.b. 
Lu 
Subject: [PATCH v3 20/20] configs: enable eSDHC device module for T4240RDB board

Enable eSDHC device module for T4240RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T4240RDB_SDCARD_defconfig | 1 +
 configs/T4240RDB_defconfig| 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig 
b/configs/T4240RDB_SDCARD_defconfig
index df308d4..d213775 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig index 
9cf2c6a..6fd495e 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -50,3 +50,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
--
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 12/20] configs: enable eSDHC device module for P2020RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P2020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_defconfig  | 1 +
 configs/P2020RDB-PC_NAND_defconfig   | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig | 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P2020RDB-PC_defconfig| 1 +
 8 files changed, 8 insertions(+)

diff --git a/configs/P2020RDB-PC_36BIT_NAND_defconfig 
b/configs/P2020RDB-PC_36BIT_NAND_defconfig
index aa47e89..cfc8230 100644
--- a/configs/P2020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P2020RDB-PC_36BIT_NAND_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
index 96ea15f..4f648b8 100644
--- a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
index d0103b2..f18531a 100644
--- a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_defconfig 
b/configs/P2020RDB-PC_36BIT_defconfig
index c99c25f..31a9ef6 100644
--- a/configs/P2020RDB-PC_36BIT_defconfig
+++ b/configs/P2020RDB-PC_36BIT_defconfig
@@ -58,3 +58,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_NAND_defconfig 
b/configs/P2020RDB-PC_NAND_defconfig
index ee13ac2..3861a5f 100644
--- a/configs/P2020RDB-PC_NAND_defconfig
+++ b/configs/P2020RDB-PC_NAND_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SDCARD_defconfig 
b/configs/P2020RDB-PC_SDCARD_defconfig
index 7c43b95..8405097 100644
--- a/configs/P2020RDB-PC_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_SDCARD_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_SPIFLASH_defconfig
index cddef3e..18d55e0 100644
--- a/configs/P2020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_SPIFLASH_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_defconfig b/configs/P2020RDB-PC_defconfig
index a0a69ca..6ee0be1 100644
--- a/configs/P2020RDB-PC_defconfig
+++ b/configs/P2020RDB-PC_defconfig
@@ -57,3 +57,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 07/20] arch: powerpc: add eSDHC node to t102x dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to t102x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t102x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi
index c49fd21..a0c9702 100644
--- a/arch/powerpc/dts/t102x.dtsi
+++ b/arch/powerpc/dts/t102x.dtsi
@@ -48,6 +48,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 15/20] configs: enable eSDHC device module for P4080DS board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P4080DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P4080DS_SDCARD_defconfig   | 1 +
 configs/P4080DS_SPIFLASH_defconfig | 1 +
 configs/P4080DS_defconfig  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/configs/P4080DS_SDCARD_defconfig b/configs/P4080DS_SDCARD_defconfig
index b412e4f..fd94a1b 100644
--- a/configs/P4080DS_SDCARD_defconfig
+++ b/configs/P4080DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_SPIFLASH_defconfig 
b/configs/P4080DS_SPIFLASH_defconfig
index e5e0eb2..be4580f 100644
--- a/configs/P4080DS_SPIFLASH_defconfig
+++ b/configs/P4080DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_defconfig b/configs/P4080DS_defconfig
index a9a90e4..3548c0a 100644
--- a/configs/P4080DS_defconfig
+++ b/configs/P4080DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 19/20] configs: enable eSDHC device module for T2080RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for T2080RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T2080RDB_NAND_defconfig b/configs/T2080RDB_NAND_defconfig
index 692d01c..521e35a 100644
--- a/configs/T2080RDB_NAND_defconfig
+++ b/configs/T2080RDB_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SDCARD_defconfig 
b/configs/T2080RDB_SDCARD_defconfig
index 247cc31..1027524 100644
--- a/configs/T2080RDB_SDCARD_defconfig
+++ b/configs/T2080RDB_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SPIFLASH_defconfig 
b/configs/T2080RDB_SPIFLASH_defconfig
index 1370e16..e98a812 100644
--- a/configs/T2080RDB_SPIFLASH_defconfig
+++ b/configs/T2080RDB_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_defconfig b/configs/T2080RDB_defconfig
index bc4a026..51ead5c 100644
--- a/configs/T2080RDB_defconfig
+++ b/configs/T2080RDB_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 16/20] configs: enable eSDHC device module for P5040DS board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P5040DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P5040DS_NAND_defconfig | 1 +
 configs/P5040DS_SDCARD_defconfig   | 1 +
 configs/P5040DS_SPIFLASH_defconfig | 1 +
 configs/P5040DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P5040DS_NAND_defconfig b/configs/P5040DS_NAND_defconfig
index 47a230c..44609c0 100644
--- a/configs/P5040DS_NAND_defconfig
+++ b/configs/P5040DS_NAND_defconfig
@@ -54,3 +54,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SDCARD_defconfig b/configs/P5040DS_SDCARD_defconfig
index 719c8b4..cc4e794 100644
--- a/configs/P5040DS_SDCARD_defconfig
+++ b/configs/P5040DS_SDCARD_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SPIFLASH_defconfig 
b/configs/P5040DS_SPIFLASH_defconfig
index 3912dc9..c22f38c 100644
--- a/configs/P5040DS_SPIFLASH_defconfig
+++ b/configs/P5040DS_SPIFLASH_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_defconfig b/configs/P5040DS_defconfig
index f922521..8997894 100644
--- a/configs/P5040DS_defconfig
+++ b/configs/P5040DS_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 08/20] arch: powerpc: add eSDHC node to t104x dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to t104x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t104x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi
index 5998967..c37a80f 100644
--- a/arch/powerpc/dts/t104x.dtsi
+++ b/arch/powerpc/dts/t104x.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 20/20] configs: enable eSDHC device module for T4240RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for T4240RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T4240RDB_SDCARD_defconfig | 1 +
 configs/T4240RDB_defconfig| 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig 
b/configs/T4240RDB_SDCARD_defconfig
index df308d4..d213775 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig
index 9cf2c6a..6fd495e 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -50,3 +50,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 14/20] configs: enable eSDHC device module for P3041DS board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P3041DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P3041DS_NAND_defconfig | 1 +
 configs/P3041DS_SDCARD_defconfig   | 1 +
 configs/P3041DS_SPIFLASH_defconfig | 1 +
 configs/P3041DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P3041DS_NAND_defconfig b/configs/P3041DS_NAND_defconfig
index 0bdd2ab..95260b1 100644
--- a/configs/P3041DS_NAND_defconfig
+++ b/configs/P3041DS_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SDCARD_defconfig b/configs/P3041DS_SDCARD_defconfig
index 4d76efd..fc97f2e 100644
--- a/configs/P3041DS_SDCARD_defconfig
+++ b/configs/P3041DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SPIFLASH_defconfig 
b/configs/P3041DS_SPIFLASH_defconfig
index 8b5e13d..907f87a 100644
--- a/configs/P3041DS_SPIFLASH_defconfig
+++ b/configs/P3041DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_defconfig b/configs/P3041DS_defconfig
index 96297df..d03586a 100644
--- a/configs/P3041DS_defconfig
+++ b/configs/P3041DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 13/20] configs: enable eSDHC device module for P2041RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P2041RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2041RDB_NAND_defconfig | 1 +
 configs/P2041RDB_SDCARD_defconfig   | 1 +
 configs/P2041RDB_SPIFLASH_defconfig | 1 +
 configs/P2041RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P2041RDB_NAND_defconfig b/configs/P2041RDB_NAND_defconfig
index 7ed8abf..34c95bd 100644
--- a/configs/P2041RDB_NAND_defconfig
+++ b/configs/P2041RDB_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SDCARD_defconfig 
b/configs/P2041RDB_SDCARD_defconfig
index 4d64d08..f729fbd 100644
--- a/configs/P2041RDB_SDCARD_defconfig
+++ b/configs/P2041RDB_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SPIFLASH_defconfig 
b/configs/P2041RDB_SPIFLASH_defconfig
index ec22c95..7b619cc 100644
--- a/configs/P2041RDB_SPIFLASH_defconfig
+++ b/configs/P2041RDB_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_defconfig b/configs/P2041RDB_defconfig
index e757330..889eaa9 100644
--- a/configs/P2041RDB_defconfig
+++ b/configs/P2041RDB_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for T1042D4RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1042D4RDB_NAND_defconfig | 1 +
 configs/T1042D4RDB_SDCARD_defconfig   | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1042D4RDB_NAND_defconfig 
b/configs/T1042D4RDB_NAND_defconfig
index 2fcd9e1..27ca4c7 100644
--- a/configs/T1042D4RDB_NAND_defconfig
+++ b/configs/T1042D4RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SDCARD_defconfig 
b/configs/T1042D4RDB_SDCARD_defconfig
index 04372fd..5782176 100644
--- a/configs/T1042D4RDB_SDCARD_defconfig
+++ b/configs/T1042D4RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SPIFLASH_defconfig 
b/configs/T1042D4RDB_SPIFLASH_defconfig
index 2c869cd..fe6bee9 100644
--- a/configs/T1042D4RDB_SPIFLASH_defconfig
+++ b/configs/T1042D4RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_defconfig b/configs/T1042D4RDB_defconfig
index 5d8a25f..85b708b 100644
--- a/configs/T1042D4RDB_defconfig
+++ b/configs/T1042D4RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 10/20] board: sdhc: Use block layer to read from mmc

2019-10-15 Thread Yinbo Zhu
Use block layer to read from mmc

Signed-off-by: Yinbo Zhu 
---
 board/freescale/common/sdhc_boot.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/board/freescale/common/sdhc_boot.c 
b/board/freescale/common/sdhc_boot.c
index 357aba9..a1c7a94 100644
--- a/board/freescale/common/sdhc_boot.c
+++ b/board/freescale/common/sdhc_boot.c
@@ -28,7 +28,11 @@ int mmc_get_env_addr(struct mmc *mmc, int copy, u32 
*env_addr)
return 1;
 
/* read out the first block, get the config data information */
+#ifdef CONFIG_BLK
+   n = blk_dread(mmc_get_blk_desc(mmc), 0, 1, tmp_buf);
+#else
n = mmc->block_dev.block_read(>block_dev, 0, 1, tmp_buf);
+#endif
if (!n) {
free(tmp_buf);
return 1;
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 04/20] arch: powerpc: add eSDHC node to p3041 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p3041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p3041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi
index 197896d..6ab60a4 100644
--- a/arch/powerpc/dts/p3041.dtsi
+++ b/arch/powerpc/dts/p3041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p1020 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p1020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-post.dtsi
index 1e5e678..fb3b203 100644
--- a/arch/powerpc/dts/p1020-post.dtsi
+++ b/arch/powerpc/dts/p1020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x9000 */
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 03/20] arch: powerpc: add eSDHC node to p2041 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p2041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi
index 55f7adc..cb83475 100644
--- a/arch/powerpc/dts/p2041.dtsi
+++ b/arch/powerpc/dts/p2041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 17/20] configs: enable eSDHC device module for T1024RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for T1024RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1024RDB_NAND_defconfig b/configs/T1024RDB_NAND_defconfig
index af65615..a544d45 100644
--- a/configs/T1024RDB_NAND_defconfig
+++ b/configs/T1024RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SDCARD_defconfig 
b/configs/T1024RDB_SDCARD_defconfig
index 43817be..fb31600 100644
--- a/configs/T1024RDB_SDCARD_defconfig
+++ b/configs/T1024RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SPIFLASH_defconfig 
b/configs/T1024RDB_SPIFLASH_defconfig
index 9ffd5d6..fc9d995 100644
--- a/configs/T1024RDB_SPIFLASH_defconfig
+++ b/configs/T1024RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_defconfig b/configs/T1024RDB_defconfig
index 08a6225..9596dbc 100644
--- a/configs/T1024RDB_defconfig
+++ b/configs/T1024RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 09/20] arch: powerpc: add eSDHC node to t4240 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to t4240 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t4240.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi
index fc34974..b09b40d 100644
--- a/arch/powerpc/dts/t4240.dtsi
+++ b/arch/powerpc/dts/t4240.dtsi
@@ -98,6 +98,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 05/20] arch: powerpc: add eSDHC node to p4080 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p4080 dts

Signed-off-by: Yinbo Zhu 
---
Change in v3:
fix that node that add ";"

 arch/powerpc/dts/p4080.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi
index ab76680..08ac26d 100644
--- a/arch/powerpc/dts/p4080.dtsi
+++ b/arch/powerpc/dts/p4080.dtsi
@@ -79,6 +79,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 11/20] configs: enable eSDHC device module for P1020RDB board

2019-10-15 Thread Yinbo Zhu
Enable eSDHC device module for P1020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P1020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_defconfig  | 1 +
 configs/P1020RDB-PC_NAND_defconfig   | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig | 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PC_defconfig| 1 +
 configs/P1020RDB-PD_NAND_defconfig   | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig | 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PD_defconfig| 1 +
 12 files changed, 12 insertions(+)

diff --git a/configs/P1020RDB-PC_36BIT_NAND_defconfig 
b/configs/P1020RDB-PC_36BIT_NAND_defconfig
index ba4229e..d693bb7 100644
--- a/configs/P1020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P1020RDB-PC_36BIT_NAND_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
index 883c4d9..4194578 100644
--- a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
index 4ec953a..5598d01 100644
--- a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -65,3 +65,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_defconfig 
b/configs/P1020RDB-PC_36BIT_defconfig
index 9ce12c5..c44338a 100644
--- a/configs/P1020RDB-PC_36BIT_defconfig
+++ b/configs/P1020RDB-PC_36BIT_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_NAND_defconfig 
b/configs/P1020RDB-PC_NAND_defconfig
index 705bc71..ab0b9a0 100644
--- a/configs/P1020RDB-PC_NAND_defconfig
+++ b/configs/P1020RDB-PC_NAND_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SDCARD_defconfig 
b/configs/P1020RDB-PC_SDCARD_defconfig
index e7407aa..6c41418 100644
--- a/configs/P1020RDB-PC_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_SPIFLASH_defconfig
index 99457cb..7e52ed8 100644
--- a/configs/P1020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_SPIFLASH_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_defconfig b/configs/P1020RDB-PC_defconfig
index 9158fef..036854d 100644
--- a/configs/P1020RDB-PC_defconfig
+++ b/configs/P1020RDB-PC_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_NAND_defconfig 
b/configs/P1020RDB-PD_NAND_defconfig
index 835cbd8..b650003 100644
--- a/configs/P1020RDB-PD_NAND_defconfig
+++ b/configs/P1020RDB-PD_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SDCARD_defconfig 
b/configs/P1020RDB-PD_SDCARD_defconfig
index a07c46d..f804d3d 100644
--- a/configs/P1020RDB-PD_SDCARD_defconfig
+++ b/configs/P1020RDB-PD_SDCARD_defconfig
@@ -67,3 +67,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SPIFLASH_defconfig 
b/configs/P1020RDB-PD_SPIFLASH_defconfig
index 591c4ebf..ae1ca68 100644
--- a/configs/P1020RDB-PD_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PD_SPIFLASH_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_defconfig b/configs/P1020RDB-PD_defconfig
index a29f811..df7ef3f 100644
--- a/configs/P1020RDB-PD_defconfig
+++ b/configs/P1020RDB-PD_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 06/20] arch: powerpc: add eSDHC node to p5040 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p5040 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p5040.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi
index 8ab123d..8128ac2 100644
--- a/arch/powerpc/dts/p5040.dtsi
+++ b/arch/powerpc/dts/p5040.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3 02/20] arch: powerpc: add eSDHC node to p2020 dts

2019-10-15 Thread Yinbo Zhu
Add eSDHC node to p2020 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi
index f696f35..c07ed66 100644
--- a/arch/powerpc/dts/p2020-post.dtsi
+++ b/arch/powerpc/dts/p2020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x8000 */
-- 
2.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v2 20/20] configs: enable eSDHC device module for T4240RDB board

2019-10-15 Thread Yinbo Zhu
Hi Priyanka,

I worried other ppc ip uboot dm patch will rely on my patch.
Please help merge my patch to upstream asap, 

Regards,
Yinbo
-Original Message-
From: Yinbo Zhu  
Sent: 2019年9月18日 10:52
To: Wolfgang Denk ; Priyanka Jain ; 
Shengzhou Liu ; u-boot@lists.denx.de
Cc: Yinbo Zhu ; Xiaobo Xie ; Jiafei Pan 
; Prabhakar Kushwaha ; Bin Meng 
; Simon Goldschmidt ; Adam 
Ford ; Patrick Delaunay ; Jeremy 
Gebben ; Joe Hershberger ; Y.b. 
Lu 
Subject: [PATCH v2 20/20] configs: enable eSDHC device module for T4240RDB board

Enable eSDHC device module for T4240RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T4240RDB_SDCARD_defconfig | 1 +
 configs/T4240RDB_defconfig| 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig 
b/configs/T4240RDB_SDCARD_defconfig
index 7f97166860..61f786dc67 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig index 
81bd59566d..ee25f1fbaa 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -50,3 +50,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
--
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 20/20] configs: enable eSDHC device module for T4240RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T4240RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T4240RDB_SDCARD_defconfig | 1 +
 configs/T4240RDB_defconfig| 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig 
b/configs/T4240RDB_SDCARD_defconfig
index 7f97166860..61f786dc67 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig
index 81bd59566d..ee25f1fbaa 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -50,3 +50,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 16/20] configs: enable eSDHC device module for P5040DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P5040DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P5040DS_NAND_defconfig | 1 +
 configs/P5040DS_SDCARD_defconfig   | 1 +
 configs/P5040DS_SPIFLASH_defconfig | 1 +
 configs/P5040DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P5040DS_NAND_defconfig b/configs/P5040DS_NAND_defconfig
index 847250e0d9..f108a8964b 100644
--- a/configs/P5040DS_NAND_defconfig
+++ b/configs/P5040DS_NAND_defconfig
@@ -54,3 +54,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SDCARD_defconfig b/configs/P5040DS_SDCARD_defconfig
index a61d36d1ff..1dbdd33c7f 100644
--- a/configs/P5040DS_SDCARD_defconfig
+++ b/configs/P5040DS_SDCARD_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SPIFLASH_defconfig 
b/configs/P5040DS_SPIFLASH_defconfig
index 4eaa35448b..f446c7c9e8 100644
--- a/configs/P5040DS_SPIFLASH_defconfig
+++ b/configs/P5040DS_SPIFLASH_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_defconfig b/configs/P5040DS_defconfig
index 2e67dce267..f22d95cd29 100644
--- a/configs/P5040DS_defconfig
+++ b/configs/P5040DS_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 11/20] configs: enable eSDHC device module for P1020RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P1020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P1020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_defconfig  | 1 +
 configs/P1020RDB-PC_NAND_defconfig   | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig | 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PC_defconfig| 1 +
 configs/P1020RDB-PD_NAND_defconfig   | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig | 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PD_defconfig| 1 +
 12 files changed, 12 insertions(+)

diff --git a/configs/P1020RDB-PC_36BIT_NAND_defconfig 
b/configs/P1020RDB-PC_36BIT_NAND_defconfig
index c4e41f2010..286e18d5e4 100644
--- a/configs/P1020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P1020RDB-PC_36BIT_NAND_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
index b21fc2159b..318a76c2f5 100644
--- a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
index 2f69683379..e3aaa0e5df 100644
--- a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -65,3 +65,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_defconfig 
b/configs/P1020RDB-PC_36BIT_defconfig
index 6145bf2cc6..a8c599242a 100644
--- a/configs/P1020RDB-PC_36BIT_defconfig
+++ b/configs/P1020RDB-PC_36BIT_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_NAND_defconfig 
b/configs/P1020RDB-PC_NAND_defconfig
index 832c96967e..27d878f8ed 100644
--- a/configs/P1020RDB-PC_NAND_defconfig
+++ b/configs/P1020RDB-PC_NAND_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SDCARD_defconfig 
b/configs/P1020RDB-PC_SDCARD_defconfig
index 2b5537bc32..6d80c95414 100644
--- a/configs/P1020RDB-PC_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_SPIFLASH_defconfig
index dc4f7d6a70..e8e9c57a35 100644
--- a/configs/P1020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_SPIFLASH_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_defconfig b/configs/P1020RDB-PC_defconfig
index bd0bb1796c..27fafff8b7 100644
--- a/configs/P1020RDB-PC_defconfig
+++ b/configs/P1020RDB-PC_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_NAND_defconfig 
b/configs/P1020RDB-PD_NAND_defconfig
index acbb9e0159..573d4eb4c2 100644
--- a/configs/P1020RDB-PD_NAND_defconfig
+++ b/configs/P1020RDB-PD_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SDCARD_defconfig 
b/configs/P1020RDB-PD_SDCARD_defconfig
index 208138f594..3880f96bb7 100644
--- a/configs/P1020RDB-PD_SDCARD_defconfig
+++ b/configs/P1020RDB-PD_SDCARD_defconfig
@@ -67,3 +67,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SPIFLASH_defconfig 
b/configs/P1020RDB-PD_SPIFLASH_defconfig
index 960f2718a9..8a8780f3a4 100644
--- a/configs/P1020RDB-PD_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PD_SPIFLASH_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_defconfig b/configs/P1020RDB-PD_defconfig
index 217ae7b1e6..b14a2226e9 100644
--- a/configs/P1020RDB-PD_defconfig
+++ b/configs/P1020RDB-PD_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T1042D4RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1042D4RDB_NAND_defconfig | 1 +
 configs/T1042D4RDB_SDCARD_defconfig   | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1042D4RDB_NAND_defconfig 
b/configs/T1042D4RDB_NAND_defconfig
index 920af5b4c4..61532c13b4 100644
--- a/configs/T1042D4RDB_NAND_defconfig
+++ b/configs/T1042D4RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SDCARD_defconfig 
b/configs/T1042D4RDB_SDCARD_defconfig
index e532366218..f91108b447 100644
--- a/configs/T1042D4RDB_SDCARD_defconfig
+++ b/configs/T1042D4RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SPIFLASH_defconfig 
b/configs/T1042D4RDB_SPIFLASH_defconfig
index 78e4582113..e5093a98eb 100644
--- a/configs/T1042D4RDB_SPIFLASH_defconfig
+++ b/configs/T1042D4RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_defconfig b/configs/T1042D4RDB_defconfig
index 3a4699b3ef..0a590b9446 100644
--- a/configs/T1042D4RDB_defconfig
+++ b/configs/T1042D4RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 03/20] arch: powerpc: add eSDHC node to p2041 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p2041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi
index 55f7adc50e..cb83475d2a 100644
--- a/arch/powerpc/dts/p2041.dtsi
+++ b/arch/powerpc/dts/p2041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 12/20] configs: enable eSDHC device module for P2020RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P2020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_defconfig  | 1 +
 configs/P2020RDB-PC_NAND_defconfig   | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig | 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P2020RDB-PC_defconfig| 1 +
 8 files changed, 8 insertions(+)

diff --git a/configs/P2020RDB-PC_36BIT_NAND_defconfig 
b/configs/P2020RDB-PC_36BIT_NAND_defconfig
index 5e279814a1..04d874dca2 100644
--- a/configs/P2020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P2020RDB-PC_36BIT_NAND_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
index 49a7c8052d..c09a8ea86d 100644
--- a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
index 59fce53690..c7898e9b41 100644
--- a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_defconfig 
b/configs/P2020RDB-PC_36BIT_defconfig
index 401742463d..94450a0094 100644
--- a/configs/P2020RDB-PC_36BIT_defconfig
+++ b/configs/P2020RDB-PC_36BIT_defconfig
@@ -58,3 +58,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_NAND_defconfig 
b/configs/P2020RDB-PC_NAND_defconfig
index 3c65108d7d..eed499b091 100644
--- a/configs/P2020RDB-PC_NAND_defconfig
+++ b/configs/P2020RDB-PC_NAND_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SDCARD_defconfig 
b/configs/P2020RDB-PC_SDCARD_defconfig
index 05f42aef8a..0ef15bef63 100644
--- a/configs/P2020RDB-PC_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_SDCARD_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_SPIFLASH_defconfig
index bfb7026f2d..97eb775f4f 100644
--- a/configs/P2020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_SPIFLASH_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_defconfig b/configs/P2020RDB-PC_defconfig
index 6c7ac9d759..2e8b0aa876 100644
--- a/configs/P2020RDB-PC_defconfig
+++ b/configs/P2020RDB-PC_defconfig
@@ -57,3 +57,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 19/20] configs: enable eSDHC device module for T2080RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T2080RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T2080RDB_NAND_defconfig b/configs/T2080RDB_NAND_defconfig
index dcd57f7b3a..fc43fe5499 100644
--- a/configs/T2080RDB_NAND_defconfig
+++ b/configs/T2080RDB_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SDCARD_defconfig 
b/configs/T2080RDB_SDCARD_defconfig
index 235e8ee514..5061f7aa05 100644
--- a/configs/T2080RDB_SDCARD_defconfig
+++ b/configs/T2080RDB_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SPIFLASH_defconfig 
b/configs/T2080RDB_SPIFLASH_defconfig
index 7b64b7d490..b33c2de334 100644
--- a/configs/T2080RDB_SPIFLASH_defconfig
+++ b/configs/T2080RDB_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_defconfig b/configs/T2080RDB_defconfig
index 69ee626ee0..2da4ed2f44 100644
--- a/configs/T2080RDB_defconfig
+++ b/configs/T2080RDB_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 13/20] configs: enable eSDHC device module for P2041RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P2041RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2041RDB_NAND_defconfig | 1 +
 configs/P2041RDB_SDCARD_defconfig   | 1 +
 configs/P2041RDB_SPIFLASH_defconfig | 1 +
 configs/P2041RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P2041RDB_NAND_defconfig b/configs/P2041RDB_NAND_defconfig
index 70b9190b53..78b407bd6a 100644
--- a/configs/P2041RDB_NAND_defconfig
+++ b/configs/P2041RDB_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SDCARD_defconfig 
b/configs/P2041RDB_SDCARD_defconfig
index 2542526aee..2ddd83f512 100644
--- a/configs/P2041RDB_SDCARD_defconfig
+++ b/configs/P2041RDB_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SPIFLASH_defconfig 
b/configs/P2041RDB_SPIFLASH_defconfig
index 4edb581f7c..ed8e07fb35 100644
--- a/configs/P2041RDB_SPIFLASH_defconfig
+++ b/configs/P2041RDB_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_defconfig b/configs/P2041RDB_defconfig
index 8a158f52b7..a736468716 100644
--- a/configs/P2041RDB_defconfig
+++ b/configs/P2041RDB_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 09/20] arch: powerpc: add eSDHC node to t4240 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t4240 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t4240.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi
index fc34974c7f..b09b40d8c6 100644
--- a/arch/powerpc/dts/t4240.dtsi
+++ b/arch/powerpc/dts/t4240.dtsi
@@ -98,6 +98,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 14/20] configs: enable eSDHC device module for P3041DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P3041DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P3041DS_NAND_defconfig | 1 +
 configs/P3041DS_SDCARD_defconfig   | 1 +
 configs/P3041DS_SPIFLASH_defconfig | 1 +
 configs/P3041DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P3041DS_NAND_defconfig b/configs/P3041DS_NAND_defconfig
index 7f8145fe4c..a2aef8fe80 100644
--- a/configs/P3041DS_NAND_defconfig
+++ b/configs/P3041DS_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SDCARD_defconfig b/configs/P3041DS_SDCARD_defconfig
index c6b2750cc2..c1abc95685 100644
--- a/configs/P3041DS_SDCARD_defconfig
+++ b/configs/P3041DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SPIFLASH_defconfig 
b/configs/P3041DS_SPIFLASH_defconfig
index 1b247cc931..fcbb7f4705 100644
--- a/configs/P3041DS_SPIFLASH_defconfig
+++ b/configs/P3041DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_defconfig b/configs/P3041DS_defconfig
index f8e30efbd4..7b5dca10c3 100644
--- a/configs/P3041DS_defconfig
+++ b/configs/P3041DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 15/20] configs: enable eSDHC device module for P4080DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P4080DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P4080DS_SDCARD_defconfig   | 1 +
 configs/P4080DS_SPIFLASH_defconfig | 1 +
 configs/P4080DS_defconfig  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/configs/P4080DS_SDCARD_defconfig b/configs/P4080DS_SDCARD_defconfig
index 0c309f92ca..81d79e0c89 100644
--- a/configs/P4080DS_SDCARD_defconfig
+++ b/configs/P4080DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_SPIFLASH_defconfig 
b/configs/P4080DS_SPIFLASH_defconfig
index 070ade5cfa..7c9ba8fc4f 100644
--- a/configs/P4080DS_SPIFLASH_defconfig
+++ b/configs/P4080DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_defconfig b/configs/P4080DS_defconfig
index 0a35266cd5..38d866b32a 100644
--- a/configs/P4080DS_defconfig
+++ b/configs/P4080DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 07/20] arch: powerpc: add eSDHC node to t102x dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t102x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t102x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi
index c49fd21088..a0c97021dd 100644
--- a/arch/powerpc/dts/t102x.dtsi
+++ b/arch/powerpc/dts/t102x.dtsi
@@ -48,6 +48,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 10/20] board: sdhc: Use block layer to read from mmc

2019-09-17 Thread Yinbo Zhu
Use block layer to read from mmc

Signed-off-by: Yinbo Zhu 
---
 board/freescale/common/sdhc_boot.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/board/freescale/common/sdhc_boot.c 
b/board/freescale/common/sdhc_boot.c
index 357aba9122..a1c7a94a90 100644
--- a/board/freescale/common/sdhc_boot.c
+++ b/board/freescale/common/sdhc_boot.c
@@ -28,7 +28,11 @@ int mmc_get_env_addr(struct mmc *mmc, int copy, u32 
*env_addr)
return 1;
 
/* read out the first block, get the config data information */
+#ifdef CONFIG_BLK
+   n = blk_dread(mmc_get_blk_desc(mmc), 0, 1, tmp_buf);
+#else
n = mmc->block_dev.block_read(>block_dev, 0, 1, tmp_buf);
+#endif
if (!n) {
free(tmp_buf);
return 1;
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 06/20] arch: powerpc: add eSDHC node to p5040 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p5040 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p5040.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi
index 8ab123dca4..8128ac2376 100644
--- a/arch/powerpc/dts/p5040.dtsi
+++ b/arch/powerpc/dts/p5040.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 17/20] configs: enable eSDHC device module for T1024RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T1024RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1024RDB_NAND_defconfig b/configs/T1024RDB_NAND_defconfig
index c38912dc38..c809c25d3d 100644
--- a/configs/T1024RDB_NAND_defconfig
+++ b/configs/T1024RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SDCARD_defconfig 
b/configs/T1024RDB_SDCARD_defconfig
index 5215953caf..a70159327b 100644
--- a/configs/T1024RDB_SDCARD_defconfig
+++ b/configs/T1024RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SPIFLASH_defconfig 
b/configs/T1024RDB_SPIFLASH_defconfig
index 2e6b81b0c2..0515ece1cd 100644
--- a/configs/T1024RDB_SPIFLASH_defconfig
+++ b/configs/T1024RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_defconfig b/configs/T1024RDB_defconfig
index ccd9112832..2b300673f0 100644
--- a/configs/T1024RDB_defconfig
+++ b/configs/T1024RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 08/20] arch: powerpc: add eSDHC node to t104x dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t104x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t104x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi
index 59989677a2..c37a80f006 100644
--- a/arch/powerpc/dts/t104x.dtsi
+++ b/arch/powerpc/dts/t104x.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 04/20] arch: powerpc: add eSDHC node to p3041 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p3041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p3041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi
index 197896d35a..6ab60a4ced 100644
--- a/arch/powerpc/dts/p3041.dtsi
+++ b/arch/powerpc/dts/p3041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 05/20] arch: powerpc: add eSDHC node to p4080 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p4080 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p4080.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi
index ab766803a3..61ff5c2d67 100644
--- a/arch/powerpc/dts/p4080.dtsi
+++ b/arch/powerpc/dts/p4080.dtsi
@@ -79,6 +79,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   }
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 02/20] arch: powerpc: add eSDHC node to p2020 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p2020 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi
index f696f35960..c07ed66726 100644
--- a/arch/powerpc/dts/p2020-post.dtsi
+++ b/arch/powerpc/dts/p2020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x8000 */
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p1020 dts

Signed-off-by: Yinbo Zhu 
---
Change in v2:
remove the string "This patch is to" from commit information

 arch/powerpc/dts/p1020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-post.dtsi
index 1e5e67804b..fb3b203a24 100644
--- a/arch/powerpc/dts/p1020-post.dtsi
+++ b/arch/powerpc/dts/p1020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x9000 */
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 17/20] configs: enable eSDHC device module for T1024RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for T1024RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1024RDB_NAND_defconfig b/configs/T1024RDB_NAND_defconfig
index c38912dc38..c809c25d3d 100644
--- a/configs/T1024RDB_NAND_defconfig
+++ b/configs/T1024RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SDCARD_defconfig 
b/configs/T1024RDB_SDCARD_defconfig
index 5215953caf..a70159327b 100644
--- a/configs/T1024RDB_SDCARD_defconfig
+++ b/configs/T1024RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_SPIFLASH_defconfig 
b/configs/T1024RDB_SPIFLASH_defconfig
index 2e6b81b0c2..0515ece1cd 100644
--- a/configs/T1024RDB_SPIFLASH_defconfig
+++ b/configs/T1024RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1024RDB_defconfig b/configs/T1024RDB_defconfig
index ccd9112832..2b300673f0 100644
--- a/configs/T1024RDB_defconfig
+++ b/configs/T1024RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 20/20] configs: enable eSDHC device module for T4240RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for T4240RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T4240RDB_SDCARD_defconfig | 1 +
 configs/T4240RDB_defconfig| 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig 
b/configs/T4240RDB_SDCARD_defconfig
index 7f97166860..61f786dc67 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig
index 81bd59566d..ee25f1fbaa 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -50,3 +50,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 15/20] configs: enable eSDHC device module for P4080DS board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P4080DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P4080DS_SDCARD_defconfig   | 1 +
 configs/P4080DS_SPIFLASH_defconfig | 1 +
 configs/P4080DS_defconfig  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/configs/P4080DS_SDCARD_defconfig b/configs/P4080DS_SDCARD_defconfig
index 0c309f92ca..81d79e0c89 100644
--- a/configs/P4080DS_SDCARD_defconfig
+++ b/configs/P4080DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_SPIFLASH_defconfig 
b/configs/P4080DS_SPIFLASH_defconfig
index 070ade5cfa..7c9ba8fc4f 100644
--- a/configs/P4080DS_SPIFLASH_defconfig
+++ b/configs/P4080DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P4080DS_defconfig b/configs/P4080DS_defconfig
index 0a35266cd5..38d866b32a 100644
--- a/configs/P4080DS_defconfig
+++ b/configs/P4080DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 19/20] configs: enable eSDHC device module for T2080RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for T2080RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T2080RDB_NAND_defconfig b/configs/T2080RDB_NAND_defconfig
index dcd57f7b3a..fc43fe5499 100644
--- a/configs/T2080RDB_NAND_defconfig
+++ b/configs/T2080RDB_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SDCARD_defconfig 
b/configs/T2080RDB_SDCARD_defconfig
index 235e8ee514..5061f7aa05 100644
--- a/configs/T2080RDB_SDCARD_defconfig
+++ b/configs/T2080RDB_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_SPIFLASH_defconfig 
b/configs/T2080RDB_SPIFLASH_defconfig
index 7b64b7d490..b33c2de334 100644
--- a/configs/T2080RDB_SPIFLASH_defconfig
+++ b/configs/T2080RDB_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/T2080RDB_defconfig b/configs/T2080RDB_defconfig
index 69ee626ee0..2da4ed2f44 100644
--- a/configs/T2080RDB_defconfig
+++ b/configs/T2080RDB_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 14/20] configs: enable eSDHC device module for P3041DS board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P3041DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P3041DS_NAND_defconfig | 1 +
 configs/P3041DS_SDCARD_defconfig   | 1 +
 configs/P3041DS_SPIFLASH_defconfig | 1 +
 configs/P3041DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P3041DS_NAND_defconfig b/configs/P3041DS_NAND_defconfig
index 7f8145fe4c..a2aef8fe80 100644
--- a/configs/P3041DS_NAND_defconfig
+++ b/configs/P3041DS_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SDCARD_defconfig b/configs/P3041DS_SDCARD_defconfig
index c6b2750cc2..c1abc95685 100644
--- a/configs/P3041DS_SDCARD_defconfig
+++ b/configs/P3041DS_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_SPIFLASH_defconfig 
b/configs/P3041DS_SPIFLASH_defconfig
index 1b247cc931..fcbb7f4705 100644
--- a/configs/P3041DS_SPIFLASH_defconfig
+++ b/configs/P3041DS_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P3041DS_defconfig b/configs/P3041DS_defconfig
index f8e30efbd4..7b5dca10c3 100644
--- a/configs/P3041DS_defconfig
+++ b/configs/P3041DS_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 16/20] configs: enable eSDHC device module for P5040DS board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P5040DS board

Signed-off-by: Yinbo Zhu 
---
 configs/P5040DS_NAND_defconfig | 1 +
 configs/P5040DS_SDCARD_defconfig   | 1 +
 configs/P5040DS_SPIFLASH_defconfig | 1 +
 configs/P5040DS_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P5040DS_NAND_defconfig b/configs/P5040DS_NAND_defconfig
index 847250e0d9..f108a8964b 100644
--- a/configs/P5040DS_NAND_defconfig
+++ b/configs/P5040DS_NAND_defconfig
@@ -54,3 +54,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SDCARD_defconfig b/configs/P5040DS_SDCARD_defconfig
index a61d36d1ff..1dbdd33c7f 100644
--- a/configs/P5040DS_SDCARD_defconfig
+++ b/configs/P5040DS_SDCARD_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_SPIFLASH_defconfig 
b/configs/P5040DS_SPIFLASH_defconfig
index 4eaa35448b..f446c7c9e8 100644
--- a/configs/P5040DS_SPIFLASH_defconfig
+++ b/configs/P5040DS_SPIFLASH_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P5040DS_defconfig b/configs/P5040DS_defconfig
index 2e67dce267..f22d95cd29 100644
--- a/configs/P5040DS_defconfig
+++ b/configs/P5040DS_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 05/20] arch: powerpc: add eSDHC node to p4080 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p4080 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p4080.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi
index ab766803a3..61ff5c2d67 100644
--- a/arch/powerpc/dts/p4080.dtsi
+++ b/arch/powerpc/dts/p4080.dtsi
@@ -79,6 +79,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   }
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 04/20] arch: powerpc: add eSDHC node to p3041 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p3041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p3041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi
index 197896d35a..6ab60a4ced 100644
--- a/arch/powerpc/dts/p3041.dtsi
+++ b/arch/powerpc/dts/p3041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for T1042D4RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/T1042D4RDB_NAND_defconfig | 1 +
 configs/T1042D4RDB_SDCARD_defconfig   | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/T1042D4RDB_NAND_defconfig 
b/configs/T1042D4RDB_NAND_defconfig
index 920af5b4c4..61532c13b4 100644
--- a/configs/T1042D4RDB_NAND_defconfig
+++ b/configs/T1042D4RDB_NAND_defconfig
@@ -76,3 +76,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SDCARD_defconfig 
b/configs/T1042D4RDB_SDCARD_defconfig
index e532366218..f91108b447 100644
--- a/configs/T1042D4RDB_SDCARD_defconfig
+++ b/configs/T1042D4RDB_SDCARD_defconfig
@@ -73,3 +73,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_SPIFLASH_defconfig 
b/configs/T1042D4RDB_SPIFLASH_defconfig
index 78e4582113..e5093a98eb 100644
--- a/configs/T1042D4RDB_SPIFLASH_defconfig
+++ b/configs/T1042D4RDB_SPIFLASH_defconfig
@@ -74,3 +74,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
diff --git a/configs/T1042D4RDB_defconfig b/configs/T1042D4RDB_defconfig
index 3a4699b3ef..0a590b9446 100644
--- a/configs/T1042D4RDB_defconfig
+++ b/configs/T1042D4RDB_defconfig
@@ -60,3 +60,4 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_VIDEO=y
 CONFIG_CFB_CONSOLE_ANSI=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 12/20] configs: enable eSDHC device module for P2020RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P2020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_defconfig  | 1 +
 configs/P2020RDB-PC_NAND_defconfig   | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig | 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P2020RDB-PC_defconfig| 1 +
 8 files changed, 8 insertions(+)

diff --git a/configs/P2020RDB-PC_36BIT_NAND_defconfig 
b/configs/P2020RDB-PC_36BIT_NAND_defconfig
index 5e279814a1..04d874dca2 100644
--- a/configs/P2020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P2020RDB-PC_36BIT_NAND_defconfig
@@ -74,3 +74,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
index 49a7c8052d..c09a8ea86d 100644
--- a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
index 59fce53690..c7898e9b41 100644
--- a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -70,3 +70,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_36BIT_defconfig 
b/configs/P2020RDB-PC_36BIT_defconfig
index 401742463d..94450a0094 100644
--- a/configs/P2020RDB-PC_36BIT_defconfig
+++ b/configs/P2020RDB-PC_36BIT_defconfig
@@ -58,3 +58,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_NAND_defconfig 
b/configs/P2020RDB-PC_NAND_defconfig
index 3c65108d7d..eed499b091 100644
--- a/configs/P2020RDB-PC_NAND_defconfig
+++ b/configs/P2020RDB-PC_NAND_defconfig
@@ -73,3 +73,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SDCARD_defconfig 
b/configs/P2020RDB-PC_SDCARD_defconfig
index 05f42aef8a..0ef15bef63 100644
--- a/configs/P2020RDB-PC_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_SDCARD_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_SPIFLASH_defconfig 
b/configs/P2020RDB-PC_SPIFLASH_defconfig
index bfb7026f2d..97eb775f4f 100644
--- a/configs/P2020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_SPIFLASH_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2020RDB-PC_defconfig b/configs/P2020RDB-PC_defconfig
index 6c7ac9d759..2e8b0aa876 100644
--- a/configs/P2020RDB-PC_defconfig
+++ b/configs/P2020RDB-PC_defconfig
@@ -57,3 +57,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 11/20] configs: enable eSDHC device module for P1020RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P1020RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P1020RDB-PC_36BIT_NAND_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1020RDB-PC_36BIT_defconfig  | 1 +
 configs/P1020RDB-PC_NAND_defconfig   | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig | 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PC_defconfig| 1 +
 configs/P1020RDB-PD_NAND_defconfig   | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig | 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PD_defconfig| 1 +
 12 files changed, 12 insertions(+)

diff --git a/configs/P1020RDB-PC_36BIT_NAND_defconfig 
b/configs/P1020RDB-PC_36BIT_NAND_defconfig
index c4e41f2010..286e18d5e4 100644
--- a/configs/P1020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P1020RDB-PC_36BIT_NAND_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig 
b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
index b21fc2159b..318a76c2f5 100644
--- a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
index 2f69683379..e3aaa0e5df 100644
--- a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -65,3 +65,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_36BIT_defconfig 
b/configs/P1020RDB-PC_36BIT_defconfig
index 6145bf2cc6..a8c599242a 100644
--- a/configs/P1020RDB-PC_36BIT_defconfig
+++ b/configs/P1020RDB-PC_36BIT_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_NAND_defconfig 
b/configs/P1020RDB-PC_NAND_defconfig
index 832c96967e..27d878f8ed 100644
--- a/configs/P1020RDB-PC_NAND_defconfig
+++ b/configs/P1020RDB-PC_NAND_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SDCARD_defconfig 
b/configs/P1020RDB-PC_SDCARD_defconfig
index 2b5537bc32..6d80c95414 100644
--- a/configs/P1020RDB-PC_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_SDCARD_defconfig
@@ -63,3 +63,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_SPIFLASH_defconfig 
b/configs/P1020RDB-PC_SPIFLASH_defconfig
index dc4f7d6a70..e8e9c57a35 100644
--- a/configs/P1020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_SPIFLASH_defconfig
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PC_defconfig b/configs/P1020RDB-PC_defconfig
index bd0bb1796c..27fafff8b7 100644
--- a/configs/P1020RDB-PC_defconfig
+++ b/configs/P1020RDB-PC_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_NAND_defconfig 
b/configs/P1020RDB-PD_NAND_defconfig
index acbb9e0159..573d4eb4c2 100644
--- a/configs/P1020RDB-PD_NAND_defconfig
+++ b/configs/P1020RDB-PD_NAND_defconfig
@@ -72,3 +72,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SDCARD_defconfig 
b/configs/P1020RDB-PD_SDCARD_defconfig
index 208138f594..3880f96bb7 100644
--- a/configs/P1020RDB-PD_SDCARD_defconfig
+++ b/configs/P1020RDB-PD_SDCARD_defconfig
@@ -67,3 +67,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_SPIFLASH_defconfig 
b/configs/P1020RDB-PD_SPIFLASH_defconfig
index 960f2718a9..8a8780f3a4 100644
--- a/configs/P1020RDB-PD_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PD_SPIFLASH_defconfig
@@ -68,3 +68,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P1020RDB-PD_defconfig b/configs/P1020RDB-PD_defconfig
index 217ae7b1e6..b14a2226e9 100644
--- a/configs/P1020RDB-PD_defconfig
+++ b/configs/P1020RDB-PD_defconfig
@@ -56,3 +56,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 07/20] arch: powerpc: add eSDHC node to t102x dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to t102x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t102x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi
index c49fd21088..a0c97021dd 100644
--- a/arch/powerpc/dts/t102x.dtsi
+++ b/arch/powerpc/dts/t102x.dtsi
@@ -48,6 +48,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 08/20] arch: powerpc: add eSDHC node to t104x dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to t104x dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t104x.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi
index 59989677a2..c37a80f006 100644
--- a/arch/powerpc/dts/t104x.dtsi
+++ b/arch/powerpc/dts/t104x.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 13/20] configs: enable eSDHC device module for P2041RDB board

2019-09-16 Thread Yinbo Zhu
This patch is to enable eSDHC device module for P2041RDB board

Signed-off-by: Yinbo Zhu 
---
 configs/P2041RDB_NAND_defconfig | 1 +
 configs/P2041RDB_SDCARD_defconfig   | 1 +
 configs/P2041RDB_SPIFLASH_defconfig | 1 +
 configs/P2041RDB_defconfig  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/configs/P2041RDB_NAND_defconfig b/configs/P2041RDB_NAND_defconfig
index 70b9190b53..78b407bd6a 100644
--- a/configs/P2041RDB_NAND_defconfig
+++ b/configs/P2041RDB_NAND_defconfig
@@ -53,3 +53,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SDCARD_defconfig 
b/configs/P2041RDB_SDCARD_defconfig
index 2542526aee..2ddd83f512 100644
--- a/configs/P2041RDB_SDCARD_defconfig
+++ b/configs/P2041RDB_SDCARD_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_SPIFLASH_defconfig 
b/configs/P2041RDB_SPIFLASH_defconfig
index 4edb581f7c..ed8e07fb35 100644
--- a/configs/P2041RDB_SPIFLASH_defconfig
+++ b/configs/P2041RDB_SPIFLASH_defconfig
@@ -52,3 +52,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
diff --git a/configs/P2041RDB_defconfig b/configs/P2041RDB_defconfig
index 8a158f52b7..a736468716 100644
--- a/configs/P2041RDB_defconfig
+++ b/configs/P2041RDB_defconfig
@@ -51,3 +51,4 @@ CONFIG_SPI=y
 CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_DM_MMC=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 10/20] board: sdhc: Use block layer to read from mmc

2019-09-16 Thread Yinbo Zhu
This patch is use block layer to read from mmc

Signed-off-by: Yinbo Zhu 
---
 board/freescale/common/sdhc_boot.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/board/freescale/common/sdhc_boot.c 
b/board/freescale/common/sdhc_boot.c
index 357aba9122..a1c7a94a90 100644
--- a/board/freescale/common/sdhc_boot.c
+++ b/board/freescale/common/sdhc_boot.c
@@ -28,7 +28,11 @@ int mmc_get_env_addr(struct mmc *mmc, int copy, u32 
*env_addr)
return 1;
 
/* read out the first block, get the config data information */
+#ifdef CONFIG_BLK
+   n = blk_dread(mmc_get_blk_desc(mmc), 0, 1, tmp_buf);
+#else
n = mmc->block_dev.block_read(>block_dev, 0, 1, tmp_buf);
+#endif
if (!n) {
free(tmp_buf);
return 1;
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 09/20] arch: powerpc: add eSDHC node to t4240 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to t4240 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/t4240.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi
index fc34974c7f..b09b40d8c6 100644
--- a/arch/powerpc/dts/t4240.dtsi
+++ b/arch/powerpc/dts/t4240.dtsi
@@ -98,6 +98,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe24 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 06/20] arch: powerpc: add eSDHC node to p5040 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p5040 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p5040.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi
index 8ab123dca4..8128ac2376 100644
--- a/arch/powerpc/dts/p5040.dtsi
+++ b/arch/powerpc/dts/p5040.dtsi
@@ -58,6 +58,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 02/20] arch: powerpc: add eSDHC node to p2020 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p2020 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi
index f696f35960..c07ed66726 100644
--- a/arch/powerpc/dts/p2020-post.dtsi
+++ b/arch/powerpc/dts/p2020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x8000 */
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 03/20] arch: powerpc: add eSDHC node to p2041 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p2041 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p2041.dtsi | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi
index 55f7adc50e..cb83475d2a 100644
--- a/arch/powerpc/dts/p2041.dtsi
+++ b/arch/powerpc/dts/p2041.dtsi
@@ -59,6 +59,12 @@
device_type = "open-pic";
clock-frequency = <0x0>;
};
+
+   esdhc: esdhc@114000 {
+   compatible = "fsl,esdhc";
+   reg = <0x114000 0x1000>;
+   clock-frequency = <0>;
+   };
};
 
pcie@ffe20 {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-09-16 Thread Yinbo Zhu
This patch is to add eSDHC node to p1020 dts

Signed-off-by: Yinbo Zhu 
---
 arch/powerpc/dts/p1020-post.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-post.dtsi
index 1e5e67804b..fb3b203a24 100644
--- a/arch/powerpc/dts/p1020-post.dtsi
+++ b/arch/powerpc/dts/p1020-post.dtsi
@@ -24,6 +24,13 @@
single-cpu-affinity;
last-interrupt-source = <255>;
};
+
+   esdhc: esdhc@2e000 {
+   compatible = "fsl,esdhc";
+   reg = <0x2e000 0x1000>;
+   /* Filled in by U-Boot */
+   clock-frequency = <0>;
+   };
 };
 
 /* PCIe controller base address 0x9000 */
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 7/8] configs: ls1012ardb/lx2160ardb/ls1028ardb: add hs200 config for esdhc

2019-09-12 Thread Yinbo Zhu
This patch is to add CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and
CONFIG_MMC_HS200_SUPPORT

CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and CONFIG_MMC_HS200_SUPPORT

Signed-off-by: Yinbo Zhu 
---
 configs/ls1012ardb_tfa_defconfig | 2 ++
 configs/ls1028ardb_tfa_defconfig | 2 ++
 configs/lx2160ardb_tfa_defconfig | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/configs/ls1012ardb_tfa_defconfig b/configs/ls1012ardb_tfa_defconfig
index f385d4ecdb..3244b74531 100644
--- a/configs/ls1012ardb_tfa_defconfig
+++ b/configs/ls1012ardb_tfa_defconfig
@@ -55,4 +55,6 @@ CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_USB_XHCI_DWC3=y
diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index 2c877f4966..c15427f12f 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -63,4 +63,6 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_VIDEO=y
 CONFIG_WDT=y
 CONFIG_WDT_SP805=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
diff --git a/configs/lx2160ardb_tfa_defconfig b/configs/lx2160ardb_tfa_defconfig
index de670c7379..a50687f586 100644
--- a/configs/lx2160ardb_tfa_defconfig
+++ b/configs/lx2160ardb_tfa_defconfig
@@ -63,4 +63,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 5/8] dts: armv8: add emmc hs200 support for ls1028ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1028ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-ls1028a-rdb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts
index f5fcbbf068..cc418df1fa 100644
--- a/arch/arm/dts/fsl-ls1028a-rdb.dts
+++ b/arch/arm/dts/fsl-ls1028a-rdb.dts
@@ -36,6 +36,7 @@
 
  {
status = "okay";
+   mmc-hs200-1_8v;
 };
 
  {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 4/8] dts: armv8: add emmc hs200 support for lx2160ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for lx2160ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-lx2160a-rdb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts
index 7c4f0e76ae..18ce9c25c7 100644
--- a/arch/arm/dts/fsl-lx2160a-rdb.dts
+++ b/arch/arm/dts/fsl-lx2160a-rdb.dts
@@ -52,6 +52,7 @@
 
  {
status = "okay";
+   mmc-hs200-1_8v;
 };
 
  {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 8/8] mmc: fsl_esdhc: enable CONFIG_FSL_ESDHC in ls1028ardb config

2019-09-12 Thread Yinbo Zhu
This patch is to enable CONFIG_FSL_ESDHC in ls1028ardb config

Signed-off-by: Yinbo Zhu 
---
Change in v2:
for this patch series add this patch to enable
CONFIG_FSL_ESDHC

 configs/ls1028ardb_tfa_defconfig | 1 +
 include/configs/ls1028a_common.h | 7 ---
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index c15427f12f..0b29bd19f4 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -65,4 +65,5 @@ CONFIG_WDT=y
 CONFIG_WDT_SP805=y
 CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
 CONFIG_MMC_HS200_SUPPORT=y
+CONFIG_FSL_ESDHC=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h
index 41ce4a054c..140cd63016 100644
--- a/include/configs/ls1028a_common.h
+++ b/include/configs/ls1028a_common.h
@@ -186,7 +186,6 @@
 
 /*  MMC  */
 #ifdef CONFIG_MMC
-#define CONFIG_FSL_ESDHC
 #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
 #endif
 
@@ -200,12 +199,6 @@
 
 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
 
-/*  MMC  */
-#ifdef CONFIG_MMC
-#define CONFIG_FSL_ESDHC
-#define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
-#endif
-
 /* I2C bus multiplexer */
 #define I2C_MUX_PCA_ADDR_PRI0x77 /* Primary Mux*/
 #define I2C_MUX_CH_DEFAULT  0x8
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 6/8] mmc: fsl_esdhc: Add emmc hs200 support

2019-09-12 Thread Yinbo Zhu
Add eMMC hs200 mode support for ls1028a,lx2160a,ls1012a. This increases
eMMC performance. Tuning procedure is currently not supported

Signed-off-by: Yinbo Zhu 
---
Change in v2:
update the commit information

 drivers/mmc/fsl_esdhc.c | 34 +++---
 include/fsl_esdhc.h |  4 
 2 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 4959e1892b..abe6ea3010 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -394,10 +394,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
esdhc_write32(>cmdarg, cmd->cmdarg);
esdhc_write32(>xfertyp, xfertyp);
 
-   if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
-   (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200))
-   flags = IRQSTAT_BRR;
-
/* Wait for the command to complete */
start = get_timer(0);
while (!(esdhc_read32(>irqstat) & flags)) {
@@ -457,12 +453,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
 #ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
esdhc_pio_read_write(priv, data);
 #else
-   flags = DATA_COMPLETE;
-   if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
-   (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)) {
-   flags = IRQSTAT_BRR;
-   }
-
do {
irqstat = esdhc_read32(>irqstat);
 
@@ -475,7 +465,7 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
err = -ECOMM;
goto out;
}
-   } while ((irqstat & flags) != flags);
+   } while ((irqstat & DATA_COMPLETE) != DATA_COMPLETE);
 
/*
 * Need invalidate the dcache here again to avoid any
@@ -516,7 +506,9 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct 
mmc *mmc, uint clock)
int div = 1;
int pre_div = 2;
int ddr_pre_div = mmc->ddr_mode ? 2 : 1;
-   int sdhc_clk = priv->sdhc_clk;
+   unsigned int sdhc_clk = priv->sdhc_clk;
+   u32 time_out;
+   u32 value;
uint clk;
 
if (clock < mmc->cfg->f_min)
@@ -537,11 +529,18 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, 
struct mmc *mmc, uint clock)
 
esdhc_clrsetbits32(>sysctl, SYSCTL_CLOCK_MASK, clk);
 
-   udelay(1);
+   time_out = 20;
+   value = PRSSTAT_SDSTB;
+   while (!(esdhc_read32(>prsstat) & value)) {
+   if (time_out == 0) {
+   printf("fsl_esdhc: Internal clock never stabilised.\n");
+   break;
+   }
+   time_out--;
+   mdelay(1);
+   }
 
esdhc_setbits32(>sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
-
-   priv->clock = clock;
 }
 
 #ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
@@ -1014,6 +1013,8 @@ static int fsl_esdhc_probe(struct udevice *dev)
return ret;
}
 
+   mmc_of_parse(dev, >cfg);
+
mmc = >mmc;
mmc->cfg = >cfg;
mmc->dev = dev;
@@ -1071,6 +1072,9 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
.get_cd = fsl_esdhc_get_cd,
.send_cmd   = fsl_esdhc_send_cmd,
.set_ios= fsl_esdhc_set_ios,
+#ifdef MMC_SUPPORTS_TUNING
+   .execute_tuning = fsl_esdhc_execute_tuning,
+#endif
 };
 #endif
 
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 7d7e946ab3..3f496b4cea 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -205,6 +205,10 @@ struct fsl_esdhc_cfg {
 int fsl_esdhc_mmc_init(bd_t *bis);
 int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg);
 void fdt_fixup_esdhc(void *blob, bd_t *bd);
+#ifdef MMC_SUPPORTS_TUNING
+static inline int fsl_esdhc_execute_tuning(struct udevice *dev,
+   uint32_t opcode) {return 0; }
+#endif
 #else
 static inline int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; }
 static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {}
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 2/8] mmc: add a Kconfig option to enable the peripheral clock support

2019-09-12 Thread Yinbo Zhu
eSDHC supports two reference clocks (platform clock and peripheral
clock). Peripheral clock which could provide higher clock frequency
is required to be used for tuning of SD UHS mode and eMMC HS200/HS400
modes.

Signed-off-by: Yinbo Zhu 
---
 drivers/mmc/Kconfig | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 04a4e7716f..3c1523a129 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -130,7 +130,6 @@ config MMC_HS200_SUPPORT
  The HS200 mode is support by some eMMC. The bus frequency is up to
  200MHz. This mode requires tuning the IO.
 
-
 config SPL_MMC_HS200_SUPPORT
bool "enable HS200 support in SPL"
help
@@ -637,10 +636,19 @@ config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
 
 config FSL_ESDHC
bool "Freescale/NXP eSDHC controller support"
+   select FSL_ESDHC_USE_PERIPHERAL_CLK if MMC_HS200_SUPPORT || 
MMC_UHS_SUPPORT
help
  This selects support for the eSDHC (enhanced secure digital host
  controller) found on numerous Freescale/NXP SoCs.
 
+config FSL_ESDHC_USE_PERIPHERAL_CLK
+   bool "enable ESDHC peripheral clock support"
+   depends on FSL_ESDHC
+   help
+ eSDHC supports two reference clocks (platform clock and peripheral 
clock).
+ Peripheral clock which could provide higher clock frequency is 
required to
+ be used for tuning of SD UHS mode and eMMC HS200/HS400 modes.
+
 endmenu
 
 config SYS_FSL_ERRATUM_ESDHC111
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 3/8] dts: armv8: add emmc hs200 support for ls1012ardb

2019-09-12 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1012ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-ls1012a-rdb.dtsi | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/fsl-ls1012a-rdb.dtsi 
b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
index 757e2eb351..83d19c69a9 100644
--- a/arch/arm/dts/fsl-ls1012a-rdb.dtsi
+++ b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
@@ -14,6 +14,10 @@
};
 };
 
+ {
+   mmc-hs200-1_8v;
+};
+
  {
bus-num = <0>;
status = "okay";
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 1/8] mmc: fsl_esdhc: Add peripheral clock support

2019-09-12 Thread Yinbo Zhu
This patch is to add peripheral clock support

Signed-off-by: Yinbo Zhu 
---
 .../armv8/fsl-layerscape/fsl_lsch2_speed.c| 49 ---
 .../armv8/fsl-layerscape/fsl_lsch3_speed.c| 45 -
 .../asm/arch-fsl-layerscape/immap_lsch2.h |  2 +-
 .../asm/arch-fsl-layerscape/immap_lsch3.h |  1 +
 4 files changed, 78 insertions(+), 19 deletions(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 9ece4b90e6..23391398ed 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -22,10 +22,12 @@ DECLARE_GLOBAL_DATA_PTR;
 void get_sys_info(struct sys_info *sys_info)
 {
struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
-#if (defined(CONFIG_FSL_ESDHC) &&\
-   defined(CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK)) ||\
-   defined(CONFIG_SYS_DPAA_FMAN)
-
+/* rcw_tmp is needed to get FMan clock, or to get cluster group A
+ * mux 2 clock for LS1043A/LS1046A.
+ */
+#if defined(CONFIG_SYS_DPAA_FMAN) || \
+   defined(CONFIG_TARGET_LS1046ARDB) || \
+   defined(CONFIG_TARGET_LS1043ARDB)
u32 rcw_tmp;
 #endif
struct ccsr_clk *clk = (void *)(CONFIG_SYS_FSL_CLK_ADDR);
@@ -122,32 +124,32 @@ void get_sys_info(struct sys_info *sys_info)
}
 #endif
 
+#ifdef CONFIG_FSL_ESDHC
 #define HWA_CGA_M2_CLK_SEL 0x0007
 #define HWA_CGA_M2_CLK_SHIFT   0
-#ifdef CONFIG_FSL_ESDHC
-#ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
+#if defined(CONFIG_TARGET_LS1046ARDB) || defined(CONFIG_TARGET_LS1043ARDB)
rcw_tmp = in_be32(>rcwsr[15]);
switch ((rcw_tmp & HWA_CGA_M2_CLK_SEL) >> HWA_CGA_M2_CLK_SHIFT) {
case 1:
-   sys_info->freq_sdhc = freq_c_pll[1];
+   sys_info->freq_cga_m2 = freq_c_pll[1];
break;
+#if defined(CONFIG_TARGET_LS1046ARDB)
case 2:
-   sys_info->freq_sdhc = freq_c_pll[1] / 2;
+   sys_info->freq_cga_m2 = freq_c_pll[1] / 2;
break;
+#endif
case 3:
-   sys_info->freq_sdhc = freq_c_pll[1] / 3;
+   sys_info->freq_cga_m2 = freq_c_pll[1] / 3;
break;
+#if defined(CONFIG_TARGET_LS1046ARDB)
case 6:
-   sys_info->freq_sdhc = freq_c_pll[0] / 2;
+   sys_info->freq_cga_m2 = freq_c_pll[0] / 2;
break;
+#endif
default:
-   printf("Error: Unknown ESDHC clock select!\n");
+   printf("Error: Unknown peripheral clock select!\n");
break;
}
-#else
-   sys_info->freq_sdhc = (sys_info->freq_systembus /
-   CONFIG_SYS_FSL_PCLK_DIV) /
-   CONFIG_SYS_FSL_SDHC_CLK_DIV;
 #endif
 #endif
 
@@ -183,9 +185,22 @@ int get_clocks(void)
gd->mem_clk = sys_info.freq_ddrbus;
 
 #ifdef CONFIG_FSL_ESDHC
-   gd->arch.sdhc_clk = sys_info.freq_sdhc;
+#if defined(CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK)
+#if defined(CONFIG_TARGET_LS1046ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_cga_m2 / 2;
+#endif
+#if defined(CONFIG_TARGET_LS1043ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_cga_m2;
+#endif
+#if defined(CONFIG_TARGET_LS1012ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_systembus;
+#endif
+#else
+   gd->arch.sdhc_clk = (sys_info.freq_systembus /
+   CONFIG_SYS_FSL_PCLK_DIV) /
+   CONFIG_SYS_FSL_SDHC_CLK_DIV;
+#endif
 #endif
-
if (gd->cpu_clk != 0)
return 0;
else
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
index 0985778ff9..c2b11039af 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
@@ -63,6 +63,9 @@ void get_sys_info(struct sys_info *sys_info)
};
 
uint i, cluster;
+#if defined(CONFIG_TARGET_LS1028ARDB) || defined(CONFIG_TARGET_LS1088ARDB)
+   uint rcw_tmp;
+#endif
uint freq_c_pll[CONFIG_SYS_FSL_NUM_CC_PLLS];
uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
@@ -126,8 +129,39 @@ void get_sys_info(struct sys_info *sys_info)
sys_info->freq_localbus = sys_info->freq_systembus /
CONFIG_SYS_FSL_IFC_CLK_DIV;
 #endif
-}
 
+#if defined(CONFIG_TARGET_LS1028ARDB) || defined(CONFIG_TARGET_LS1088ARDB)
+#define HWA_CGA_M2_CLK_SEL  0x0038
+#define HWA_CGA_M2_CLK_SHIFT19
+   rcw_tmp = in_le32(>rcwsr[5]);
+   switch ((rcw_tmp & HWA_CGA_M2_CLK_SEL) >> HWA_CGA_M2_CLK_SHIFT) {
+   case 1:
+   sys_info->freq_cga_m2 = freq_c_pll[1];
+   break;
+   case 2:
+   sys_info->freq_cga_m2 

Re: [U-Boot] [PATCH v1 6/7] mmc: fsl_esdhc: Add emmc hs200 support

2019-09-09 Thread Yinbo Zhu
Hi York Sun,

Could you help me merge that series patch to uboot upstream tree.

Regards,
Yinbo Zhu
Original Message-
From: Peng Fan 
Sent: 2019年8月28日 9:04
To: Yinbo Zhu ; York Sun ; 
u-boot@lists.denx.de
Cc: Jiafei Pan ; Yinbo Zhu ; Xiaobo Xie 

Subject: RE: [U-Boot] [PATCH v1 6/7] mmc: fsl_esdhc: Add emmc hs200 support

> Subject: [U-Boot] [PATCH v1 6/7] mmc: fsl_esdhc: Add emmc hs200 
> support
> 
> Add eMMC hs200 mode support for increasing ls1028/ls1012/lx2160 eMMC 
> work performance, but without tuning procedure which will cause mmc 
> doesn't work. and this should be TODO work.
> 
> Signed-off-by: Yinbo Zhu 

Acked-by: Peng Fan 

> ---
>  drivers/mmc/fsl_esdhc.c | 34 +++---
>  include/fsl_esdhc.h |  4 
>  2 files changed, 23 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index
> 07318472a7..28d2312ef7 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -395,10 +395,6 @@ static int esdhc_send_cmd_common(struct 
> fsl_esdhc_priv *priv, struct mmc *mmc,
>   esdhc_write32(>cmdarg, cmd->cmdarg);
>   esdhc_write32(>xfertyp, xfertyp);
> 
> - if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
> - (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200))
> - flags = IRQSTAT_BRR;
> -
>   /* Wait for the command to complete */
>   start = get_timer(0);
>   while (!(esdhc_read32(>irqstat) & flags)) { @@ -458,12 +454,6 
> @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, 
> struct mmc *mmc,  #ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
>   esdhc_pio_read_write(priv, data);
>  #else
> - flags = DATA_COMPLETE;
> - if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
> - (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200))
> {
> - flags = IRQSTAT_BRR;
> - }
> -
>   do {
>   irqstat = esdhc_read32(>irqstat);
> 
> @@ -476,7 +466,7 @@ static int esdhc_send_cmd_common(struct 
> fsl_esdhc_priv *priv, struct mmc *mmc,
>   err = -ECOMM;
>   goto out;
>   }
> - } while ((irqstat & flags) != flags);
> + } while ((irqstat & DATA_COMPLETE) != DATA_COMPLETE);
> 
>   /*
>* Need invalidate the dcache here again to avoid any @@ -517,7
> +507,9 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct 
> +mmc
> *mmc, uint clock)
>   int div = 1;
>   int pre_div = 2;
>   int ddr_pre_div = mmc->ddr_mode ? 2 : 1;
> - int sdhc_clk = priv->sdhc_clk;
> + unsigned int sdhc_clk = priv->sdhc_clk;
> + u32 time_out;
> + u32 value;
>   uint clk;
> 
>   if (clock < mmc->cfg->f_min)
> @@ -538,11 +530,18 @@ static void set_sysctl(struct fsl_esdhc_priv 
> *priv, struct mmc *mmc, uint clock)
> 
>   esdhc_clrsetbits32(>sysctl, SYSCTL_CLOCK_MASK, clk);
> 
> - udelay(1);
> + time_out = 20;
> + value = PRSSTAT_SDSTB;
> + while (!(esdhc_read32(>prsstat) & value)) {
> + if (time_out == 0) {
> + printf("fsl_esdhc: Internal clock never stabilised.\n");
> + break;
> + }
> + time_out--;
> + mdelay(1);
> + }
> 
>   esdhc_setbits32(>sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
> -
> - priv->clock = clock;
>  }
> 
>  #ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
> @@ -1024,6 +1023,8 @@ static int fsl_esdhc_probe(struct udevice *dev)
>   return ret;
>   }
> 
> + mmc_of_parse(dev, >cfg);
> +
>   mmc = >mmc;
>   mmc->cfg = >cfg;
>   mmc->dev = dev;
> @@ -1081,6 +1082,9 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
>   .get_cd = fsl_esdhc_get_cd,
>   .send_cmd   = fsl_esdhc_send_cmd,
>   .set_ios= fsl_esdhc_set_ios,
> +#ifdef MMC_SUPPORTS_TUNING
> + .execute_tuning = fsl_esdhc_execute_tuning, #endif
>  };
>  #endif
> 
> diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index 
> 7d7e946ab3..3f496b4cea 100644
> --- a/include/fsl_esdhc.h
> +++ b/include/fsl_esdhc.h
> @@ -205,6 +205,10 @@ struct fsl_esdhc_cfg {  int 
> fsl_esdhc_mmc_init(bd_t *bis);  int fsl_esdhc_initialize(bd_t *bis, 
> struct fsl_esdhc_cfg *cfg);  void fdt_fixup_esdhc(void *blob, bd_t 
> *bd);
> +#ifdef MMC_SUPPORTS_TUNING
> +static inline int fsl_esdhc_execute_tuning(struct udevice *dev,
> + uint32_t opcode) {re

[U-Boot] [PATCH v1 5/7] dts: armv8: add emmc hs200 support for ls1028ardb

2019-07-16 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1028ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-ls1028a-rdb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts
index 932cfa2275..44e9e33114 100644
--- a/arch/arm/dts/fsl-ls1028a-rdb.dts
+++ b/arch/arm/dts/fsl-ls1028a-rdb.dts
@@ -33,6 +33,7 @@
 
  {
status = "okay";
+   mmc-hs200-1_8v;
 };
 
  {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 7/7] configs: ls1012ardb/lx2160ardb/ls1028ardb: add hs200 config for esdhc

2019-07-16 Thread Yinbo Zhu
This patch is to add CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and
CONFIG_MMC_HS200_SUPPORT

CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK and CONFIG_MMC_HS200_SUPPORT

Signed-off-by: Yinbo Zhu 
---
 configs/ls1012ardb_tfa_defconfig | 2 ++
 configs/ls1028ardb_tfa_defconfig | 2 ++
 configs/lx2160ardb_tfa_defconfig | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/configs/ls1012ardb_tfa_defconfig b/configs/ls1012ardb_tfa_defconfig
index 8acc07d3c8..e6b5e1c5e4 100644
--- a/configs/ls1012ardb_tfa_defconfig
+++ b/configs/ls1012ardb_tfa_defconfig
@@ -55,4 +55,6 @@ CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_USB_XHCI_DWC3=y
diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index 2d0c2b1345..0803bfffb3 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -63,4 +63,6 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_WDT=y
 CONFIG_WDT_SP805=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
diff --git a/configs/lx2160ardb_tfa_defconfig b/configs/lx2160ardb_tfa_defconfig
index 94f58a832f..6aab95e22f 100644
--- a/configs/lx2160ardb_tfa_defconfig
+++ b/configs/lx2160ardb_tfa_defconfig
@@ -56,4 +56,6 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK=y
+CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 6/7] mmc: fsl_esdhc: Add emmc hs200 support

2019-07-16 Thread Yinbo Zhu
Add eMMC hs200 mode support for increasing ls1028/ls1012/lx2160
eMMC work performance, but without tuning procedure which will
cause mmc doesn't work. and this should be TODO work.

Signed-off-by: Yinbo Zhu 
---
 drivers/mmc/fsl_esdhc.c | 34 +++---
 include/fsl_esdhc.h |  4 
 2 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 07318472a7..28d2312ef7 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -395,10 +395,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
esdhc_write32(>cmdarg, cmd->cmdarg);
esdhc_write32(>xfertyp, xfertyp);
 
-   if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
-   (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200))
-   flags = IRQSTAT_BRR;
-
/* Wait for the command to complete */
start = get_timer(0);
while (!(esdhc_read32(>irqstat) & flags)) {
@@ -458,12 +454,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
 #ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
esdhc_pio_read_write(priv, data);
 #else
-   flags = DATA_COMPLETE;
-   if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
-   (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)) {
-   flags = IRQSTAT_BRR;
-   }
-
do {
irqstat = esdhc_read32(>irqstat);
 
@@ -476,7 +466,7 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv 
*priv, struct mmc *mmc,
err = -ECOMM;
goto out;
}
-   } while ((irqstat & flags) != flags);
+   } while ((irqstat & DATA_COMPLETE) != DATA_COMPLETE);
 
/*
 * Need invalidate the dcache here again to avoid any
@@ -517,7 +507,9 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct 
mmc *mmc, uint clock)
int div = 1;
int pre_div = 2;
int ddr_pre_div = mmc->ddr_mode ? 2 : 1;
-   int sdhc_clk = priv->sdhc_clk;
+   unsigned int sdhc_clk = priv->sdhc_clk;
+   u32 time_out;
+   u32 value;
uint clk;
 
if (clock < mmc->cfg->f_min)
@@ -538,11 +530,18 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, 
struct mmc *mmc, uint clock)
 
esdhc_clrsetbits32(>sysctl, SYSCTL_CLOCK_MASK, clk);
 
-   udelay(1);
+   time_out = 20;
+   value = PRSSTAT_SDSTB;
+   while (!(esdhc_read32(>prsstat) & value)) {
+   if (time_out == 0) {
+   printf("fsl_esdhc: Internal clock never stabilised.\n");
+   break;
+   }
+   time_out--;
+   mdelay(1);
+   }
 
esdhc_setbits32(>sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
-
-   priv->clock = clock;
 }
 
 #ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
@@ -1024,6 +1023,8 @@ static int fsl_esdhc_probe(struct udevice *dev)
return ret;
}
 
+   mmc_of_parse(dev, >cfg);
+
mmc = >mmc;
mmc->cfg = >cfg;
mmc->dev = dev;
@@ -1081,6 +1082,9 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
.get_cd = fsl_esdhc_get_cd,
.send_cmd   = fsl_esdhc_send_cmd,
.set_ios= fsl_esdhc_set_ios,
+#ifdef MMC_SUPPORTS_TUNING
+   .execute_tuning = fsl_esdhc_execute_tuning,
+#endif
 };
 #endif
 
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 7d7e946ab3..3f496b4cea 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -205,6 +205,10 @@ struct fsl_esdhc_cfg {
 int fsl_esdhc_mmc_init(bd_t *bis);
 int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg);
 void fdt_fixup_esdhc(void *blob, bd_t *bd);
+#ifdef MMC_SUPPORTS_TUNING
+static inline int fsl_esdhc_execute_tuning(struct udevice *dev,
+   uint32_t opcode) {return 0; }
+#endif
 #else
 static inline int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; }
 static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {}
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 4/7] dts: armv8: add emmc hs200 support for lx2160ardb

2019-07-16 Thread Yinbo Zhu
This patch is to add emmc hs200 support for lx2160ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-lx2160a-rdb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts
index 4b526449a1..3b928b6168 100644
--- a/arch/arm/dts/fsl-lx2160a-rdb.dts
+++ b/arch/arm/dts/fsl-lx2160a-rdb.dts
@@ -25,6 +25,7 @@
 
  {
status = "okay";
+   mmc-hs200-1_8v;
 };
 
  {
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 3/7] dts: armv8: add emmc hs200 support for ls1012ardb

2019-07-16 Thread Yinbo Zhu
This patch is to add emmc hs200 support for ls1012ardb

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-ls1012a-rdb.dtsi | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/fsl-ls1012a-rdb.dtsi 
b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
index f053e789c2..55155fd321 100644
--- a/arch/arm/dts/fsl-ls1012a-rdb.dtsi
+++ b/arch/arm/dts/fsl-ls1012a-rdb.dtsi
@@ -14,6 +14,10 @@
};
 };
 
+ {
+   mmc-hs200-1_8v;
+};
+
  {
bus-num = <0>;
status = "okay";
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1 1/7] mmc: fsl_esdhc: Add peripheral clock support

2019-07-16 Thread Yinbo Zhu
This patch is to add peripheral clock support

Signed-off-by: Yinbo Zhu 
---
 .../armv8/fsl-layerscape/fsl_lsch2_speed.c| 49 ---
 .../armv8/fsl-layerscape/fsl_lsch3_speed.c| 45 -
 .../asm/arch-fsl-layerscape/immap_lsch2.h |  2 +-
 .../asm/arch-fsl-layerscape/immap_lsch3.h |  1 +
 4 files changed, 78 insertions(+), 19 deletions(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 9ece4b90e6..23391398ed 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -22,10 +22,12 @@ DECLARE_GLOBAL_DATA_PTR;
 void get_sys_info(struct sys_info *sys_info)
 {
struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
-#if (defined(CONFIG_FSL_ESDHC) &&\
-   defined(CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK)) ||\
-   defined(CONFIG_SYS_DPAA_FMAN)
-
+/* rcw_tmp is needed to get FMan clock, or to get cluster group A
+ * mux 2 clock for LS1043A/LS1046A.
+ */
+#if defined(CONFIG_SYS_DPAA_FMAN) || \
+   defined(CONFIG_TARGET_LS1046ARDB) || \
+   defined(CONFIG_TARGET_LS1043ARDB)
u32 rcw_tmp;
 #endif
struct ccsr_clk *clk = (void *)(CONFIG_SYS_FSL_CLK_ADDR);
@@ -122,32 +124,32 @@ void get_sys_info(struct sys_info *sys_info)
}
 #endif
 
+#ifdef CONFIG_FSL_ESDHC
 #define HWA_CGA_M2_CLK_SEL 0x0007
 #define HWA_CGA_M2_CLK_SHIFT   0
-#ifdef CONFIG_FSL_ESDHC
-#ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
+#if defined(CONFIG_TARGET_LS1046ARDB) || defined(CONFIG_TARGET_LS1043ARDB)
rcw_tmp = in_be32(>rcwsr[15]);
switch ((rcw_tmp & HWA_CGA_M2_CLK_SEL) >> HWA_CGA_M2_CLK_SHIFT) {
case 1:
-   sys_info->freq_sdhc = freq_c_pll[1];
+   sys_info->freq_cga_m2 = freq_c_pll[1];
break;
+#if defined(CONFIG_TARGET_LS1046ARDB)
case 2:
-   sys_info->freq_sdhc = freq_c_pll[1] / 2;
+   sys_info->freq_cga_m2 = freq_c_pll[1] / 2;
break;
+#endif
case 3:
-   sys_info->freq_sdhc = freq_c_pll[1] / 3;
+   sys_info->freq_cga_m2 = freq_c_pll[1] / 3;
break;
+#if defined(CONFIG_TARGET_LS1046ARDB)
case 6:
-   sys_info->freq_sdhc = freq_c_pll[0] / 2;
+   sys_info->freq_cga_m2 = freq_c_pll[0] / 2;
break;
+#endif
default:
-   printf("Error: Unknown ESDHC clock select!\n");
+   printf("Error: Unknown peripheral clock select!\n");
break;
}
-#else
-   sys_info->freq_sdhc = (sys_info->freq_systembus /
-   CONFIG_SYS_FSL_PCLK_DIV) /
-   CONFIG_SYS_FSL_SDHC_CLK_DIV;
 #endif
 #endif
 
@@ -183,9 +185,22 @@ int get_clocks(void)
gd->mem_clk = sys_info.freq_ddrbus;
 
 #ifdef CONFIG_FSL_ESDHC
-   gd->arch.sdhc_clk = sys_info.freq_sdhc;
+#if defined(CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK)
+#if defined(CONFIG_TARGET_LS1046ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_cga_m2 / 2;
+#endif
+#if defined(CONFIG_TARGET_LS1043ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_cga_m2;
+#endif
+#if defined(CONFIG_TARGET_LS1012ARDB)
+   gd->arch.sdhc_clk = sys_info.freq_systembus;
+#endif
+#else
+   gd->arch.sdhc_clk = (sys_info.freq_systembus /
+   CONFIG_SYS_FSL_PCLK_DIV) /
+   CONFIG_SYS_FSL_SDHC_CLK_DIV;
+#endif
 #endif
-
if (gd->cpu_clk != 0)
return 0;
else
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
index a5540f2b9d..b3e67321b4 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
@@ -64,6 +64,9 @@ void get_sys_info(struct sys_info *sys_info)
};
 
uint i, cluster;
+#if defined(CONFIG_TARGET_LS1028ARDB) || defined(CONFIG_TARGET_LS1088ARDB)
+   uint rcw_tmp;
+#endif
uint freq_c_pll[CONFIG_SYS_FSL_NUM_CC_PLLS];
uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
@@ -127,8 +130,39 @@ void get_sys_info(struct sys_info *sys_info)
sys_info->freq_localbus = sys_info->freq_systembus /
CONFIG_SYS_FSL_IFC_CLK_DIV;
 #endif
-}
 
+#if defined(CONFIG_TARGET_LS1028ARDB) || defined(CONFIG_TARGET_LS1088ARDB)
+#define HWA_CGA_M2_CLK_SEL  0x0038
+#define HWA_CGA_M2_CLK_SHIFT19
+   rcw_tmp = in_le32(>rcwsr[5]);
+   switch ((rcw_tmp & HWA_CGA_M2_CLK_SEL) >> HWA_CGA_M2_CLK_SHIFT) {
+   case 1:
+   sys_info->freq_cga_m2 = freq_c_pll[1];
+   break;
+   case 2:
+   sys_info->freq_cga_m2 

[U-Boot] [PATCH v1 2/7] mmc: add a Kconfig option to enable the peripheral clock support

2019-07-16 Thread Yinbo Zhu
eSDHC supports two reference clocks (platform clock and peripheral
clock). Peripheral clock which could provide higher clock frequency
is required to be used for tuning of SD UHS mode and eMMC HS200/HS400
modes.

Signed-off-by: Yinbo Zhu 
---
 drivers/mmc/Kconfig | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 93588725f2..2106a6a197 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -136,7 +136,6 @@ config MMC_HS200_SUPPORT
  The HS200 mode is support by some eMMC. The bus frequency is up to
  200MHz. This mode requires tuning the IO.
 
-
 config SPL_MMC_HS200_SUPPORT
bool "enable HS200 support in SPL"
help
@@ -667,10 +666,19 @@ config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
 
 config FSL_ESDHC
bool "Freescale/NXP eSDHC controller support"
+   select FSL_ESDHC_USE_PERIPHERAL_CLK if MMC_HS200_SUPPORT || 
MMC_UHS_SUPPORT
help
  This selects support for the eSDHC (Enhanced Secure Digital Host
  Controller) found on numerous Freescale/NXP SoCs.
 
+config FSL_ESDHC_USE_PERIPHERAL_CLK
+   bool "enable ESDHC peripheral clock support"
+   depends on FSL_ESDHC
+   help
+ eSDHC supports two reference clocks (platform clock and peripheral 
clock).
+ Peripheral clock which could provide higher clock frequency is 
required to
+ be used for tuning of SD UHS mode and eMMC HS200/HS400 modes.
+
 config FSL_ESDHC_IMX
bool "Freescale/NXP i.MX eSDHC controller support"
help
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc

2019-06-11 Thread Yinbo Zhu
This patch is to use block layer to read from mmc in cortina

Signed-off-by: Yinbo Zhu 
---
Change in v2:
Update the commit information.
Change in v3:
Limit patch work when BLK enabled.

 drivers/net/phy/cortina.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index a04a118f90..ec81dab3f6 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -176,8 +176,13 @@ void cs4340_upload_firmware(struct phy_device *phydev)
printf("MMC read: dev # %u, block # %u, count %u ...\n",
   dev, blk, cnt);
mmc_init(mmc);
+#ifdef CONFIG_BLK
+   (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
+   addr);
+#else
(void)mmc->block_dev.block_read(>block_dev, blk, cnt,
addr);
+#endif
}
 #endif
 
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [EXT] Re: [PATCH v1] net: use block layer in net driver

2019-06-11 Thread Yinbo Zhu


> -Original Message-
> From: Joe Hershberger [mailto:joe.hershber...@gmail.com]
> Sent: 2019年6月10日 23:41
> To: Yinbo Zhu 
> Cc: York Sun ; u-boot@lists.denx.de; Xiaobo Xie
> ; Jiafei Pan ; Ran Wang
> ; Y.b. Lu 
> Subject: Re: [EXT] Re: [U-Boot] [PATCH v1] net: use block layer in net driver
> 
> Caution: EXT Email
> 
> On Sun, Jun 2, 2019 at 9:28 PM Yinbo Zhu  wrote:
> >
> >
> >
> > > -Original Message-
> > > From: Joe Hershberger [mailto:joe.hershber...@gmail.com]
> > > Sent: 2019年6月1日 19:16
> > > To: Yinbo Zhu 
> > > Cc: York Sun ; u-boot@lists.denx.de; Xiaobo Xie
> > > ; Jiafei Pan ; Ran Wang
> > > 
> > > Subject: [EXT] Re: [U-Boot] [PATCH v1] net: use block layer in net
> > > driver
> > >
> > > Caution: EXT Email
> > >
> > > On Thu, May 9, 2019 at 3:02 PM Joe Hershberger
> > > 
> > > wrote:
> > > >
> > > > On Wed, Apr 17, 2019 at 4:02 AM Yinbo Zhu  wrote:
> > > > >
> > > > > From: Yinbo Zhu 
> > > > >
> > > > > At present the MMC subsystem maintains its own list of MMC devices.
> > > > > This cannot work with driver model when CONFIG_BLK is enabled,
> > > > > use blk_dread to replace previous mmc read interface,
> > > > >
> > > > > Signed-off-by: Yinbo Zhu 
> > > > > ---
> > > > >  drivers/net/phy/cortina.c | 2 +-
> > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/drivers/net/phy/cortina.c
> > > > > b/drivers/net/phy/cortina.c index a04a118f90..2337c3403c 100644
> > > > > --- a/drivers/net/phy/cortina.c
> > > > > +++ b/drivers/net/phy/cortina.c
> > > > > @@ -176,7 +176,7 @@ void cs4340_upload_firmware(struct
> > > > > phy_device
> > > *phydev)
> > > > > printf("MMC read: dev # %u, block # %u,
> count %u ...\n",
> > > > >dev, blk, cnt);
> > > > > mmc_init(mmc);
> > > > > -   (void)mmc->block_dev.block_read(>block_dev,
> blk,
> > > cnt,
> > > > > +   (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
> > > > > addr);
> > > >
> > > > Should this be switching on CONFIG_BLK or CONFIG_DM_MMC or
> something.
> > >
> > > Any word?
> > >
> > Yes, need enable above two config. And default uboot had enabled them.
> 
> OK, if this depends on them, even if they are default, this block should 
> check for
> the option in v2. Also, if there is still a use-case for the
> "mmc->block_dev.block_read" that exists with different or fewer options, then
> that could also be a config option instead of replaced.
> 
> Thanks,
> -Joe

Hi joe,

In fact, above change is only depend on BLK config, I have mistake about 
previous word,
and I will apply your advice send v3 patch to upstream.

Yinbo
> 
> >
> > Regards,
> > Yinbo
> > > >
> > > > > }
> > > > >  #endif
> > > > > --
> > > > > 2.17.1
> > > > >
> > > > > ___
> > > > > U-Boot mailing list
> > > > > U-Boot@lists.denx.de
> > > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%
> > > > > 2Fli
> > > > >
> > >
> sts.denx.de%2Flistinfo%2Fu-bootdata=02%7C01%7Cyinbo.zhu%40nxp.c
> > > > >
> > >
> om%7Cf4dd39cb85174bb474e208d6e682980b%7C686ea1d3bc2b4c6fa92cd9
> > > 9c5c30
> > > > >
> > >
> 1635%7C0%7C1%7C636949845952441371sdata=PJGcNYuSLsAndJaGTBe
> > > khmEN
> > > > > sad96LwmV92jLec5mrs%3Dreserved=0
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v3] armv8: fsl-lsch2: add clock support for the second eSDHC

2019-06-03 Thread Yinbo Zhu
Layerscape began to use two eSDHC controllers, for example,
LS1012A. They are same IP block with same reference clock.
This patch is to add clock support for the second eSDHC.

Signed-off-by: Yinbo Zhu 
---
Change in v2:
Update the Copyright information

Change in v3:
Add "* Copyright 2019 NXP."

 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 723d7eac5d..9ece4b90e6 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2015 Freescale Semiconductor, Inc.
+ * Copyright 2019 NXP.
  */
 
 #include 
@@ -250,6 +251,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_i2c_freq(0);
 #if defined(CONFIG_FSL_ESDHC)
case MXC_ESDHC_CLK:
+   case MXC_ESDHC2_CLK:
return get_sdhc_freq(0);
 #endif
case MXC_DSPI_CLK:
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [EXT] Re: [PATCH v1] net: use block layer in net driver

2019-06-02 Thread Yinbo Zhu


> -Original Message-
> From: Joe Hershberger [mailto:joe.hershber...@gmail.com]
> Sent: 2019年6月1日 19:16
> To: Yinbo Zhu 
> Cc: York Sun ; u-boot@lists.denx.de; Xiaobo Xie
> ; Jiafei Pan ; Ran Wang
> 
> Subject: [EXT] Re: [U-Boot] [PATCH v1] net: use block layer in net driver
> 
> Caution: EXT Email
> 
> On Thu, May 9, 2019 at 3:02 PM Joe Hershberger 
> wrote:
> >
> > On Wed, Apr 17, 2019 at 4:02 AM Yinbo Zhu  wrote:
> > >
> > > From: Yinbo Zhu 
> > >
> > > At present the MMC subsystem maintains its own list of MMC devices.
> > > This cannot work with driver model when CONFIG_BLK is enabled, use
> > > blk_dread to replace previous mmc read interface,
> > >
> > > Signed-off-by: Yinbo Zhu 
> > > ---
> > >  drivers/net/phy/cortina.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
> > > index a04a118f90..2337c3403c 100644
> > > --- a/drivers/net/phy/cortina.c
> > > +++ b/drivers/net/phy/cortina.c
> > > @@ -176,7 +176,7 @@ void cs4340_upload_firmware(struct phy_device
> *phydev)
> > > printf("MMC read: dev # %u, block # %u, count %u ...\n",
> > >dev, blk, cnt);
> > > mmc_init(mmc);
> > > -   (void)mmc->block_dev.block_read(>block_dev, blk,
> cnt,
> > > +   (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
> > > addr);
> >
> > Should this be switching on CONFIG_BLK or CONFIG_DM_MMC or something.
> 
> Any word?
> 
Yes, need enable above two config. And default uboot had enabled them.

Regards,
Yinbo
> >
> > > }
> > >  #endif
> > > --
> > > 2.17.1
> > >
> > > ___
> > > U-Boot mailing list
> > > U-Boot@lists.denx.de
> > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli
> > >
> sts.denx.de%2Flistinfo%2Fu-bootdata=02%7C01%7Cyinbo.zhu%40nxp.c
> > >
> om%7Cf4dd39cb85174bb474e208d6e682980b%7C686ea1d3bc2b4c6fa92cd9
> 9c5c30
> > >
> 1635%7C0%7C1%7C636949845952441371sdata=PJGcNYuSLsAndJaGTBe
> khmEN
> > > sad96LwmV92jLec5mrs%3Dreserved=0
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2] armv8: fsl-lsch2: add clock support for the second eSDHC

2019-05-31 Thread Yinbo Zhu
Layerscape began to use two eSDHC controllers, for example,
LS1012A. They are same IP block with same reference clock.
This patch is to add clock support for the second eSDHC.

Signed-off-by: Yinbo Zhu 
---
Change in v2:
update the Copyright information

 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 723d7eac5d..c5d1becd8b 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2015 Freescale Semiconductor, Inc.
+ * Copyright 2014-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017-2019 NXP Semiconductors
  */
 
 #include 
@@ -250,6 +251,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_i2c_freq(0);
 #if defined(CONFIG_FSL_ESDHC)
case MXC_ESDHC_CLK:
+   case MXC_ESDHC2_CLK:
return get_sdhc_freq(0);
 #endif
case MXC_DSPI_CLK:
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1] armv8: fsl-lsch2: add clock support for the second eSDHC

2019-05-31 Thread Yinbo Zhu
Layerscape began to use two eSDHC controllers, for example,
LS1012A. They are same IP block with same reference clock.
This patch is to add clock support for the second eSDHC.

Signed-off-by: Yinbo Zhu 
---
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c 
b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 723d7eac5d..d9400e4710 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2015 Freescale Semiconductor, Inc.
+ * Copyright 2014-2015, 2018 Freescale Semiconductor, Inc.
  */
 
 #include 
@@ -250,6 +250,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_i2c_freq(0);
 #if defined(CONFIG_FSL_ESDHC)
case MXC_ESDHC_CLK:
+   case MXC_ESDHC2_CLK:
return get_sdhc_freq(0);
 #endif
case MXC_DSPI_CLK:
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v1] armv8: lx2160aqds: Enable eSDHC controllers

2019-05-26 Thread Yinbo Zhu
This patch is to enable esdhc controllers for lx2160aqds

Signed-off-by: Yinbo Zhu 
---
 arch/arm/dts/fsl-lx2160a-qds.dts | 8 
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/dts/fsl-lx2160a-qds.dts b/arch/arm/dts/fsl-lx2160a-qds.dts
index 4ddeb946b7..bde8e20ddb 100644
--- a/arch/arm/dts/fsl-lx2160a-qds.dts
+++ b/arch/arm/dts/fsl-lx2160a-qds.dts
@@ -43,6 +43,14 @@
 */
 };
 
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+};
+
  {
status = "okay";
 };
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


  1   2   3   4   >