[U-Boot] [PATCH 1/2] armv8: fsl-layerscape: change LS1043A SVR register

2016-03-23 Thread Gong Qianyu
From: Mingkai Hu <mingkai...@nxp.com> Signed-off-by: Mingkai Hu <mingkai...@nxp.com> Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/include/asm/arch-fsl-layerscape/soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/a

[U-Boot] [PATCH] armv8/ls1043aqds: dts: set SPI mode for DSPI

2016-03-23 Thread Gong Qianyu
It's necessary to set the clock phase and polarity for DSPI flash or it could not work properly. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/dts/fsl-ls1043a-qds.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/fsl-ls1043a-qds.d

[U-Boot] [PATCH 2/2] armv8: fsl-layerscape: add LS1023A SVR

2016-03-23 Thread Gong Qianyu
From: Mingkai Hu <mingkai...@nxp.com> Signed-off-by: Mingkai Hu <mingkai...@nxp.com> Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 1 + arch/arm/include/asm/arch-fsl-layerscape/soc.h | 1 + 2 files changed, 2 inserti

[U-Boot] [PATCH] armv8: fsl-layerscape: don't reconfigure QSPI clock when booting from QSPI

2016-03-16 Thread Gong Qianyu
It has set the qspi_cfg register earlier through PBI when booting from QSPI. We'd better not change it. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm

[U-Boot] [PATCH] armv8/ls1043a: update env settings for booting kernel

2016-03-15 Thread Gong Qianyu
Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- include/configs/ls1043a_common.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index 6150bc1..5039241 100644 --- a/include/c

[U-Boot] [PATCH 1/2] armv8/ls1043aqds: fix to get boot device info from FPGA

2016-03-14 Thread Gong Qianyu
Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- board/freescale/ls1043aqds/ls1043aqds.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c index a72fe52..bd73e4f 100644 --- a

[U-Boot] [PATCH 1/2] armv8/ls1043aqds: fix print info for QSPI boot

2016-03-14 Thread Gong Qianyu
according to the Reference manual. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- board/freescale/ls1043aqds/ls1043aqds.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c

[U-Boot] [PATCH 2/2] armv8/ls1043aqds: use configuarable clock for non-QSPI boot

2016-03-14 Thread Gong Qianyu
supported by non-QSPI boot. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- include/configs/ls1043aqds.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h index 158cf02..93671f0 100644 --- a/include/configs/ls1043aqds.h

[U-Boot] [PATCH 3/3] armv8/ls1043a: move CONFIG_MTD to defconfig

2016-03-09 Thread Gong Qianyu
To make it take effect to enable MTD driver model for SPI-NOR. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 + configs/ls1043aqds_nand_defconfig| 1 + c

[U-Boot] [PATCH 2/3] deconfig: ls1043ardb_SECURE_BOOT: fix line format

2016-03-09 Thread Gong Qianyu
Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- configs/ls1043ardb_SECURE_BOOT_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/ls1043ardb_SECURE_BOOT_defconfig b/configs/ls1043ardb_SECURE_BOOT_defconfig index 4004435..34f7f29 100644 --- a/c

[U-Boot] [PATCH 1/3] armv8/ls1043aqds: fix fman ucode address to an offset in QSPI flash

2016-03-09 Thread Gong Qianyu
Modify the value as the SPI interface is changed. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- include/configs/ls1043a_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index 7018cb5..c

[U-Boot] [PATCH] armv8/fsl-layerscape: add IFC fixup for LS1043A with QSPI enabled

2016-02-22 Thread Gong Qianyu
device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c index 4e4861d..5bb3048 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c @@ -204,4 +

[U-Boot] [Patch V5 0/4] Qe/Fman related patches

