[U-Boot] [PATCH 4/4] ls2080ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-11-09 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls2080ardb.h | 39 --- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h index 48c3a5397f..650db2f594

[U-Boot] [PATCH 1/4] ls1043ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-11-09 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls1043a_common.h | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index a24d0062d2..140ea23902 100644 --- a/i

[U-Boot] [PATCH 2/4] arm64: ls1046ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-11-09 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls1046a_common.h | 11 +++ include/configs/ls1046ardb.h | 6 ++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h

Re: [U-Boot] [PATCH 1/4] arm64: ls1043ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-11-01 Thread Shengzhou Liu
> -Original Message- > From: Mingkai Hu > Sent: Wednesday, November 01, 2017 7:14 PM > To: York Sun <york@nxp.com> > Cc: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: RE: [U-Boot] [PATCH 1/4] arm64: ls1043ardb: Add sd_bootcmd

[U-Boot] [PATCH 3/4] armv7: ls1021atwr: Add sd_bootcmd for distro fallback in case of sdboot

2017-08-30 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls1021atwr.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 0e5b004868..45fb94a889 100644 --- a/include/configs/ls1021

[U-Boot] [PATCH 2/4] arm64: ls1046ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-08-30 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls1046a_common.h | 8 +++- include/configs/ls1046ardb.h | 6 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h index e515

[U-Boot] [PATCH 4/4] arm64: ls2080ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-08-30 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls2080ardb.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h index b309d79586..9458fda173 100644 --- a/include/configs/ls2080ardb.h

[U-Boot] [PATCH 1/4] arm64: ls1043ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-08-30 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- include/configs/ls1043a_common.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index f064d5c24a..976c031574 100644 --- a/include/c

[U-Boot] [PATCH v4] arm64: ls1043ardb: Add distro boot support

2017-06-08 Thread Shengzhou Liu
or USB disk, if it fails to detect external storage disk, fall back to nor/qspi boot. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v3: updated to load_addr for installer v4: fix a typo in initrd_high configs/ls1043ardb_defconfig| 1 + configs/ls1043ardb_sdcard_defconfi

[U-Boot] [PATCH v3] arm64: ls1043ardb: Add distro boot support

2017-05-26 Thread Shengzhou Liu
or USB disk, if it fails to detect external storage disk, fall back to nor/qspi boot. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v3: updated to load_addr for installer configs/ls1043ardb_defconfig| 1 + configs/ls1043ardb_sdcard_defconfig | 1 + include/c

[U-Boot] [PATCH v2] arm64: ls1043ardb: Add distro boot support

2017-05-24 Thread Shengzhou Liu
or USB disk, if it fails to detect external storage disk, fall back to nor/qspi boot. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: add nor/qspi boot configs/ls1043ardb_defconfig| 1 + configs/ls1043ardb_sdcard_defconfig | 1 + include/configs/ls1043a_common.h

[U-Boot] [PATCH] arm64: ls1043ardb: Add distro boot support

2017-05-22 Thread Shengzhou Liu
or USB disk. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- configs/ls1043ardb_defconfig| 1 + configs/ls1043ardb_sdcard_defconfig | 1 + include/configs/ls1043a_common.h| 52 +++-- 3 files changed, 41 insertions(+), 13 deletions(-)

Re: [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command

2017-04-11 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Tuesday, April 11, 2017 1:14 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH] board/t1024rdb: enable board-level reset when issuing > reset command

