[U-Boot] [PATCH] powerpc/85xx: enable mtdparts for nor flash

2014-07-28 Thread Yangbo Lu
Enable mtdparts for nor flash of some P1/P2 boards that include p1020rdb-pd, p1021rdb-pc, p1022ds, p1025twr, and p2020rdb-pc. Signed-off-by: Xie Xiaobo x@freescale.com Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: Scott Wood scottw...@freescale.com --- include/configs/P1022DS.h

[U-Boot] [PATCH v2] powerpc/85xx: enable some P1/P2 boards mtdparts for nor flash

2014-07-29 Thread Yangbo Lu
Enable these boards mtdparts for nor flash: p1020rdb-pd, p1021rdb-pc, p1022ds, p1025twr, and p2020rdb-pc. Signed-off-by: Xie Xiaobo x@freescale.com Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: Scott Wood scottw...@freescale.com --- Changes for v2: - changed commit message

[U-Boot] [PATCH v4] powerpc/85xx: enable some P1/P2 boards mtdparts for nor flash

2014-10-15 Thread Yangbo Lu
Enable these boards mtdparts for nor flash: p1020rdb-pd, p1021rdb-pc, p1022ds, p1025twr, and p2020rdb-pc. Signed-off-by: Xie Xiaobo x@freescale.com Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com Cc: Scott Wood scottw...@freescale.com --- Changes for v2

[U-Boot] [PATCH v3] powerpc/85xx: enable some P1/P2 boards mtdparts for nor flash

2014-08-17 Thread Yangbo Lu
Enable these boards mtdparts for nor flash: p1020rdb-pd, p1021rdb-pc, p1022ds, p1025twr, and p2020rdb-pc. Signed-off-by: Xie Xiaobo x@freescale.com Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com Cc: Scott Wood scottw...@freescale.com --- Changes for v2

[U-Boot] [PATCH 3/4] mmc: fsl_esdhc: Add peripheral clock support for kernel

2015-03-26 Thread Yangbo Lu
The SD clock could be generated by platform clock or peripheral clock for some platforms. This patch adds peripheral clock support for kernel for T1024/T1040/T2080. To enable it, define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-03-26 Thread Yangbo Lu
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- arch/powerpc/include/asm/global_data.h