2016-02-17 Thread Gong Qianyu
Hi all, This is the version 5 patchset that fixes to: - move the code changes of fdt_fixup_fman_firmware() to a separate new patch [3/4]. Tested on LS1043AQDS board and P4080DS board. Thank you for reviewing the patches. [Patch V5 1/4] qe: move drivers/qe/qe.h to include/fsl_qe.h [Patch V5

[U-Boot] [Patch V5 3/4] driver/fm: fdt.c: fix fdt_fixup_fman_firmware() to support ARM platforms

2016-02-17 Thread Gong Qianyu
Use fdt32_to_cpu() to convert the data correctly for both endianness platforms. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V5: - New Patch. drivers/net/fm/fdt.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/fm/fdt.c b/drivers/net/fm

[U-Boot] [Patch V5 4/4] armv8/fsl-layerscape: fdt: add fixup for Fman ucode

2016-02-17 Thread Gong Qianyu
Add fdt fixup to insert Fman firmware into the device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V4-V5: - No change. V3: - Remove fman clock fixup. - Revise commit message too. V2: - Removed the duplicated function. arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 7 +++

[U-Boot] [Patch V5 1/4] qe: move drivers/qe/qe.h to include/fsl_qe.h

2016-02-17 Thread Gong Qianyu
As the QE firmware struct is shared with Fman, move the header file out of drivers/qe/. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V5: - No change. V4: - Updated and based on the latest commit. No code changed but fixed "git am" error. V3: - Move file cha

[U-Boot] [Patch V5 2/4] fm: fdt: Move fman ucode fixup to driver code

2016-02-17 Thread Gong Qianyu
Not only powerpc/mpc85xx but also Freescale Layerscape platforms will use fdt_fixup_fman_firmware() to insert Fman ucode blob into the device tree. So move the function to Fman driver code. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V5: - Move the function changes to a separate

[U-Boot] [Patch V2] armv8/ls1043aqds: Add USB support for ls1043aqds

2016-02-15 Thread Gong Qianyu
Add USB XHCI support for ls1043qds board. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V2: - Move the definition of scfg and usb_pwrfault in #ifdef CONFIG_HAS_FSL_XHCI_USB. board/freescale/ls1043aqds/ls1043aqds.c | 17 + include/configs/ls1043aqds.h

[U-Boot] [Patch V4 2/3] fm: fdt: Move fman ucode fixup to Fman driver code

2016-02-15 Thread Gong Qianyu
Both Freescale Layerscape and powerpc/mpc85xx platforms are using fdt_fixup_fman_firmware() to insert Fman ucode blob into the device tree. So move the function to driver code. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V4: - No change. V3: - Remove file changes about

[U-Boot] [Patch V4 3/3] armv8/fsl-layerscape: fdt: add fixup for Fman ucode

2016-02-15 Thread Gong Qianyu
Add fdt fixup to insert Fman firmware into the device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V4: - No change. V3: - Remove fman clock fixup. - Revise commit message too. V2: - Removed the duplicated function. arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 7 +++

[U-Boot] [Patch V4 1/3] qe: move drivers/qe/qe.h to include/fsl_qe.h

2016-02-15 Thread Gong Qianyu
As the QE firmware struct is shared with Fman, move the header file out of drivers/qe/. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V4: - Updated and based on the latest commit. No code changed but fixed "git am" error. V3: - Move file changes about "qe.h"

[U-Boot] [PATCH] armv8/ls1043aqds: Add USB support for ls1043aqds

2016-02-14 Thread Gong Qianyu
Add USB XHCI support for ls1043qds board. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- board/freescale/ls1043aqds/ls1043aqds.c | 15 +++ include/configs/ls1043aqds.h| 13 + 2 files changed, 28 insertions(+) diff --git a/board/freescale/ls10

[U-Boot] [PATCH] armv8/ls1043aqds: fix DSPI/QSPI node in dts file

2016-01-31 Thread Gong Qianyu
Fix the lost dts info when merging patches. Fix DSPI node for 'commit e0579a5852b3 ("armv8/ls1043aqds: add DSPI support")' and QSPI node for 'commit 166ef1e90ce4 ("armv8/ls1043aqds: add QSPI support in SD boot")'. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> ---

[U-Boot] [PATCH] pci: gate print info of reading vender id with CONFIG_DM_PCI

2016-01-27 Thread Gong Qianyu
the "Cannot read bus configuration: -1" information. Signed-off-by: Mingkai Hu <mingkai...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- common/cmd_pci.c | 8 1 file changed, 8 insertions(+) diff --git a/common/cmd_pci.c b/common/cmd_pci.c inde

[U-Boot] [Patch V7 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-25 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to th

[U-Boot] [Patch V7 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-25 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-p

[U-Boot] [Patch V7 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-25 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <

[U-Boot] [Patch V7 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-25 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> It might be missed when converting spi_flash_probe() in cmd_sf.c. This patch refers to commit fbb099183e3a ("dm: Convert spi_flash_probe() and 'sf probe' to use driver model"). Signed-off-by: Gong Qianyu <qianyu.g...@frees

[U-Boot] [Patch V3 1/3] qe: move drivers/qe/qe.h to include/fsl_qe.h

2016-01-25 Thread Gong Qianyu
As the QE firmware struct is shared with Fman, move the header file out of drivers/qe/. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V3: - Move file changes about "qe.h" to this patch. V2: - New Patch. arch/powerpc/cpu/mpc85xx/cpu_init.c | 2 +- arch/powerpc/c

[U-Boot] [Patch V3 3/3] armv8/fsl-layerscape: fdt: add fixup for Fman ucode

2016-01-25 Thread Gong Qianyu
Add fdt fixup to insert Fman firmware into the device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V3: - Remove fman clock fixup. - Revise commit message too. V2: - Removed the duplicated function. arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 7 +++ 1 file chan

[U-Boot] [Patch V3 2/3] fm: fdt: Move fman ucode fixup to Fman driver code

2016-01-25 Thread Gong Qianyu
Both Freescale Layerscape and powerpc/mpc85xx platforms are using fdt_fixup_fman_firmware() to insert Fman ucode blob into the device tree. So move the function to driver code. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V3: - Remove file changes about "qe.h".

[U-Boot] [Patch V5 1/3] armv8/ls1043aqds: add DSPI support

2016-01-24 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Enable three DSPI flash memories on board. Commands: => sf probe 1:0 SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB => sf probe 1:1 SF: Detected SST25WF040B with page si

[U-Boot] [Patch V5 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2016-01-24 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> QSPI and IFC are pin-multiplexed on LS1043A. So we use ls1043aqds_sdcard_ifc_defconfig to support IFC in SD boot and ls1043aqds_sdcard_qspi_defconfig to support QSPI in SD boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com&g

[U-Boot] [Patch V5 0/3] LS1043AQDS DSPI/QSPI related patches

2016-01-24 Thread Gong Qianyu
This patchset is related with DSPI support, SD boot with QSPI and QSPI boot support on LS1043AQDS board. Note that to work well on LS1043AQDS it depends on the QSPI driver bug fixing and QIXIS related patchsets which I've already sent out and are under review. The version 5 patchset has fixed

[U-Boot] [Patch V5 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-24 Thread Gong Qianyu
Enable the U-Boot Driver Model(DM) to use the Freescale QSPI driver. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V5: - Print FGPA info later for QSPI boot. V3-V4: - No change. V2: - Fix blank line issues. arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++ board/fre

[U-Boot] [Patch V2 3/3] armv8/fsl-layerscape: fdt: add fixup for fman

2016-01-22 Thread Gong Qianyu
Add fdt fixup for Fman clock and inserting Fman ucode blob into the device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V2: - Removed the duplicated function. arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/a

[U-Boot] [Patch V2 2/3] fm: fdt: Move fman ucode fixup to Fman driver code

2016-01-22 Thread Gong Qianyu
Both Freescale Layerscape and powerpc/mpc85xx platforms are using fdt_fixup_fman_firmware() to insert Fman ucode blob into the device tree. So move it to driver code. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V2: - New patch. arch/powerpc/cpu/mpc85xx/cpu_init.c | 2 +-

[U-Boot] [Patch V2 1/3] qe: move drivers/qe/qe.h to include/fsl_qe.h

2016-01-22 Thread Gong Qianyu
As the QE firmware struct is shared with Fman, move the header file out of drivers/qe/. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V2: - New patch. drivers/net/fm/fm.c | 2 +- drivers/qe/fdt.c| 2 +- drivers/qe/qe.c

[U-Boot] [Patch V6 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to th

[U-Boot] [Patch V6 0/4] QSPI bug fixing patches

2016-01-21 Thread Gong Qianyu
This patchset is mainly related with Freescale QSPI and tested on LS1043AQDS board. The version 6 patchset has fixes to: - Use min() to simplify the code in QSPI driver. [Patch V6 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform [Patch V6 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy

[U-Boot] [Patch V6 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <

[U-Boot] [Patch V6 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-p

[U-Boot] [Patch V6 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> It might be missed when converting spi_flash_probe() in cmd_sf.c. This patch refers to commit fbb099183e3a ("dm: Convert spi_flash_probe() and 'sf probe' to use driver model"). Signed-off-by: Gong Qianyu <qianyu.g...@fr

[U-Boot] [Patch V5 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-20 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> It might be missed when converting spi_flash_probe() in cmd_sf.c. This patch refers to commit fbb099183e3a ("dm: Convert spi_flash_probe() and 'sf probe' to use driver model"). Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com

[U-Boot] [Patch V5 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-20 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <

[U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-20 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to th

[U-Boot] [Patch V5 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-20 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-p

[U-Boot] [PATCH 2/2] armv8/fsl-layerscape: fdt: add fixup for fman

2016-01-20 Thread Gong Qianyu
1.Add fixup for fman clock. 2.Add fdt_fixup_fman_firmware() to insert the Fman ucode firmware into the device tree. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 121 1 file changed, 121 insertions(+) diff

[U-Boot] [PATCH 1/2] armv8/ls1043a: fsl_qman: Implement device tree fixup for QBMan

2016-01-20 Thread Gong Qianyu
From: Roy Pledge <roy.ple...@freescale.com> Add support for device tree fixup for the QBMan nodes in ARM platforms Signed-off-by: Roy Pledge <roy.ple...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- arch/arm/cpu/armv8/fsl-layerscape/fdt

[U-Boot] [Patch V4 1/3] armv8/ls1043aqds: add DSPI support

2016-01-19 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Enable three DSPI flash memories on board. Commands: => sf probe 1:0 SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB => sf probe 1:1 SF: Detected SST25WF040B with page si

[U-Boot] [Patch V4 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2016-01-19 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> QSPI and IFC are pin-multiplexed on LS1043A. So we use ls1043aqds_sdcard_ifc_defconfig to support IFC in SD boot and ls1043aqds_sdcard_qspi_defconfig to support QSPI in SD boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.co

[U-Boot] [Patch V4 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-19 Thread Gong Qianyu
Enable the U-Boot Driver Model(DM) to use the Freescale QSPI driver. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V3-V4: - No change. V2: - Fix blank line issues. arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++ board/freescale/ls1043aqds/MAINTAINERS | 1 +

[U-Boot] [Patch V3 1/3] armv8/ls1043aqds: add DSPI support

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Enable three DSPI flash memories on board. Commands: => sf probe 1:0 SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB => sf probe 1:1 SF: Detected SST25WF040B with page si

[U-Boot] [Patch V3 0/3] LS1043AQDS SPI related patches

2016-01-10 Thread Gong Qianyu
Hi all, The version 3 patchset fixes to: - remove fdt fixup for IFC when booting with QSPI. Also note that to work well on LS1043AQDS board, this patchset depends on the QSPI bug fixing patchset and QIXIS related patchset that I have already sent out and are still under review. [Patch V3 1/3]

[U-Boot] [Patch V4 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-p

[U-Boot] [Patch V3 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-10 Thread Gong Qianyu
Enable the U-Boot Driver Model(DM) to use the Freescale QSPI driver. Signed-off-by: Gong Qianyu <qianyu.g...@nxp.com> --- V3: - No change. V2: - Fix blank line issues. arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++ board/freescale/ls1043aqds/MAINTAINERS | 1 +

[U-Boot] [Patch V3 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> QSPI and IFC are pin-multiplexed on LS1043A. So we use ls1043aqds_sdcard_ifc_defconfig to support IFC in SD boot and ls1043aqds_sdcard_qspi_defconfig to support QSPI in SD boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V

[U-Boot] [Patch V4 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to th

[U-Boot] [Patch V4 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <

[U-Boot] [Patch V4 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> It might be missed when converting spi_flash_probe() in cmd_sf.c. This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - Use CONFIG_ENV_* instead of CONFIG_SF_

[U-Boot] [Patch V3 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to th

[U-Boot] [Patch V3 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <

[U-Boot] [Patch V3 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> It might be missed when converting spi_flash_probe() in cmd_sf.c. This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V3: - Remove redundant operations for saveenv(

[U-Boot] [Patch V3 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-07 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-p

[U-Boot] [Patch V2 3/3] armv8/ls1043aqds: enable qixis_reset command to boot from NAND/SD

2015-12-31 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - No change. include/configs/ls1043aqds.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h index bfbf

[U-Boot] [Patch V2 0/3] QIXIS related patches

2015-12-31 Thread Gong Qianyu
Hi all, The version 2 patchset fixed to: - use qixis_write_i2c() instead of QIXIS_WRITE once QSPI is enabled. [Patch V2 1/3] freescale/qixis: Add support for booting from SD/QSPI [Patch V2 2/3] armv8/ls1043aqds: fix qixis_reset command issue [Patch V2 3/3] armv8/ls1043aqds: enable qixis_reset

[U-Boot] [Patch V2 2/3] armv8/ls1043aqds: fix qixis_reset command issue

2015-12-31 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - No change. include/configs/ls1043aqds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h i

[U-Boot] [Patch V2 1/3] freescale/qixis: Add support for booting from SD/QSPI

2015-12-31 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> 1.Use "qixis_reset sd" to boot from SD 2.Use "qixis_reset sd_qspi" to boot from SD with QSPI support 3.Use "qixis_reset qspi" to boot from QSPI flash On some SoCs such as LS1021A and LS1043A, IFC and QSPI could

[U-Boot] [Patch V2 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2015-12-24 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> QSPI and IFC are pin-multiplexed on LS1043A. So we use ls1043aqds_sdcard_ifc_defconfig to support IFC in SD boot and ls1043aqds_sdcard_qspi_defconfig to support QSPI in SD boot. If QSPI is enabled, IFC should be disabled in kernel as well. Sign

[U-Boot] [Patch V2 0/3] LS1043AQDS related patches

2015-12-24 Thread Gong Qianyu
Hi all, The version 2 patchset has: - Fixed some format issues according to the comments. - Changed the core frequency to 1600M for SD boot with QSPI support. Also note that to apply the patchset and work well on LS1043AQDS board, it depends on the QSPI driver bug fixing and QIXIS patchsets

[U-Boot] [Patch V2 1/3] armv8/ls1043aqds: add DSPI support

2015-12-24 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Enable three DSPI flash memories on board. Commands: => sf probe 1:0 SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB => sf probe 1:1 SF: Detected SST25WF040B with page si

[U-Boot] [Patch V2 3/3] armv8/ls1043aqds: add QSPI boot support

2015-12-24 Thread Gong Qianyu
From: Gong Qianyu <qianyu.g...@freescale.com> Enable the U-Boot Driver Model(DM) to use the Freescale QSPI driver. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - No change. arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++ board/freescale/ls1043aqds

[U-Boot] [Patch V2] i2c: mxc: add a condition in case the parameter is NULL

2015-12-18 Thread Gong Qianyu
. For i.MX platforms, the U-Boot is always running in DDR. Actually it causes asynchronous error when the ARM64 system error report is enabled and the flash write protect is set. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - Modified the commit title and message.

[U-Boot] [Patch V3] i2c: mxc: add a condition in case the parameter is NULL

2015-12-18 Thread Gong Qianyu
. For i.MX platforms, the U-Boot is always running in DDR. Actually it causes asynchronous error when the ARM64 system error report is enabled and the flash write protect is set. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V3: - Sorry..Remove an unrelated line in othe

[U-Boot] [PATCH 1/3] freescale/qixis: Add support for booting from SD/QSPI

2015-12-17 Thread Gong Qianyu
tween SD boot with IFC support and SD boot with QSPI support. The default booting from SD is with IFC support. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- board/freescale/common/qixis.c | 36 1 file changed, 36 insertions(+) diff --git a/bo

[U-Boot] [PATCH 2/3] armv8/ls1043aqds: fix qixis_reset command issue

2015-12-17 Thread Gong Qianyu
Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- include/configs/ls1043aqds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h index 4aeb238..346a858 100644 --- a/include/configs/ls1043aqds.h +++ b/i

[U-Boot] [PATCH 3/3] armv8/ls1043aqds: enable qixis_reset command to boot from NAND/SD

2015-12-17 Thread Gong Qianyu
Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- include/configs/ls1043aqds.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h index 346a858..58c7144 100644 --- a/include/configs/ls1043aqds.h +++ b/include/c

[U-Boot] [PATCH 0/3] QIXIS related patches

2015-12-17 Thread Gong Qianyu
Hi all, Here are three QIXIS related patches. I have tested on LS1043AQDS board. Please help to review. Thanks! Regards, Qianyu ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [Patch V2 4/4] dm: env_sf: fix saveenv() to use driver model

2015-12-15 Thread Gong Qianyu
It might be missed when converting spi_flash_probe() in cmd_sf.c. This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - New Patch. common/env_sf.c | 49 + 1 file c

[U-Boot] [Patch V2 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2015-12-15 Thread Gong Qianyu
In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qianyu <qiany

[U-Boot] [Patch V2 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-15 Thread Gong Qianyu
egs *)plat->reg_base; ^ Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - No change. drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..9f296c1 100644 --- a

[U-Boot] [Patch V2 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2015-12-15 Thread Gong Qianyu
In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V2: - New

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
egs *)plat->reg_base; ^ Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qs

[U-Boot] [PATCH 3/3] spi: fsl_quadspi: Fix qspi_op_rdid memcpy issue

2015-12-14 Thread Gong Qianyu
In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch add checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qianyu <qiany

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
egs *)plat->reg_base; ^ Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qs

[U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread Gong Qianyu
it causes asynchronous error when the ARM64 system error report is enabled and the flash write protect is set. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/i2c/mxc_i2c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
egs *)plat->reg_base; ^ Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qs

[U-Boot] [Patch V4 6/7] armv8/ls1043ardb: add DSPI support

2015-11-11 Thread Gong Qianyu
Use the U-Boot Driver Model. Just enable Freescale DSPI driver and set DSPI related parameters in dts file. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - No change. V3: - New Patch. - Tested on LS1043ARDB board. arch/arm/dts/fsl-ls1043a-rdb.dts

[U-Boot] [Patch V4 5/7] armv8/ls1043aqds: dts: add dtb support

2015-11-11 Thread Gong Qianyu
Reuse the dts files from ls1043a linux kernel. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - No change. V3: - No change. V2: - New Patch. arch/arm/dts/Makefile| 3 +- arch/arm/dts/fsl-ls1043a-qds.dts | 124 +++ c

[U-Boot] [Patch V4 1/7] pci/layerscape: add support for LS1043A PCIe LUT register access

2015-11-11 Thread Gong Qianyu
kai Hu <mingkai...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - Use #ifndef CONFIG_LS102XA instead of #ifdef CONFIG_FSL_LAYERSCAPE. V3: - No change. V2: - Fix compile errors for ls1021a. arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 ++ ar

[U-Boot] [Patch V4 0/7] add LS1043AQDS platform support

2015-11-11 Thread Gong Qianyu
Hi all, Here are the main changes for V4 patchset. LS1043ARDB MAINTAINERS has already been updated in U-Boot. So remove that patch in V4 patchset. - Update the code base. - Use #ifndef CONFIG_LS102XA instead of #ifdef CONFIG_FSL_LAYERSCAPE for PCIe patch. - Fix vid support for LS1043AQDS.

[U-Boot] [Patch V4 2/7] armv8/fsl-layerscape: Remove reference to gdata

2015-11-11 Thread Gong Qianyu
The global_data pointer (gd) has been set earlier in crt0_64.S. So there's no need to assign it again. Remove gdata since it is going away in U-Boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - No change. V3: - New Patch. - Fix dead code. arch/arm/cpu/arm

[U-Boot] [Patch V4 4/7] armv8/ls1043aqds: add LS1043AQDS board support

2015-11-11 Thread Gong Qianyu
t;shaohui@freescale.com> Signed-off-by: Mingkai Hu <mingkai...@freescale.com> Signed-off-by: Hou Zhiqiang <b48...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - Fix vid macros in config file and add vid support. - Remove RAW_TIMING definition for DDR3.

[U-Boot] [Patch V4 7/7] armv8/ls1043ardb: add USB support

2015-11-11 Thread Gong Qianyu
Add support for the third USB controller for LS1043A. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - No change. V3: - New Patch. Tested on LS1043ARDB board. arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 6 +++--- board/freescale/ls1043ardb/ls1043

[U-Boot] [Patch V4 3/7] armv8/ls1043ardb: dts: add dtb support

2015-11-11 Thread Gong Qianyu
Reuse dts files from ls1043a linux kernel. Some parts in dts files may not be needed by U-Boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V4: - No change. V3: - Modified the dts file according to ls1043a upstreaming linux kernel. V2: - New Patch. arch/arm/dts/Ma

[U-Boot] [Patch V3 1/8] pci/layerscape: add support for LS1043A PCIe LUT register access

2015-11-06 Thread Gong Qianyu
kai Hu <mingkai...@freescale.com> Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V3: - No change. V2: - Fix compile errors for ls1021a. arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 ++ arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 4 arch/arm/in

[U-Boot] [Patch V3 2/8] armv8/fsl-layerscape: Remove reference to gdata

2015-11-06 Thread Gong Qianyu
The global_data pointer (gd) has been set earlier in crt0_64.S. So there's no need to assign it again. Remove gdata since it is going away in U-Boot. Signed-off-by: Gong Qianyu <qianyu.g...@freescale.com> --- V3: - New Patch. - Fix dead code. arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2

<    1   2   3   4   >