[U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command

2017-04-10 Thread Shengzhou Liu
As board-specific reset logic, it needs to issue reset signal via CPLD when issuing 'reset' command in u-boot, this patch solves the issue of reset command not working on T1024RDB. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/t102xrdb/t102xrdb.c | 7 +++

[U-Boot] [PATCH] arm64/ls1046a: Enable ERRATUM_A008850 for ls1046a SoC

2017-03-23 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig index a99b1c6..25588c8 100644 --- a/arch/arm/cpu/arm

[U-Boot] [PATCH v2] board/t1024rdb: enable board-level reset when issuing reset command

2017-01-11 Thread Shengzhou Liu
As board-specific reset logic, it needs to issue reset signal via CPLD when issuing 'reset' command in u-boot, this patch solves the issue of reset command not working on T1024RDB. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: add build condition. board/freescale/t1

[U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command

2017-01-11 Thread Shengzhou Liu
As board-specific reset logic, it needs to issue reset signal via CPLD when issuing 'reset' command in u-boot, this patch solves the issue of reset command not working on T1024RDB. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/t102xrdb/t102xrdb.c | 5 +

[U-Boot] [PATCH 2/4 v3] fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum

2016-11-20 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: fix warning on e5500 platform. v3: rebased. arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/powerpc/cpu/mpc85xx/cpu_

[U-Boot] [PATCH 1/4 v2] fsl/ddr: Fix compiling warning

2016-11-20 Thread Shengzhou Liu
Fix following warning in case multiple erratum macro was not defined. warning: unused variable 'tmp' warning: unused variable 'ddr_freq' Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: fix compile issue on some platforms. drivers/ddr/fsl/fsl_ddr_gen4.

[U-Boot] [PATCH 2/4 v2] fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum

2016-11-17 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: fix warning. arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/powerpc/cpu/mpc85xx/cpu_init.c | 8 +- arch/powerpc/i

[U-Boot] [PATCH 3/4] fsl/ddr: Enable erratum-a009942 workaround for B/T-series

2016-11-15 Thread Shengzhou Liu
Enable ERRATUM_A009942 workaround for B-series and T-series platforms. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/powerpc/include/asm/config_mpc85xx.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/inclu

[U-Boot] [PATCH 4/4] fsl/board/ddr: optimize board-specific cpo for erratum A-009942

2016-11-15 Thread Shengzhou Liu
Optimize board-specific cpo for erratum A-009942 on b4860qds, ls1043aqds, ls1043ardb, ls1046aqds, ls1046ardb, ls2080ardb, t102xqds, t102xrdb, t1040qds, t104xrdb, t208xqds, t208xrdb, t4qds, t4rdb boards. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/b4860qds/ddr.c

[U-Boot] [PATCH 2/4] fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum

2016-11-15 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/powerpc/cpu/mpc85xx/cpu_init.c | 8 +- arch/powerpc/include/asm/config_mpc

[U-Boot] [PATCH 1/4] fsl/ddr: Fix compiling warning

2016-11-15 Thread Shengzhou Liu
Fix following warning in case multiple erratum macro was not defined. warning: unused variable 'tmp' warning: unused variable 'ddr_freq' Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/fsl_ddr_gen4.c | 43 +- 1 file chang

[U-Boot] [PATCH] armv8/fsl-layerscape: Update CONFIG_LS2080A to CONFIG_FSL_LSCH3

2016-11-11 Thread Shengzhou Liu
Update CONFIG_LS2080A to CONFIG_FSL_LSCH3 to make those workaround implementing of erratum reusable for more SoCs. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ar

Re: [U-Boot] [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-08 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Wednesday, November 09, 2016 1:04 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related > erratum > > On 11/08/2016

Re: [U-Boot] [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-08 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Tuesday, November 08, 2016 1:04 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related > erratum > > > > York, >

[U-Boot] [PATCH 1/3 v3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-08 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: fix a typo v3: add reading POR value of debug_29 before changing. arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/power

[U-Boot] [PATCH 1/3 v2] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-06 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: fix a typo arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/powerpc/cpu/mpc85xx/cpu_init.c | 6 +- arch/powerpc/inclu

Re: [U-Boot] [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-06 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Friday, November 04, 2016 11:20 PM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related > erratum > > On 11/04/2016

[U-Boot] [PATCH 1/3] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-04 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +- arch/powerpc/cpu/mpc85xx/cpu_init.c | 6 +- arch/powerpc/include/asm/config_mpc

[U-Boot] [PATCH 3/3] fsl/ddr: Fix compiling warning

2016-11-04 Thread Shengzhou Liu
Fix following warning in case multiple erratum macro was not defined. warning: unused variable 'tmp' warning: unused variable 'ddr_freq' Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/fsl_ddr_gen4.c | 43 +- 1 file chang

[U-Boot] [PATCH 2/3] fsl/ddr: Enable erratum-a009942 workaround for B/T-series

2016-11-04 Thread Shengzhou Liu
Enable ERRATUM_A009942 workaround for B-series and T-series platforms. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/powerpc/include/asm/config_mpc85xx.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/inclu

Re: [U-Boot] [PATCH] powerpc/t2080: DDR controller erratum A-009942

2016-11-01 Thread Shengzhou Liu
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of york sun > Sent: Thursday, October 27, 2016 3:57 AM > To: Hamish Martin ; u- > b...@lists.denx.de > Subject: Re: [U-Boot] [PATCH] powerpc/t2080: DDR controller erratum

[U-Boot] [PATCH 1/2] fsl/ddr: Revise erratum a009942 and clean related erratum

2016-11-01 Thread Shengzhou Liu
fsl_ddr_gen4.c to ctrl_regs.c - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 ++- arch/powerpc/cpu/mpc85xx/cpu_init.c | 6 +- arch/powerpc/inclu

[U-Boot] [PATCH 2/2] fsl/ddr: Enable erratum-a009942 workaround for B/T-series

2016-11-01 Thread Shengzhou Liu
Enable ERRATUM_A009942 workaround for B-series and T-series platforms. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/powerpc/include/asm/config_mpc85xx.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/inclu

[U-Boot] [PATCH] armv7:ls1021a: Enable workaround for DDR erratum A-009942

2016-09-01 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/include/asm/arch-ls102xa/config.h | 1 + board/freescale/ls1021atwr/ls1021atwr.c| 7 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-ls102xa/config.h b/arch/arm/include/as

Re: [U-Boot] [PATCH 6/8] armv8: ls1046a: Enable DDR erratum for ls1046a

2016-08-29 Thread Shengzhou Liu
t;; Shaohui Xie <shaohui@nxp.com>; Zhiqiang > Hou <zhiqiang@nxp.com>; Wenbin Song <wenbin.s...@nxp.com>; > Shengzhou Liu <shengzhou@nxp.com>; Qianyu Gong > <qianyu.g...@nxp.com> > Subject: [PATCH 6/8] armv8: ls1046a: Enable DDR erratum for ls1046

Re: [U-Boot] [PATCH 1/8] drivers/ddr/fsl: add DEBUG_38

2016-08-29 Thread Shengzhou Liu
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Gong > Qianyu > Sent: Friday, August 26, 2016 7:28 PM > To: u-boot@lists.denx.de; york sun > Cc: Zhiqiang Hou ; Wenbin Song > ; Mingkai Hu

[U-Boot] [PATCH 2/2] driver/ddr/fsl: Revise workaround A008511 for A009803

2016-08-29 Thread Shengzhou Liu
From: York Sun DDR controller 5.2.1 has this erratum A008511 partially fixed. The workaround needs to be adjusted to take advantage of Vref training. This patch enables the training and force output enable to be off. Erratum A009803 requires the controller to be idel before

[U-Boot] [PATCH 1/2] driver/ddr/fsl: Add more debug registers

2016-08-29 Thread Shengzhou Liu
From: York Sun <york@nxp.com> 32 more debug registers are added for newer DDR controllers. Signed-off-by: York Sun <york@nxp.com> Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/fsl_ddr_gen4.c | 2 +- drivers/ddr/fsl/interactive.c

[U-Boot] [PATCH] driver/ddr/fsl: Add general MMDC driver and reuse common MMDC driver for ls1012a

2016-08-26 Thread Shengzhou Liu
) are implimented in future. Meantime, reuse common MMDC driver for LS1012ARDB/LS1012AQDS/LS1012AFRDM. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- Makefile | 1 + arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 +- board/fre

[U-Boot] [PATCH] armv8: fsl-layerscape: Update ddr erratum a008336

2016-08-26 Thread Shengzhou Liu
DDR erratum A008336 only applies to DDR controller v5.2.0. DDR controller v5.2.1 already has default 0x43b30002 in EDDRTQCR1 register for optimal performance. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 6 -- 1 file changed, 4 inse

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Friday, August 12, 2016 3:45 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver > > > +#define CMD_ADDR_MSB_MR_OP(

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
to combine the two to one patch? Shengzhou From: york sun Sent: Friday, August 12, 2016 1:56 PM To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de Subject: RE: [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver I am not suggesting remove the macros. Please try to compile

[U-Boot] [PATCH 2/2 v2] armv8:ls1012a: Use common MMDC driver for ls1012a

2016-08-12 Thread Shengzhou Liu
Let's use common MMDC driver for DDR initialization on LS1012ARDB, LS1012AQDS, LS1012AFRDM boards. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: no change board/freescale/ls1012afrdm/ls1012afrdm.c | 116 -- board/freescale/ls1012aqds/ls1012

[U-Boot] [PATCH 1/2 v2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
in future. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: add a compiling condition to check if CONFIG_MMDC_* is defined. Makefile | 1 + arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 +- drivers/ddr/fsl/Ma

[U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-11 Thread Shengzhou Liu
in future. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- Makefile | 1 + arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 + drivers/ddr/fsl/Makefile | 1 + drivers/ddr/fsl/fsl_

[U-Boot] [PATCH 2/2] armv8:ls1012a: Use common MMDC driver for ls1012a

2016-08-11 Thread Shengzhou Liu
Let's use common MMDC driver for DDR initialization on LS1012ARDB, LS1012AQDS, LS1012AFRDM boards. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/ls1012afrdm/ls1012afrdm.c | 116 -- board/freescale/ls1012aqds/ls1012aqds.c

Re: [U-Boot] [PATCH 1/2] drivers/ddr/fsl: Update clk_adjust of sdram_clk_cntl

2016-05-31 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Wednesday, June 01, 2016 12:04 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Shengzhou, > > If you have to use an odd number for clk_adj, we can go ahead to m

[U-Boot] [PATCH] board/freescale: Use unified setup_ddr_tlbs for spl boot and non-spl boot

2016-05-31 Thread Shengzhou Liu
We should use unified setup_ddr_tlbs() for spl boot and non-spl boot to make sure 'M' bit is set for DDR TLB to maintain cache coherence. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/b4860qds/ddr.c | 8 +++- board/freescale/t102xqds/ddr.c | 5 ++---

Re: [U-Boot] [PATCH 1/2] drivers/ddr/fsl: Update clk_adjust of sdram_clk_cntl

2016-05-30 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Tuesday, May 17, 2016 12:55 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH 1/2] drivers/ddr/fsl: Update clk_adjust of sdram_clk_cntl > > Shengzh

Re: [U-Boot] [PATCH v2] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-05-27 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Thursday, May 19, 2016 4:28 AM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH v2] armv8/ls2080ardb: Update DDR timing to > support more U

[U-Boot] [PATCH] driver/ddr/fsl: Check condition for erratum A-009803

2016-05-25 Thread Shengzhou Liu
Add condition of checking the enabled of address parity for erratum A-009803, if parity is not enabled, the workaround of erratum A-009803 should not be applied. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/fsl_ddr_gen4.

Re: [U-Boot] [PATCH] driver/ddr/fsl: Force enabling parity for A-009803

2016-05-23 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Monday, May 23, 2016 11:33 PM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH] driver/ddr/fsl: Force enabling parity for A-009803 > Shengzhou, > >

Re: [U-Boot] [PATCH] driver/ddr/fsl: Force enabling parity for A-009803

2016-05-23 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Friday, May 20, 2016 11:29 PM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH] driver/ddr/fsl: Force enabling parity for A-009803 > > > > Sheng

[U-Boot] [PATCH] driver/ddr/fsl: Force enabling parity for A-009803

2016-05-20 Thread Shengzhou Liu
Default address parity is disabled for DDR4 UDIMM for considing performance, it needs to enable parity for A-009803 workaround. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/options.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ddr/fsl/optio

[U-Boot] [PATCH v2] driver/ddr/fsl: Add workaround for erratum A-010165

2016-05-10 Thread Shengzhou Liu
During DDR-2133 operation, the transmit data eye margins determined during the memory controller initialization may be sub-optimal, set DEBUG_29[12] and DEBUG_29[13:16] = 4'b0100 before MEM_EN is set. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: rebase arch/arm/include/as

[U-Boot] [PATCH] driver/ddr/fsl: Add workaround for erratum A-A010165

2016-05-10 Thread Shengzhou Liu
During DDR-2133 operation, the transmit data eye margins determined during the memory controller initialization may be sub-optimal, set DEBUG_29[12] and DEBUG_29[13:16] = 4'b0100 before MEM_EN is set. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/include/asm/ar

[U-Boot] [PATCH 1/2] drivers/ddr/fsl: Update clk_adjust of sdram_clk_cntl

2016-05-03 Thread Shengzhou Liu
The clk_adjust is of SDRAM_CLK_CNTL[5:8] 4-bits on MPC85xx and P-series, but is of SDRAM_CLK_CNTL[5:9] 5-bits on T-series and LS-series SoCs. We should update it to adapt the case that clk_adjust is odd data. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/ctrl_

[U-Boot] [PATCH 2/2] board/freescale: Update ddr clk_adjust

2016-05-03 Thread Shengzhou Liu
This patch updates clk_adjust to actual value for boards with T-series and LS-series SoCs to match the setting of clk_adjust in latest ddr driver. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/ls1021aqds/ddr.h | 28 ++-- board/fre

Re: [U-Boot] [PATCH 2/2] board/t4240rdb: some ethernet ports shouldn't be detected

2016-04-15 Thread Shengzhou Liu
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of > ying.zh...@freescale.com > Sent: Friday, April 15, 2016 2:19 PM > To: u-boot@lists.denx.de > Cc: york...@freescale.com; Ying Zhang > Subject: [U-Boot] [PATCH 2/2]

Re: [U-Boot] [PATCH 2/2] board/t4240rdb: some ethernet ports shouldn't be detected

2016-04-15 Thread Shengzhou Liu
> -Original Message- > From: Shengzhou Liu > Sent: Friday, April 15, 2016 3:45 PM > To: 'ying.zh...@freescale.com' <ying.zh...@freescale.com>; u- > b...@lists.denx.de > Cc: york...@freescale.com; Ying Zhang <b40...@freescale.com> > Subject: RE: [U-Boot]

[U-Boot] [PATCH v2] armv8/ls1043: Add workaround for DDR erratum A-008850

2016-04-07 Thread Shengzhou Liu
Barrier transactions from CCI400 need to be disabled till the DDR is configured, otherwise it may lead to system hang. The patch adds workaround to fix the erratum. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: moved part 2 of 2 to public soc.c arch/arm/cpu/armv8/fsl-laye

[U-Boot] [PATCH v2] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-04-07 Thread Shengzhou Liu
: TS1GLH72V1H Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: verified lower rate, for 1333MT/s no changes are necessary. board/freescale/ls2080ardb/ddr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/freescale/ls2080ardb/ddr.h b/board/fre

Re: [U-Boot] [PATCH] mmc:fsl_esdhc: fix invalidate dcache scope

2016-04-06 Thread Shengzhou Liu
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Wednesday, April 06, 2016 11:26 PM > To: Shengzhou Liu <shengzhou@nxp.com>; u-boot@lists.denx.de > Subject: Re: [PATCH] mmc:fsl_esdhc: fix invalidate dcache scope > > > > Shenghzo

[U-Boot] [PATCH] mmc:fsl_esdhc: fix invalidate dcache scope

2016-04-06 Thread Shengzhou Liu
commit 4683b220655 "mmc:fsl_esdhc invalidate dcache before read" intended for ARM, which broke on PowerPC(caused memory allocation failure under SD boot), so add condition CONFIG_ARM. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/mmc/fsl_esdhc.c | 2 ++ 1

[U-Boot] [PATCH] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-03-20 Thread Shengzhou Liu
-by: Shengzhou Liu <shengzhou@nxp.com> --- board/freescale/ls2080ardb/ddr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/ls2080ardb/ddr.h b/board/freescale/ls2080ardb/ddr.h index bda9d4a..7274778 100644 --- a/board/freescale/ls2080ardb/ddr.h +++ b

[U-Boot] [PATCH 3/3] driver/ddr/fsl: Add workaround for erratum A-009801

2016-03-16 Thread Shengzhou Liu
The initial training for the DDRC may provide results that are not optimized. The workaround provides better read timing margins. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + drivers/ddr/fsl/fsl_ddr_

[U-Boot] [PATCH 2/3] drivers/ddr/fsl: update workaround for erratum A-008511

2016-03-16 Thread Shengzhou Liu
Per the latest erratum document, update step 4 and step 8, only DEBUG_29[21] is changed, all other bits should not be changed. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- drivers/ddr/fsl/fsl_ddr_gen4.c | 10 +++--- include/fsl_ddr_sdram.h| 3 +++ 2 files chang

[U-Boot] [PATCH 1/3] armv8/ls1043: Add workaround for DDR erratum A-008850

2016-03-16 Thread Shengzhou Liu
Barrier transactions from CCI400 need to be disabled till the DDR is configured, otherwise it may lead to system hang. The patch adds workaround to fix the erratum. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/soc.c

[U-Boot] [PATCH 1/2 v2] driver/ddr/fsl: Add address parity support for DDR4 UDIMM/discrete

2016-03-10 Thread Shengzhou Liu
Add support of address parity for DDR4 UDIMM or discrete memory. It requires to configurate corresponding MR5[2:0] and TIMING_CFG_7[PAR_LAT]. Parity can be turned on/off by hwconfig, e.g. hwconfig=fsl_ddr:parity=on. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: Integrated

[U-Boot] [PATCH 2/2 v2] driver/ddr/fsl: Add workaround for erratum A-009803

2016-03-10 Thread Shengzhou Liu
During initial DDR training, false parity errors may be detected. This patch adds workaround to fix the erratum. Tested on LS2085QDS and LS2080RDB. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- v2: Integrated York's comments. arch/arm/include/asm/arch-fsl-layerscape/config.

[U-Boot] [PATCH 1/2] driver/ddr/fsl: add command/address parity for DDR4 UDIMM

2016-03-07 Thread Shengzhou Liu
Add support of command/address parity for DDR4 UDIMM or discrete memory. It requires to configurate corresponding MR5[2:0] and TIMING_CFG_7[PAR_LAT]. Parity can be turned on/off by hwconfig, e.g. hwconfig=fsl_ddr:parity=on. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- doc/READ

[U-Boot] [PATCH 2/2] driver/ddr/fsl: Add workaround for erratum A-009803

2016-03-07 Thread Shengzhou Liu
the erratum. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + drivers/ddr/fsl/fsl_ddr_gen4.c| 44 --- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/ar

[U-Boot] [PATCH] armv8/ls1043a: enable workaround for errarum A009942

2016-01-31 Thread Shengzhou Liu
DDR erratum A-009942 is also applicable to LS1043A. Signed-off-by: Shengzhou Liu <shengzhou@nxp.com> --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h b/arch/arm/include/asm/ar

[U-Boot] [PATCH] powerpc/83xx: fix build failure

2016-01-14 Thread Shengzhou Liu
Remove duplicated SDRAM_INTERVAL_BSTOPRE from mpc83xx.h, which has been defined in fsl_ddr_sdram.h Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- include/mpc83xx.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/mpc83xx.h b/include/mpc83xx.h index a6d721a..b

[U-Boot] [PATCH] fsl/ddr: Add workaround for ERRATUM_A00994

2016-01-05 Thread Shengzhou Liu
During the receive data training, the DDRC may complete on a non-optimal setting that could lead to data corruption or initialization failure. Workaround: before setting MEM_EN, set DEBUG_29 register with specific value for different data rates. Signed-off-by: Shengzhou Liu <shengz

[U-Boot] [PATCH] fsl/ddr: Add workaround for ERRATUM_A009942

2016-01-05 Thread Shengzhou Liu
During the receive data training, the DDRC may complete on a non-optimal setting that could lead to data corruption or initialization failure. Workaround: before setting MEM_EN, set DEBUG_29 register with specific value for different data rates. Signed-off-by: Shengzhou Liu <shengz

[U-Boot] [PATCH] driver/ddr/fsl: Add workaround for A009663

2015-12-16 Thread Shengzhou Liu
Erratum A-009663 workaround requires to set DDR_INTERVAL[BSTOPRE] to 0 before setting DDR_SDRAM_CFG[MEM_EN] and set DDR_INTERVAL[BSTOPRE] to the desired value after DDR initialization has completed. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/arm/include/asm/ar

[U-Boot] [PATCH v2] driver/ddr/fsl: Add workaround for A009663

2015-12-16 Thread Shengzhou Liu
), this workaround is not needed. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- v2: add more comments. arch/arm/include/asm/arch-fsl-layerscape/config.h | 3 +++ arch/arm/include/asm/arch-ls102xa/config.h| 1 + arch/powerpc/cpu/mpc85xx/cmd_errata.c | 3 +++

[U-Boot] [PATCH 3/3] fsl/ddr: updated ddr errata-A008378 for arm and power SoCs

2015-11-20 Thread Shengzhou Liu
DDR errata-A008378 applies to LS1021-20-22A-R1.0, T1023-R1.0, T1024-R1.0, T1040-42-20-22-R1.0/R1.1, it has been fixed on LS102x Rev2. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/powerpc/include/asm/config_mpc85xx.h | 2 ++ drivers/ddr/fsl/fsl_ddr_gen4.c

[U-Boot] [PATCH 2/3] fsl/errata: move fsl_errata.h to common directory

2015-11-20 Thread Shengzhou Liu
move arch/powerpc/include/asm/fsl_errata.h to include/fsl_errata.h to make it public for both ARM and POWER SoCs. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/powerpc/cpu/mpc85xx/cmd_errata.c | 2 +- arch/powerpc/cpu/mpc85xx/cpu_init.c| 2 +-

[U-Boot] [PATCH 1/3] arm: ls102x: add get_svr and IS_SVR_REV helper

2015-11-20 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/arm/cpu/armv7/ls102xa/cpu.c | 8 arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 5 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/cpu/armv7/ls102xa/cpu.c b/arch/arm/cpu/armv7/l

[U-Boot] [PATCH 2/2] fsl/ddr: updated ddr errata-A008378 on ls102x

2015-11-19 Thread Shengzhou Liu
DDR Errata A008378 only exists on LS102x Rev1, it has been fixed on LS102x Rev2. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- drivers/ddr/fsl/arm_ddr_gen3.c | 11 +++ drivers/ddr/fsl/fsl_ddr_gen4.c | 9 ++--- 2 files changed, 17 insertions(+), 3 deletions(-)

[U-Boot] [PATCH 1/2] ls102x: add soc version function

2015-11-19 Thread Shengzhou Liu
Add get_svr_ver_major() and get_svr_ver_minor() helper. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/arm/cpu/armv7/ls102xa/cpu.c | 14 ++ arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 3 +++ 2 files changed, 17 insertions(+) diff

[U-Boot] [PATCH] mpc85xx/t2081: enable parsing DDR ratio for T2081 rev1.1

2015-10-26 Thread Shengzhou Liu
T2081 rev 1.1 changes MEM_PLL_RAT in RCW which requires new parsing for ratio. Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> --- arch/powerpc/cpu/mpc85xx/speed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/power

[U-Boot] [PATCH] powerpc/t1023rdb: change default core frequency to 1200MHz

2015-08-21 Thread Shengzhou Liu
Per new requirement, change default core frequency from previous 1400MHz to 1200MHz to save power. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t102xrdb/t1023_rcw.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/t102xrdb

[U-Boot] [PATCH] powerpc/t1023rdb: eMMC boot without external SD card

2015-07-27 Thread Shengzhou Liu
eMMC has no CD and WP pins, it needs to add board-specific board_mmc_getcd() and board_mmc_getwp() in SPL to support eMMC boot without external SD card inserted. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t102xrdb/spl.c | 24 1 file

[U-Boot] [PATCH] powerpc/t4080: update t4160/t4080 serdes

2015-07-15 Thread Shengzhou Liu
Update t4160/t4080 serdes according to latest reference manual rev2. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- arch/powerpc/cpu/mpc85xx/t4240_serdes.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx

[U-Boot] [PATCH v2] board/t1023rdb: add support for T1023RDB RevC

2015-06-17 Thread Shengzhou Liu
Add support for NOR flash and GPIO/I2C switch control on RevC. - NOR support - bank0/bank4 switch - SD/eMMC switch - board version Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- v2: updated rcw. board/freescale/t102xrdb/README| 18 +++-- board/freescale/t102xrdb

[U-Boot] [PATCH] board/t1023rdb: add support for T1023RDB RevC

2015-06-15 Thread Shengzhou Liu
Add support for NOR flash and GPIO/I2C switch control on RevC. - NOR support - bank0/bank4 switch - SD/eMMC switch - board version Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t102xrdb/README | 18 +++-- board/freescale/t102xrdb/t102xrdb.c | 141

[U-Boot] [PATCH] net/phy: set led for rtl8211f phy

2015-05-21 Thread Shengzhou Liu
Initialize LCR rigister to configure green LED for Link, yellow LED for Active. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- drivers/net/phy/realtek.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 79452a8

[U-Boot] [PATCH] powerpc/t1024: update fman liodn for mac1

2015-05-14 Thread Shengzhou Liu
@ffe00/fman@40/port@88000/ Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- arch/powerpc/cpu/mpc85xx/t1024_ids.c | 3 +-- arch/powerpc/include/asm/fsl_liodn.h | 6 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/t1024_ids.c b/arch

[U-Boot] [PATCH v2] net/phy: refactor RTL8211F initialization

2015-04-24 Thread Shengzhou Liu
RTL8211F needs to enalbe TXDLY for RGMII during phy initialization, so move it to rtl8211f_config for early initialization. Signed-off-by: Shengzhou Liu shengzhou@freescale.com cc: Joe Hershberger joe.hershber...@gmail.com --- v2: add default page and use macro instead of magic number

[U-Boot] [PATCH] t2080rdb/rcw: update ddr frequency from 1600MT/s to 1867MT/s

2015-04-22 Thread Shengzhou Liu
T2080RDB RevC uses new SODIMM 1867MT/s instead of previous 1600MT/s. So update RCW to support new DDR frequency 1867MT/s by default. Reserve the old 1600MT/s in comment for users in needed. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t208xrdb/t2080_rcw.cfg | 5

[U-Boot] [PATCH] board/t2080rdb: reset cs4315 phy

2015-04-21 Thread Shengzhou Liu
CS4315 PHY doesn't support phy-reset by software, it needs to reset it by hardware via CPLD control. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t208xrdb/cpld.h | 3 +++ board/freescale/t208xrdb/t208xrdb.c | 7 +++ 2 files changed, 10 insertions(+) diff

[U-Boot] [PATCH] board/t2080rdb: reset CS4315 PHY

2015-04-21 Thread Shengzhou Liu
CS4315 PHY doesn't phy reset by software, it needs to reset it by hardware reset via CPLD control. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t208xrdb/cpld.h | 3 +++ board/freescale/t208xrdb/t208xrdb.c | 7 +++ 2 files changed, 10 insertions(+) diff

[U-Boot] [PATCH] board/t102x: use fdt_setprop_string instead of fdt_setprop

2015-04-14 Thread Shengzhou Liu
Use fdt_setprop_string instead of fdt_setprop to fix string length. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- board/freescale/t102xqds/eth_t102xqds.c | 9 + board/freescale/t102xrdb/eth_t102xrdb.c | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH] net/phy: fixup for get_phy_id

2015-04-07 Thread Shengzhou Liu
commit 3c6928fd7b0f84 net: phy: fix warnings with W=1 caused some PHYs(e.g. CS4315/CS4340) not working. This patch fixes the warning and make those special PHYs working as well. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- drivers/net/phy/phy.c | 2 +- include/phy.h | 1

  1   2   3   >