[U-Boot] [PATCH 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-03-26 Thread Yangbo Lu
Enable eSDHC adapter card type identification and this will do some corresponding operations and set 'adapter-type' property for device tree according SDHC Card ID. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- include/configs/T208xQDS.h | 1 + 1 file

[U-Boot] [PATCH 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support for kernel

2015-03-26 Thread Yangbo Lu
Enable eSDHC peripheral clock support for kernel, and linux will use SD clock generated by peripheral clock instead of platform clock. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- include/configs/T208xQDS.h | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH v3 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-04-22 Thread Yangbo Lu
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com Cc: Pantelis Antoniou pa...@antoniou

[U-Boot] [PATCH v3 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support

2015-04-22 Thread Yangbo Lu
Enable eSDHC peripheral clock support. u-boot and linux will use SD clock generated by peripheral clock instead of platform clock. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com Cc: Pantelis Antoniou pa...@antoniou-consulting.com --- Changes for v3

[U-Boot] [PATCH v3 3/4] mmc: fsl_esdhc: Add peripheral clock support

2015-04-22 Thread Yangbo Lu
The SD clock could be generated by platform clock or peripheral clock for some platforms. This patch adds peripheral clock support for T1024/T1040/T2080. To enable it, define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com

[U-Boot] [PATCH v3 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-04-22 Thread Yangbo Lu
Enable eSDHC adapter card type identification and this will do some corresponding operations and set 'adapter-type' property for device tree according SDHC Card ID. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com Cc: Pantelis Antoniou pa...@antoniou

[U-Boot] [PATCH v2 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-04-16 Thread Yangbo Lu
Enable eSDHC adapter card type identification and this will do some corresponding operations and set 'adapter-type' property for device tree according SDHC Card ID. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- include/configs/T208xQDS.h | 1 + 1 file

[U-Boot] [PATCH v2 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-04-16 Thread Yangbo Lu
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- Changes for v2: - Document

[U-Boot] [PATCH v2 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support for kernel

2015-04-16 Thread Yangbo Lu
Enable eSDHC peripheral clock support for kernel, and linux will use SD clock generated by peripheral clock instead of platform clock. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- include/configs/T208xQDS.h | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH v2 3/4] mmc: fsl_esdhc: Add peripheral clock support for kernel

2015-04-16 Thread Yangbo Lu
The SD clock could be generated by platform clock or peripheral clock for some platforms. This patch adds peripheral clock support for kernel for T1024/T1040/T2080. To enable it, define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york

[U-Boot] [PATCH] mmc: fsl_esdhc: update eMMC44 adapter card erase timeout

2015-04-15 Thread Yangbo Lu
Freescale eMMC44 adapter card uses Micron N2M400FDB311A3CF eMMC memory. According to the silicon datasheet, secure erase timeout is 600ms. So increase erase timeout value from 250ms to 600ms. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- drivers/mmc

[U-Boot] [PATCH] ls2085a: esdhc: flush D-cache before 'mmc read'

2015-06-23 Thread Yangbo Lu
It needs to flush D-cache before 'mmc read' so that we can see the right data in DDR. And fix parameter for invalidate_dcache_range() after 'mmc read'. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- drivers/mmc/fsl_esdhc.c | 21 +++-- 1

[U-Boot] [PATCH] armv8/ls2085a_simu: enable eSDHC

2015-07-24 Thread Yangbo Lu
Signed-off-by: Yangbo Lu yangbo...@freescale.com --- include/configs/ls2085a_simu.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/ls2085a_simu.h b/include/configs/ls2085a_simu.h index d0d2eed..bd15b3d 100644 --- a/include/configs/ls2085a_simu.h +++ b/include

[U-Boot] [PATCH] mmc: fsl_esdhc: fix mmc read/write error on T4160/T4080

2015-10-20 Thread Yangbo Lu
Fill the right command type when using CMD12 to stop data transfer. Signed-off-by: Yangbo Lu <yangbo...@freescale.com> --- drivers/mmc/fsl_esdhc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 0b37002..69c0728

[U-Boot] [v2, 4/4] mmc: fsl_esdhc: enable EVDD automatic control for SD/MMC Legacy Adapter Card

2015-09-17 Thread Yangbo Lu
When detecting SDHC Adapter Card Type 2(SD/MMC Legacy Adapter Card), enable EVDD automatic control via SDHC_VS. This could support SD card IO voltage switching for UHS-1 speed mode. Signed-off-by: Yangbo Lu <yangbo...@freescale.com> --- board/freescale/common/qixis.h | 3 +++ drive

[U-Boot] [v2, 2/4] powerpc/t1040qds: enable adapter card type identification support

2015-09-17 Thread Yangbo Lu
Signed-off-by: Yangbo Lu <yangbo...@freescale.com> --- include/configs/T1040QDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index a0390a8..8353b8f 100644 --- a/include/configs/T1040QDS.h +++ b/include/configs/T1040QDS.h @@

[U-Boot] [v2, 1/4] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card

2015-09-17 Thread Yangbo Lu
If adapter card type identification is supported for platform, we would enable dat[4:7] for eMMC4.5 Adapter Card. Signed-off-by: Yangbo Lu <yangbo...@freescale.com> --- Changes for v2: - Modified the commit message - Added a patch enabling EVDD automatic control ---

[U-Boot] [v2, 3/4] powerpc/t1040qds: enable peripheral clock for eSDHC

2015-09-17 Thread Yangbo Lu
Signed-off-by: Yangbo Lu <yangbo...@freescale.com> --- include/configs/T1040QDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index 8353b8f..92bc295 100644 --- a/include/configs/T1040QDS.h +++ b/include/configs/T1040QDS.h @@

[U-Boot] [PATCH 2/3] powerpc/t1040qds: enable adapter card type identification support

2015-09-13 Thread Yangbo Lu
Signed-off-by: Yangbo Lu <yangbo...@freescale.com> Cc: York Sun <york...@freescale.com> --- include/configs/T1040QDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index a0390a8..8353b8f 100644 --- a/include/configs/T104

[U-Boot] [PATCH 1/3] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5

2015-09-13 Thread Yangbo Lu
If adapter card type identification is supported for platform, we would enable dat[4:7] for eMMC4.5 card. Signed-off-by: Yangbo Lu <yangbo...@freescale.com> Cc: York Sun <york...@freescale.com> --- board/freescale/common/qixis.h | 2 ++ drivers/mmc/fsl_esdhc.c| 3 +++ 2 file

[U-Boot] [PATCH 3/3] powerpc/t1040qds: enable peripheral clock for eSDHC

2015-09-13 Thread Yangbo Lu
Signed-off-by: Yangbo Lu <yangbo...@freescale.com> Cc: York Sun <york...@freescale.com> --- include/configs/T1040QDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index 8353b8f..92bc295 100644 --- a/include/configs/T104

[U-Boot] [PATCH] mmc: fsl_esdhc: increase data transaction timeout to 500ms

2015-12-29 Thread Yangbo Lu
The MMC spec says "It is strongly recommended for hosts to implement more than 500ms timeout value even if the card indicates the 250ms maximum busy length." Even the previous value of 300ms is known to be insufficient for some cards. So, increase the timeout to 500ms. Signed-off-by:

Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on T4080

2016-01-17 Thread Yangbo Lu
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Friday, January 15, 2016 2:09 AM > To: york sun > Cc: Andy Fleming; Yangbo Lu; U-Boot list > Subject: Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on > T4080 > > On Thu,

Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on T4080

2016-01-18 Thread Yangbo Lu
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Friday, January 15, 2016 2:09 AM > To: york sun > Cc: Andy Fleming; Yangbo Lu; U-Boot list > Subject: Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on > T4080 > > On Thu,

[U-Boot] [PATCH] powerpc/t208xqds: fix esdhc peripheral clock support

2016-01-28 Thread Yangbo Lu
The patch that enabled eSDHC peripheral clock support had an obvious error as below. This patch is used to fix it. +#define define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK Fixes: 3285e6cbcc1b ("powerpc/t2080qds: enable eSDHC peripheral clock support") Signed-off-by: Yangbo Lu <yang

Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on T4080

2016-01-21 Thread Yangbo Lu
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, January 19, 2016 11:59 PM > To: Yangbo Lu > Cc: york sun; Andy Fleming; U-Boot list > Subject: Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on > T4080 > > On Mon,

[U-Boot] [v3] mmc: fsl_esdhc: set Abort command type for CMD12

2016-01-21 Thread Yangbo Lu
According to SD spec, CMD12, CMD52 for writing I/O abort in CCCR need to be set an Abort command type when they are sent. So, we remove all chip-specific #ifdefs and make it available for all platforms. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Remov

[U-Boot] [PATCH] armv8/fsl-lsch2: fix sdhc clock frequency value

2016-02-15 Thread Yangbo Lu
The eSDHC could select to use platform clock or peripheral clock to generate SD clock. The default selection is platform clock. So, fix the clock frequency value that's calculated for eSDHC. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed

Re: [U-Boot] [PATCH] armv8/fsl-lsch2: fix sdhc clock frequency value

2016-03-09 Thread Yangbo Lu
> -Original Message- > From: york sun > Sent: Tuesday, March 08, 2016 3:07 AM > To: Yangbo Lu; u-boot@lists.denx.de > Subject: Re: [PATCH] armv8/fsl-lsch2: fix sdhc clock frequency value > > On 02/15/2016 07:03 PM, Yangbo Lu wrote: > > The eSDHC could s

[U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-03-08 Thread Yangbo Lu
MTFC4GACAECN eMMC chip. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/mmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index ede5d6e..82e3268 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -418,6 +418,9 @@ stat

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: don't set XFERTYP_RSPTYP_48_BUSY for CMD with busy response

2016-05-20 Thread Yangbo Lu
For CMD with busy response, the eSDHC driver would poll DAT0 until CMD completion rather than polling IRQSTAT. So, don't set XFERTYP_RSPTYP_48_BUSY to avoid interrupts (DTOE or TC) in IRQSTAT. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/fsl_esdhc.c | 12 ++--

[U-Boot] [PATCH 2/4] mmc: send STOP command when the READ/WIRTE commands fail

2016-05-20 Thread Yangbo Lu
The STOP command should be sent to stop data transfer when the READ/WRITE commands fail. Otherwise, any subsequent command will fail to be sent. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/mmc.c | 28 +++- drivers/mmc/mmc_private.h | 1 + d

[U-Boot] [PATCH 3/4] mmc: fsl_esdhc: add error recovery for data transfer with Auto CMD12

2016-05-20 Thread Yangbo Lu
For data transfer with Auto CMD12, the host will not send an Auto CMD12 to stop when the transfer fails. So this patch adds a flag to indicate the READ/WRITE command error, and makes the driver continue to send a CMD12 manually. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drive

[U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-05-20 Thread Yangbo Lu
in eSDHC driver. This patch is to add workaround for the 2nd issue, and the fixup platforms include PowerPC(P1010/P2020/P5020/P5040/T1024/T1040/ T2080/T4240) and ARM(LS1021A/LS1043A/LS2080A). Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- arch/powerpc/include/asm/config_mpc85xx.

[U-Boot] [PATCH] mmc: fsl_esdhc: fix check_and_invalidate_dcache_range function

2016-05-12 Thread Yangbo Lu
In function check_and_invalidate_dcache_range(), there are incorrect start address and end address of the dcache range calculated for Layerscape platforms. This patch is to fix this issue. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/fsl_esdhc.c | 9 - 1 file chan

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-04-21 Thread Yangbo Lu
Any comments? Thanks. Best regards, Yangbo Lu > -Original Message- > From: Yangbo Lu [mailto:yangbo...@nxp.com] > Sent: Wednesday, March 09, 2016 11:00 AM > To: u-boot@lists.denx.de > Cc: Pantelis Antoniou; Yangbo Lu > Subject: [PATCH] mmc: send CMD0 before CMD1

Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-07-27 Thread Yangbo Lu
> -Original Message- > From: york sun > Sent: Tuesday, July 26, 2016 1:38 AM > To: Yangbo Lu; u-boot@lists.denx.de > Subject: Re: [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620 > > On 05/20/2016 03:20 AM, Yangbo Lu wrote: > > Erratum Title: > &g

Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-07-28 Thread Yangbo Lu
> -Original Message- > From: york sun > Sent: Wednesday, July 27, 2016 10:48 PM > To: Yangbo Lu; u-boot@lists.denx.de > Subject: Re: [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620 > > On 07/27/2016 12:10 AM, Yangbo Lu wrote: > >> -Original Me

Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-07-28 Thread Yangbo Lu
Hi Jaehoon, > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Thursday, July 28, 2016 1:01 PM > To: Yangbo Lu; york sun; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum > A009620 > >

Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum A009620

2016-07-28 Thread Yangbo Lu
Hi Jaehoon, > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Wednesday, July 27, 2016 7:21 PM > To: Yangbo Lu; york sun; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 4/4] mmc: add workaround for eSDHC erratum > A009620 > >

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-07-27 Thread Yangbo Lu
, Yangbo Lu > -Original Message- > From: Yangbo Lu [mailto:yangbo...@nxp.com] > Sent: Wednesday, March 09, 2016 11:00 AM > To: u-boot@lists.denx.de > Cc: Pantelis Antoniou; Yangbo Lu > Subject: [PATCH] mmc: send CMD0 before CMD1 for some MMC cards > > When the MMC

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-07-27 Thread Yangbo Lu
Hi Ziyuan and Jaehoon, > -Original Message- > From: Ziyuan Xu [mailto:xzy...@rock-chips.com] > Sent: Wednesday, July 27, 2016 9:37 PM > To: Jaehoon Chung; Yangbo Lu; u-boot@lists.denx.de; Tom Rini > Cc: Pantelis Antoniou > Subject: Re: [U-Boot] [PATCH] mmc: send CMD0 be

[U-Boot] [v2, 3/5] mmc: fsl_esdhc: add error recovery for data transfer with Auto CMD12

2016-08-02 Thread Yangbo Lu
For data transfer with Auto CMD12, the host will not send an Auto CMD12 to stop when the transfer fails. So this patch adds a flag to indicate the READ/WRITE command error, and makes the driver continue to send a CMD12 manually. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes

[U-Boot] [v2, 1/5] mmc: fsl_esdhc: don't set XFERTYP_RSPTYP_48_BUSY for CMD with busy response

2016-08-02 Thread Yangbo Lu
For CMD with busy response, the eSDHC driver would poll DAT0 until CMD completion rather than polling IRQSTAT. So, don't set XFERTYP_RSPTYP_48_BUSY to avoid interrupts (DTOE or TC) in IRQSTAT. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - None --- drive

[U-Boot] [v2, 4/5] mmc: add workaround for eSDHC erratum A009620

2016-08-02 Thread Yangbo Lu
in eSDHC driver. This patch is to add workaround for the 2nd issue. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Split original patch into config part and mmc part --- drivers/mmc/fsl_esdhc.c | 26 ++ include/fsl_esdhc.h | 1 + 2

[U-Boot] [v2, 2/5] mmc: send STOP command when the READ/WRITE commands fail

2016-08-02 Thread Yangbo Lu
The STOP command should be sent to stop data transfer when the READ/WRITE commands fail. Otherwise, any subsequent command will fail to be sent. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - None --- drivers/mmc/mmc.c

[U-Boot] [v2, 5/5] arch/arm, arch/powerpc: enable workaround for eSDHC erratum A009620

2016-08-02 Thread Yangbo Lu
This patch is to enable workaround for eSDHC erratum A009620. All the affected platforms include PowerPC(P1010/P2020/P5020/P5040/T1024/T1040/ T2080/T4240) and ARM(LS1021A/LS1043A/LS2080A). Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Added this patch -

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-08-02 Thread Yangbo Lu
Hi Jaehoon, > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Thursday, July 28, 2016 4:40 PM > To: Yangbo Lu; Ziyuan Xu; u-boot@lists.denx.de; Tom Rini > Cc: Pantelis Antoniou > Subject: Re: [U-Boot] [PATCH] mmc: send CMD0 before

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-08-02 Thread Yangbo Lu
Thank you, Jaehoon. So I will send the new version later :) Best regards, Yangbo Lu > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Tuesday, August 02, 2016 3:13 PM > To: Yangbo Lu; Ziyuan Xu; u-boot@lists.denx.de; Tom Rini > Cc: Pa

Re: [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards

2016-08-09 Thread Yangbo Lu
Hi Jaehoon, Sure. And appreciate your good help :) Best regards, Yangbo Lu > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Tuesday, August 09, 2016 7:06 AM > To: Yangbo Lu; u-boot@lists.denx.de > Subject: Re: [v2] mmc: send CMD0 befor

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-08-02 Thread Yangbo Lu
> -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Tuesday, August 02, 2016 3:18 PM > To: Yangbo Lu; Ziyuan Xu; u-boot@lists.denx.de; Tom Rini > Cc: Pantelis Antoniou > Subject: Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC

[U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards

2016-08-02 Thread Yangbo Lu
MTFC4GACAECN eMMC chip. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/mmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index f8e5f7a..d4e96bc 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -422,6 +422,9 @@ stat

[U-Boot] [v4, 2/3] armv8: ls1012a: define esdhc_status_fixup for QDS board

2017-01-16 Thread Yangbo Lu
;mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." This patch is to define esdhc_status_fixup function for QDS to disable SDHC2 status if no eMMC adapter card is detected. Signed-off-by

[U-Boot] [v4, 3/3] armv8: ls1012a: define esdhc_status_fixup for RDB board

2017-01-16 Thread Yangbo Lu
ction for RDB to disable SDHC2 status if no SDIO wifi or eMMC is selected. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Added this patch Changes for v3: - Fixed checkpatch issue Changes for v4: - Removed incorrect comments in code --- board/fr

[U-Boot] [v4, 1/3] mmc: fsl_esdhc: move 'status' property fixup into a weak function

2017-01-16 Thread Yangbo Lu
Move fdt fixup of 'status' property into a weak function. This allows board to define 'status' fdt fixup by themselves. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - None Changes for v3: - None Changes for v4: - None --- drivers/mmc/fsl_esdhc.

[U-Boot] [PATCH] armv8/fsl-layerscape: fdt: remove SYSCLK frequency fixup for ls1012a

2017-01-19 Thread Yangbo Lu
remove the SYSCLK frequency fixup for ls1012a. Fixes: 6f14e25 ("armv8: fsl-lsch3: fixup SYSCLK frequency in device tree") Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv

[U-Boot] [PATCH 4/4] configs: ls1012a: enable driver model for eSDHC

2016-12-06 Thread Yangbo Lu
Enable driver model for eSDHC on ls1012a rdb and qds boards. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- configs/ls1012aqds_qspi_defconfig | 3 +++ configs/ls1012ardb_qspi_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/ls1012aqds_qspi_defconfig b/c

[U-Boot] [PATCH 2/4] mmc: fsl_esdhc: add 'fsl, esdhc' into of_match table

2016-12-06 Thread Yangbo Lu
This patch is to add 'fsl,esdhc' into of_match table to support driver model for QorIQ eSDHC. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/fsl_esdhc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index da3a151..0

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: make GPIO support optional

2016-12-06 Thread Yangbo Lu
it and they just check register for CD/WP status, only some boards of i.MX platform require this. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/fsl_esdhc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH 3/4] armv8: ls1012a: add eSDHC nodes

2016-12-06 Thread Yangbo Lu
This patch is to add eSDHC nodes for ls1012a. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- arch/arm/dts/fsl-ls1012a.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/fsl-ls1012a.dtsi b/arch/arm/dts/fsl-ls1012a.dtsi index 024527e..f8b341d

[U-Boot] [PATCH 2/2] armv8: ls1012a: define esdhc_status_fixup for QDS board

2016-12-07 Thread Yangbo Lu
eased inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." This patch is to define esdhc_status_fixup function to disable eSDHC2 status if no eMMC adapter card is detected. Signed-off-by: Yangbo Lu <yangbo

[U-Boot] [PATCH 1/2] mmc: fsl_esdhc: move 'status' property fixup into a weak function

2016-12-07 Thread Yangbo Lu
Move fdt fixup of 'status' property into a weak function. This allows board to define 'status' fdt fixup by themselves. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- drivers/mmc/fsl_esdhc.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drive

[U-Boot] [v3, 3/3] armv8: ls1012a: define esdhc_status_fixup for RDB board

2016-12-07 Thread Yangbo Lu
ction for RDB to disable SDHC2 status if no SDIO wifi or eMMC is selected. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Added this patch Changes for v3: - Fixed checkpatch issue --- board/freescale/ls1012ardb/ls1012ardb.c | 39

[U-Boot] [v3, 1/3] mmc: fsl_esdhc: move 'status' property fixup into a weak function

2016-12-07 Thread Yangbo Lu
Move fdt fixup of 'status' property into a weak function. This allows board to define 'status' fdt fixup by themselves. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - None Changes for v3: - None --- drivers/mmc/fsl_esdhc.c | 21 ++---

[U-Boot] [v2, 3/3] armv8: ls1012a: define esdhc_status_fixup for RDB board

2016-12-07 Thread Yangbo Lu
ction for RDB to disable SDHC2 status if no SDIO wifi or eMMC is selected. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Added this patch --- board/freescale/ls1012ardb/ls1012ardb.c | 39 + 1 file changed, 39 insertions(+) dif

[U-Boot] [v2, 2/3] armv8: ls1012a: define esdhc_status_fixup for QDS board

2016-12-07 Thread Yangbo Lu
;mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." This patch is to define esdhc_status_fixup function for QDS to disable SDHC2 status if no eMMC adapter card is detected. Signed-off-by

[U-Boot] [v3, 2/3] armv8: ls1012a: define esdhc_status_fixup for QDS board

2016-12-07 Thread Yangbo Lu
;mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." "mmc1: Controller never released inhibit bit(s)." This patch is to define esdhc_status_fixup function for QDS to disable SDHC2 status if no eMMC adapter card is detected. Signed-off-by

[U-Boot] [v2, 1/3] mmc: fsl_esdhc: move 'status' property fixup into a weak function

2016-12-07 Thread Yangbo Lu
Move fdt fixup of 'status' property into a weak function. This allows board to define 'status' fdt fixup by themselves. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - None --- drivers/mmc/fsl_esdhc.c | 21 ++--- 1 file changed, 14 insertions

[U-Boot] [v2] armv8/fsl-layerscape: fdt: avoid incorrect fixing with CONFIG_SYS_CLK_FREQ

2017-04-10 Thread Yangbo Lu
Current sysclk fixing would fix all clocks with 'fixed-clock' compatible. This patch is to fix sysclk by path to avoid any incorrect fixing. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [v2] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-14 Thread Yangbo Lu
Current u-boot disables IFC support for SD boot on all ls1043a boards. Actually IFC only conflicts with QSPI on ls1043a hardware. Only when QSPI is used, IFC should be disabled. Otherwise, the u-boot with ls1043aqds_sdcard_ifc_defconfig would not work. Signed-off-by: Yangbo Lu <yangbo...@nxp.

[U-Boot] [PATCH] armv8: ls1046ardb: disable PPA loading during SPL stage for SD boot

2017-09-18 Thread Yangbo Lu
PPA loading during SPL stage is not required for nornal SD boot scenario. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- configs/ls1046ardb_sdcard_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/ls1046ardb_sdcard_defconfig b/configs/ls1046ardb_sdcard_defconfig

[U-Boot] [PATCH] armv8: ls1043ardb: disable PPA loading during SPL stage for SD boot

2017-09-18 Thread Yangbo Lu
PPA loading during SPL stage is not required for nornal SD boot scenario. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- configs/ls1043ardb_sdcard_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/ls1043ardb_sdcard_defconfig b/configs/ls1043ardb_sdcard_defconfig

[U-Boot] [PATCH] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-13 Thread Yangbo Lu
SD boot couldn't work with ls1043aqds_sdcard_ifc_defconfig since IFC in SPL is disabled. This patch is to fix this issue. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- include/configs/ls1043a_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/c

[U-Boot] [PATCH] armv8: ls1012a: enable/disable eSDHC1 through hwconfig for RDB

2017-11-15 Thread Yangbo Lu
For LS1012ARDB RevD and later versions, the I2C reading for DIP switch setting had been no longer reliable since the board was reworked. This patch is to add hwconfig support to enable/disable eSDHC1 manually. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- board/freescale/ls10

[U-Boot] [PATCH] armv8: ls1088ardb: support force SDHC mode by hwconfig

2017-11-27 Thread Yangbo Lu
hotplug, or SD sleep waking up in kernel. This patch is to support force SDHC mode by hwconfig. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- board/freescale/ls1088a/ls1088a.c | 18 ++ board/freescale/ls1088a/ls1088a_qixis.h | 6 ++ include/configs/ls1088

[U-Boot] [v2] armv8: ls1012a: enable/disable eSDHC1 through hwconfig for RDB

2017-11-27 Thread Yangbo Lu
For LS1012ARDB RevD and later versions, the I2C reading for DIP switch setting had been no longer reliable since the board was reworked. This patch is to add hwconfig support to enable/disable eSDHC1 manually. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Jus

[U-Boot] [v4 1/3] armv8: ls1012ardb: clean up definitions for I2C IO expanders

2017-12-07 Thread Yangbo Lu
This patch is to clean up definitions for I2C IO expanders. The value 0x10 of __SW_BOOT_EMU is wrong. It should be 0x2. Fixed it in this patch. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v4: - Added this patch. --- board/freescale/ls1012ardb/ls1012ardb.

[U-Boot] [v4 3/3] armv8: ls1012ardb: support hwconfig for eSDHC1 enabling

2017-12-07 Thread Yangbo Lu
-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v2: - Just used hwconfig() instead of getenv() and hwconfig_f(). Changes for v3: - only applied hwconfig support for RevD and later versions. Changes for v4: - Modified commit message. - reused io va

[U-Boot] [v4 2/3] armv8: ls1012ardb: add more board version information

2017-12-07 Thread Yangbo Lu
Add LS1012ARDB RevC/RevC1/RevC2/RevD/RevE information and detect it when u-boot starts up. Signed-off-by: Yangbo Lu <yangbo...@nxp.com> --- Changes for v4: - Added this patch. --- board/freescale/ls1012ardb/ls1012ardb.c | 26 +++--- include/configs/ls1012

[U-Boot] [v3] armv8: ls1012a: enable/disable eSDHC1 through hwconfig for new RDB

2017-12-06 Thread Yangbo Lu
For LS1012ARDB RevD and later versions, the I2C reading for DIP switch setting had been no longer reliable since the board was reworked. This patch is to add hwconfig support to enable/disable eSDHC1 manually for these boards. Also let kernel decide status of esdhc0. Signed-off-by: Yangbo Lu

[U-Boot] [v5, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-03 Thread Yangbo Lu
Dropped useless code for i.MX eSDHC driver. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan --- Changes for v2: - Added this patch. Changes for v3: - None. Changes for v4: - Dropped PPC code introduced recently. Changes for v5

[U-Boot] [v5, 2/5] mmc: split fsl_esdhc driver for i.MX

2019-06-03 Thread Yangbo Lu
fsl_esdhc_imx, and clean up the two drivers separately in the future patches. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Used "Enhanced Secure Digital Host"

[U-Boot] [v5, 1/5] Move CONFIG_FSL_ESDHC to defconfig

2019-06-03 Thread Yangbo Lu
Moved CONFIG_FSL_ESDHC from header files to defconfig files. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan Reviewed-by: Lukasz Majewski Acked-by: Jason Liu --- Changes for v2: - Rebased. Changes for v3: - Rebased. Changes for v4: - Added

[U-Boot] [v5, 4/5] mmc: fsl_esdhc: drop i.MX code

2019-06-03 Thread Yangbo Lu
Dropped i.MX code which couldn't be reused. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Acked-by: Peng Fan --- Changes for v2: - Added this patch. Changes for v3: - Rebased. Changes for v4: - Rebased. - Added Tested-by/Acked-by. Changes for v5

[U-Boot] [v5, 0/5] Split fsl_esdhc driver for i.MX

2019-06-03 Thread Yangbo Lu
for fsl_esdhc_imx. Let i.MX eSDHC owner do futhur cleaning up. Yangbo Lu (5): Move CONFIG_FSL_ESDHC to defconfig mmc: split fsl_esdhc driver for i.MX Convert to use fsl_esdhc_imx for i.MX platforms mmc: fsl_esdhc: drop i.MX code mmc: fsl_esdhc_imx: drop useless code arch/arm/cpu/arm1136/mx35

[U-Boot] [v6, 2/5] mmc: split fsl_esdhc driver for i.MX

2019-06-19 Thread Yangbo Lu
fsl_esdhc_imx, and clean up the two drivers separately in the future patches. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Used "Enhanced Secure Digital Host"

[U-Boot] [v6, 1/5] Move CONFIG_FSL_ESDHC to defconfig

2019-06-19 Thread Yangbo Lu
Moved CONFIG_FSL_ESDHC from header files to defconfig files. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan Reviewed-by: Lukasz Majewski Acked-by: Jason Liu --- Changes for v2: - Rebased. Changes for v3: - Rebased. Changes for v4: - Added

[U-Boot] [v6, 0/5] Split fsl_esdhc driver for i.MX

2019-06-19 Thread Yangbo Lu
for fsl_esdhc_imx. Let i.MX eSDHC owner do futhur cleaning up. --- Changes for v6: - Rebased. - Applied to two new i.MX boards phycore_pcl063_ull/pico-imx7d_bl33. Yangbo Lu (5): Move CONFIG_FSL_ESDHC to defconfig mmc: split fsl_esdhc driver for i.MX Convert to use fsl_esdhc_imx

[U-Boot] [v6, 4/5] mmc: fsl_esdhc: drop i.MX code

2019-06-19 Thread Yangbo Lu
Dropped i.MX code which couldn't be reused. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Acked-by: Peng Fan --- Changes for v2: - Added this patch. Changes for v3: - Rebased. Changes for v4: - Rebased. - Added Tested-by/Acked-by. Changes for v5

[U-Boot] [v6, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-19 Thread Yangbo Lu
Dropped useless code for i.MX eSDHC driver. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan --- Changes for v2: - Added this patch. Changes for v3: - None. Changes for v4: - Dropped PPC code introduced recently. Changes for v5

[U-Boot] [v7, 4/5] mmc: fsl_esdhc: drop i.MX code

2019-06-20 Thread Yangbo Lu
Dropped i.MX code which couldn't be reused. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Acked-by: Peng Fan Reviewed-by: Martyn Welch --- Changes for v2: - Added this patch. Changes for v3: - Rebased. Changes for v4: - Rebased. - Added Tested-by/Acked

[U-Boot] [v7, 0/5] Split fsl_esdhc driver for i.MX

2019-06-20 Thread Yangbo Lu
for fsl_esdhc_imx. Let i.MX eSDHC owner do futhur cleaning up. --- Changes for v6: - Rebased. - Applied to two new i.MX boards phycore_pcl063_ull/pico-imx7d_bl33. Changes for v7: - Rebased on https://gitlab.denx.de/u-boot/u-boot.git. - Added Reviewed-by. Yangbo Lu (5

[U-Boot] [v7, 1/5] Move CONFIG_FSL_ESDHC to defconfig

2019-06-20 Thread Yangbo Lu
Moved CONFIG_FSL_ESDHC from header files to defconfig files. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan Reviewed-by: Lukasz Majewski Reviewed-by: Martyn Welch Acked-by: Jason Liu --- Changes for v2: - Rebased. Changes for v3: - Rebased

[U-Boot] [v7, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-20 Thread Yangbo Lu
Dropped useless code for i.MX eSDHC driver. Signed-off-by: Yangbo Lu Tested-by: Steffen Dirkwinkel Reviewed-by: Peng Fan Reviewed-by: Martyn Welch Reviewed-by: Lukasz Majewski --- Changes for v2: - Added this patch. Changes for v3: - None. Changes for v4: - Dropped

  1   2   3   >