[U-Boot] [PATCH v3] armv8: QSPI: Add AHB bus 16MB+ size support

2016-11-30 Thread Yuan Yao
From: Yuan Yao The default configuration for QSPI AHB bus can't support 16MB+. But some flash on NXP layerscape board are more than 16MB. Signed-off-by: Yuan Yao --- Changed in v3: Rename the CONFIG_SYS_QSPI_ADDR to SYS_FSL_QSPI_ADDR. Changed in v2: Remov

[U-Boot] [PATCH v2] armv8: QSPI: Add AHB bus 16MB+ size support

2016-11-29 Thread Yuan Yao
From: Yuan Yao The default configuration for QSPI AHB bus can't support 16MB+. But some flash on NXP layerscape board are more than 16MB. Signed-off-by: Yuan Yao --- Changed in v2: Remove the CONFIG_QSPI_AHB_INIT into Kconfig. --- arch/arm/cpu/armv8/fsl-layerscape/Kc

[U-Boot] [PATCH v2] ls1021a: QSPI: update the node for QSPI support

2016-11-29 Thread Yuan Yao
From: Yuan Yao Add the name for register space and memory space. <0x155 0x1 > is the QSPI register space. <0x4000 0x400> is the QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v2: Updated the commit message. --- arch/arm/dts/ls1021a.dtsi | 1 + 1

[U-Boot] [PATCH v3] armv8: fsl-layerscape: Add Readme for deploy QSPI image

2016-11-08 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- Changed in v3: Rename README.deploy to README.qspi Changed in v2: Move the readme for QSPI deploy out of only for ls2080aqds. --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.qspi | 42 +++ 1 file changed, 42

[U-Boot] [PATCH v2] arm: ls1021a: improve the core frequency to 1.2GHZ

2016-11-08 Thread Yuan Yao
From: Yuan Yao Change core clock to 1.2GHz in the configurations for SD and NAND boot. Signed-off-by: Yuan Yao --- Changed in v2: Updated the commit message. --- board/freescale/ls1021aqds/ls102xa_rcw_nand.cfg| 2 +- board/freescale/ls1021aqds/ls102xa_rcw_sd_ifc.cfg | 4

[U-Boot] [PATCH] arm: ls1021a: improve the core frequency to 1.2GHZ

2016-11-08 Thread Yuan Yao
From: Yuan Yao LS1021A is working stability with 1.2GHZ, so as a performance requirements we can improve the core frequency to 1.2GHZ for SD boot and NAND boot. Signed-off-by: Yuan Yao --- board/freescale/ls1021aqds/ls102xa_rcw_nand.cfg| 2 +- board/freescale/ls1021aqds

[U-Boot] [PATCH v2] armv8: fsl-layerscape: Add Readme for deploy QSPI image

2016-11-07 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- Changed in v2: Move the readme for QSPI deploy out of only for ls2080aqds. --- .../arm/cpu/armv8/fsl-layerscape/doc/README.deploy | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 arch/arm/cpu/armv8/fsl

[U-Boot] [PATCH] armv8: QSPI: Add AHB bus 16MB+ size support

2016-10-25 Thread Yuan Yao
From: Yuan Yao The default configuration for QSPI AHB bus can't support 16MB+. But some flash on NXP layerscape board are more than 16MB. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 37 ++ .../include/asm/arch-fsl-layerscape/immap_

[U-Boot] [PATCH] board/ls2080qds: add the procedure to deply QSPI image.

2016-10-11 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- board/freescale/ls2080aqds/README | 35 +++ 1 file changed, 35 insertions(+) diff --git a/board/freescale/ls2080aqds/README b/board/freescale/ls2080aqds/README index f288750..0f7446a 100644 --- a/board/freescale

[U-Boot] [PATCH] ls1021a: QSPI: update the node for QSPI support

2016-10-10 Thread Yuan Yao
From: Yuan Yao Add the address value and size value name for QSPI dts node. Signed-off-by: Yuan Yao --- arch/arm/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 119b1af..37be169 100644 --- a/arch/arm/dts

[U-Boot] [PATCH] configs: ls2080ardb: Enable DSPI flash support

2016-10-10 Thread Yuan Yao
From: Yuan Yao There is the stmicro DSPI flash on LS12080ARDB. Enable DSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080ardb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h index b93e919

[U-Boot] [PATCH v1 2/4] spi: fsl_qspi: Add 4bytes address support

2016-09-28 Thread Yuan Yao
From: Yuan Yao The QSPI support the direct 4bytes address command for flash read/write/erase. And the address can cover the whole QSPI memory space. Signed-off-by: Yuan Yao --- drivers/spi/fsl_qspi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi

[U-Boot] [PATCH v1 4/4] armv8: ls1046a: update the flash size to 64M.

2016-09-28 Thread Yuan Yao
From: Yuan Yao The QSPI flash on LS1046A is 64MB, and don't support BAR. Signed-off-by: Yuan Yao --- include/configs/ls1046ardb.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/configs/ls1046ardb.h b/include/configs/ls1046ardb.h index 693cc8d..3322953 1

[U-Boot] [PATCH v1 1/4] sf: add ADDR_4B for 4byte address support

2016-09-28 Thread Yuan Yao
From: Yuan Yao Some new flash don't support bar register but use 4bytes address to support exceed 16MB flash size. So add flash flag: ADDR_4B for some flash which support 4bytes address. Signed-off-by: Yuan Yao --- drivers/mtd/spi/sf_internal.h | 4 +++- drivers/mtd/spi/sf_params.c

[U-Boot] [PATCH v1 3/4] armv8: ls1012a: update the flash size to 64M.

2016-09-28 Thread Yuan Yao
From: Yuan Yao The QSPI flash on LS1012A is 64MB, and don't support BAR. Signed-off-by: Yuan Yao --- include/configs/ls1012a_common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h index 5f

[U-Boot] [PATCH v1 0/4] sf: add ADDR_4B for 4byte address support

2016-09-28 Thread Yuan Yao
From: Yuan Yao Some new flash don't support bar but use 4bytes address to direct support exceed 16MB flash size. So add flash flag: ADDR_4B for some flash which support 4bytes address. Yuan Yao (4): sf: add ADDR_4B for 4byte address support spi: fsl_qspi: Add 4bytes address support

[U-Boot] [PATCH v6 04/10] armv8: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable

2016-06-08 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR flash and QIXIS can't be accessed through IFC due to pin mux. So enable I2C QIXIS access and I2C early init to read the sysclk and ddrclk. Signed-off-by: Yuan Yao --- Changed in v5: Use I2C to read the clocks instead of the hard-coded c

[U-Boot] [PATCH v6 06/10] dm: dts: ls2080aqds: Add QSPI dts node

2016-06-08 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH v6 09/10] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-06-08 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- Changed in v6: Add CONFIG_CMD_SF in defconfig. --- configs/ls2080aqds_nand_defconfig | 9

[U-Boot] [PATCH v6 07/10] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-06-08 Thread Yuan Yao
From: Yuan Yao In order to access QSPI flash we must asserted ISO allowing the DUT to access the full IFC domain. But deasserted the unused ISO will allowing maximum performance. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 2 ++ board/freescale

[U-Boot] [PATCH v6 10/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-08 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v6: Add CONFIG_CMD_SF in defconfig. Changed in v4

[U-Boot] [PATCH v6 08/10] configs: ls2080a: Increase load image len in NAND boot

2016-06-08 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH v6 05/10] configs: ls2080aqds: Enable QSPI flash support

2016-06-08 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- Changed in v6: remove CONFIG_CMD_SF. --- include/configs/ls2080aqds.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include

[U-Boot] [PATCH v6 03/10] configs: ls2080a_common: Remove duplicate NOR configs

2016-06-08 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH v6 02/10] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-06-08 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v6 01/10] drivers: i2c: mxc: Add early init

2016-06-08 Thread Yuan Yao
From: Yuan Yao Add early i2c init function with conservative divider when the exact clock rate is not available. Signed-off-by: Yuan Yao --- New add in v3. --- drivers/i2c/i2c_core.c | 5 + drivers/i2c/mxc_i2c.c | 27 +++ include/i2c.h | 3 +++ 3 files

[U-Boot] [PATCH v6 00/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-08 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Yuan Yao (10): drivers: i2c: mxc: Add early init armv8: ls2080aqds: Select QSPI CLK div via SCFG

[U-Boot] [PATCH v5 09/10] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-06-08 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- configs/ls2080aqds_nand_defconfig | 8 1 file changed, 8 insertions(+) diff --git a

[U-Boot] [PATCH v5 08/10] configs: ls2080a: Increase load image len in NAND boot

2016-06-08 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH v5 10/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-08 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v4: Merged the below patch into one: board

[U-Boot] [PATCH v5 06/10] dm: dts: ls2080aqds: Add QSPI dts node

2016-06-08 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH v5 07/10] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-06-08 Thread Yuan Yao
From: Yuan Yao In order to access QSPI flash we must asserted ISO allowing the DUT to access the full IFC domain. But deasserted the unused ISO will allowing maximum performance. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 2 ++ board/freescale

[U-Boot] [PATCH v5 04/10] armv8: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable

2016-06-08 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR flash and QIXIS can't be accessed through IFC due to pin mux. So enable I2C QIXIS access and I2C early init to read the sysclk and ddrclk. Signed-off-by: Yuan Yao --- Changed in v5: Use I2C to read the clocks instead of the hard-coded c

[U-Boot] [PATCH v5 01/10] drivers: i2c: mxc: Add early init

2016-06-08 Thread Yuan Yao
From: Yuan Yao Add early i2c init function with conservative divider when the exact clock rate is not available. Signed-off-by: Yuan Yao --- New add in v3. --- drivers/i2c/i2c_core.c | 5 + drivers/i2c/mxc_i2c.c | 27 +++ include/i2c.h | 3 +++ 3 files

[U-Boot] [PATCH v5 05/10] configs: ls2080aqds: Enable QSPI flash support

2016-06-08 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 99b0551..f917484 100644

[U-Boot] [PATCH v5 00/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-08 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Yuan Yao (10): drivers: i2c: mxc: Add early init armv8: ls2080aqds: Select QSPI CLK div via SCFG

[U-Boot] [PATCH v5 02/10] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-06-08 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v5 03/10] configs: ls2080a_common: Remove duplicate NOR configs

2016-06-08 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH v4 10/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-07 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v3: 1, Rebase to lastest code. 2, Give up to

[U-Boot] [PATCH v4 08/10] configs: ls2080a: Increase load image len in NAND boot

2016-06-07 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH v4 07/10] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-06-07 Thread Yuan Yao
From: Yuan Yao In order to access QSPI flash we must asserted ISO allowing the DUT to access the full IFC domain. But deasserted the unused ISO will allowing maximum performance. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 2 ++ board/freescale

[U-Boot] [PATCH v4 09/10] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-06-07 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- configs/ls2080aqds_nand_defconfig | 8 1 file changed, 8 insertions(+) diff --git a

[U-Boot] [PATCH v4 04/10] configs: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable

2016-06-07 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR flash and QIXIS can't be accessed through IFC due to pin mux. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h

[U-Boot] [PATCH v4 06/10] dm: dts: ls2080aqds: Add QSPI dts node

2016-06-07 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH v4 05/10] configs: ls2080aqds: Enable QSPI flash support

2016-06-07 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index a14b465..c0c2a97 100644

[U-Boot] [PATCH v4 01/10] drivers: i2c: mxc: Add early init

2016-06-07 Thread Yuan Yao
From: Yuan Yao Add early i2c init function with conservative divider when the exact clock rate is not available. Signed-off-by: Yuan Yao --- drivers/i2c/i2c_core.c | 5 + drivers/i2c/mxc_i2c.c | 27 +++ include/i2c.h | 3 +++ 3 files changed, 35

[U-Boot] [PATCH v4 03/10] configs: ls2080a_common: Remove duplicate NOR configs

2016-06-07 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH v4 02/10] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-06-07 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v4 00/10] armv8: ls2080aqds: Enable QSPI boot support

2016-06-07 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Yuan Yao (10): drivers: i2c: mxc: Add early init armv8: ls2080aqds: Select QSPI CLK div via SCFG

[U-Boot] [PATCH v3 09/11] armv8: ls2080aqds: Enable QSPI boot support

2016-06-06 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v3: 1, Rebase to lastest code. 2, Give up to

[U-Boot] [PATCH v3 04/11] configs: ls2080aqds: Enable QSPI flash support

2016-06-06 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index a14b465..c0c2a97 100644

[U-Boot] [PATCH v3 01/11] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-06-06 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v3 05/11] dm: dts: ls2080aqds: Add QSPI dts node

2016-06-06 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH v3 06/11] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-06-06 Thread Yuan Yao
From: Yuan Yao In order to access QSPI flash we must asserted ISO allowing the DUT to access the full IFC domain. But deasserted the unused ISO will allowing maximum performance. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 2 ++ board/freescale

[U-Boot] [PATCH v3 03/11] configs: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable

2016-06-06 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR flash and QIXIS can't be accessed through IFC due to pin mux. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h

[U-Boot] [PATCH v3 08/11] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-06-06 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- configs/ls2080aqds_nand_defconfig | 8 1 file changed, 8 insertions(+) diff --git a

[U-Boot] [PATCH v3 11/11] board: freescale: ls2080aqds: Enable early I2C access for QSPI boot

2016-06-06 Thread Yuan Yao
From: Yuan Yao When QSPI boot is used, board FPGA is not accessible from IFC. To use I2C interface instead, i2c needs to be initialized before knowing the exact clock rate. Signed-off-by: Yuan Yao --- New add in v3. --- board/freescale/ls2080aqds/ls2080aqds.c | 3 +++ include/configs

[U-Boot] [PATCH v3 10/11] drivers: i2c: mxc: Add early init

2016-06-06 Thread Yuan Yao
From: Yuan Yao Add early i2c init function with conservative divider when the exact clock rate is not available. Signed-off-by: Yuan Yao --- New add in v3. --- drivers/i2c/i2c_core.c | 5 + drivers/i2c/mxc_i2c.c | 27 +++ include/i2c.h | 3 +++ 3 files

[U-Boot] [PATCH v3 00/11] armv8: ls2080aqds: Enable QSPI boot support

2016-06-06 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Yuan Yao (11): armv8: ls2080aqds: Select QSPI CLK div via SCFG configs: ls2080a_common: Remove

[U-Boot] [PATCH v3 07/11] configs: ls2080a: Increase load image len in NAND boot

2016-06-06 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH v3 02/11] configs: ls2080a_common: Remove duplicate NOR configs

2016-06-06 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH 3/5] spi: fsl_qspi: Enable Spansion S25FS-S family flashes

2016-03-14 Thread Yuan Yao
From: Yuan Yao The flash type of LS2085AQDS QSPI is S25FS256S. It has special write any device register command and read any device register command. This patch enable support for those commands. Signed-off-by: Yuan Yao Signed-off-by: Prabhakar Kushwaha Signed-off-by: Yuan Yao --- drivers

[U-Boot] [PATCH 5/5] armv8/ls1043a: update the node for QSPI support

2016-03-14 Thread Yuan Yao
From: Yuan Yao The address value and size value set for QSPI dts node "reg" property have type of u64 on arm64. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls1043a.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/a

[U-Boot] [PATCH 2/5] spi: fsl_qspi: Assign AMBA mem according CS num in dts

2016-03-14 Thread Yuan Yao
From: Yuan Yao QSPI controller automatic enable the chipselect signal according the dest AMBA memory address. Now we distribute the AMBA memory zone averagely to every chipselect slave device according chipselect numbers got from dts node. Signed-off-by: Yuan Yao Signed-off-by: Prabhakar

[U-Boot] [PATCH 1/4] spi: fsl_qspi: Fix issues on arm64

2016-03-14 Thread Yuan Yao
From: Yuan Yao The address value and size value get from dts "reg" property have type of u64 on arm64. If we assign those values to "u32" variables, driver can't work correctly. Converting the type of those variables to fdt_xxx_t. Signed-off-by: Yuan Yao Signed-o

[U-Boot] [PATCH 4/5] sf: Disable 4-KB erase command for SPANSION S25FS-S family

2016-03-14 Thread Yuan Yao
From: Yuan Yao The S25FS-S family physical sectors may be configured as a hybrid combination of eight 4-kB parameter sectors at the top or bottom of the address space with all but one of the remaining sectors being uniform size. The default status of the flash is in this hybrid architecture. The

[U-Boot] [PATCH 0/5] Add QSPI support for LS2080A

2016-03-14 Thread Yuan Yao
From: Yuan Yao There is the spansion S25FS-S family flash: s25fs256s1 on LS2080QDS QSPI. Yuan Yao (5): spi: fsl_qspi: Fix issues on arm64 spi: fsl_qspi: Assign AMBA mem according CS num in dts spi: fsl_qspi: Enable Spansion S25FS-S family flashes sf: Disable 4-KB erase command for

[U-Boot] [PATCH 0/5] Add QSPI support for LS2080A

2016-03-14 Thread Yuan Yao
From: Yuan Yao There is the spansion S25FS-S family flash: s25fs256s1 on LS2080QDS QSPI. Haikun Wang (3): spi: fsl_qspi: Fix issues on arm64 spi: fsl_qspi: Assign AMBA mem according CS num in dts spi: fsl_qspi: Enable Spansion S25FS-S family flashes Yuan Yao (2): sf: Disable 4-KB erase

[U-Boot] [PATCH v2 11/11] freescale: cmd: qixis: tidy up the duplicated code

2016-03-06 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- board/freescale/common/qixis.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c index 113295f..de9daeb 100644 --- a/board/freescale/common/qixis.c +++ b

[U-Boot] [PATCH v2 09/11] armv8: ls2080aqds: Enable QSPI boot support

2016-03-06 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then we can switch to booting from QSPI memory space. Signed-off-by: Yuan Yao --- Changed in v2: merged the patch: 0009-armv8-ls2080aqds-Enable-QSPI-boot

[U-Boot] [PATCH v2 10/11] board/ls2080qds: add the procedure to deply QSPI image.

2016-03-06 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- board/freescale/ls2080aqds/README | 35 +++ 1 file changed, 35 insertions(+) diff --git a/board/freescale/ls2080aqds/README b/board/freescale/ls2080aqds/README index 6ddad92..21e8c7b 100644 --- a/board/freescale

[U-Boot] [PATCH v2 08/11] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-03-06 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- configs/ls2080aqds_nand_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a

[U-Boot] [PATCH v2 07/11] configs: ls2080a: Increase load image len in NAND boot

2016-03-06 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH v2 06/11] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-03-06 Thread Yuan Yao
From: Yuan Yao In order to access QSPI flash we must asserted ISO allowing the DUT to access the full IFC domain. But deasserted the unused ISO will allowing maximum performance. So if we want to access QSPI flash when boot from NAND, we should use the below board configuration: Boot Source

[U-Boot] [PATCH v2 05/11] dm: dts: ls2080aqds: Add QSPI dts node

2016-03-06 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH v2 03/11] configs: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable

2016-03-06 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR flash and QIXIS can't be accessed through IFC due to pin mux. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h

[U-Boot] [PATCH v2 04/11] configs: ls2080aqds: Enable QSPI flash support

2016-03-06 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 3edb0b9..3cba10a 100644

[U-Boot] [PATCH v2 01/11] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-03-06 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v2 00/11] armv8: ls2080aqds: Enable QSPI boot support

2016-03-06 Thread Yuan Yao
From: Yuan Yao This series add support for QSPI boot on LS2080AQDS. Yuan Yao (11): armv8: ls2080aqds: Select QSPI CLK div via SCFG configs: ls2080a_common: Remove duplicate NOR configs configs: ls2080aqds: disable IFC NOR & QIXIS when QSPI enable configs: ls2080aqds: Enable QSPI f

[U-Boot] [PATCH v2 02/11] configs: ls2080a_common: Remove duplicate NOR configs

2016-03-06 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH 01/12] armv8: ls2080aqds: Select QSPI CLK div via SCFG

2016-03-02 Thread Yuan Yao
From: Yuan Yao QSPI module output SCLK divisor value is configured through SCFG. Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 + board/freescale/ls2080aqds/ls2080aqds.c| 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH 02/12] configs: ls2080a_common: Remove duplicate NOR configs

2016-03-02 Thread Yuan Yao
From: Yuan Yao The NOR flash related configure options also appear in ls2080aqds.h and ls2080ardb.h, and the two files all have included ls2080a_common.h. This patch remove the duplicated options in ls2080a_common.h. Signed-off-by: Yuan Yao --- include/configs/ls2080a_common.h | 7

[U-Boot] [PATCH 06/12] armv8: ls2080aqds: Config QSPI pin mux via FPGA in NAND boot

2016-03-02 Thread Yuan Yao
From: Yuan Yao If we want to access QSPI flash when boot from NAND, we need below board configuration: Boot Source ISO1ISO2IBOOT On-board NAND 1 0 0 IFCCARD NAND0 0 1 Signed-off-by: Yuan Yao --- arch/arm/include/asm/arch-fsl-layerscape

[U-Boot] [PATCH 10/12] ls2080aqds: Enable support for boot from QSPI

2016-03-02 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 513a2e3..064e341 100644 --- a/include/configs/ls2080aqds.h +++ b/include/configs/ls2080aqds.h

[U-Boot] [PATCH 09/12] armv8: ls2080aqds: Enable QSPI boot support

2016-03-02 Thread Yuan Yao
From: Yuan Yao This patch adds QSPI boot support for LS2080AQDS board. The QSPI boot image need to be programmed into the QSPI flash first. Then the booting will start from QSPI memory space. Signed-off-by: Yuan Yao --- configs/ls2080aqds_qspi_defconfig | 10 ++ include/configs

[U-Boot] [PATCH 05/12] dm: dts: ls2080aqds: Add QSPI dts node

2016-03-02 Thread Yuan Yao
From: Yuan Yao Add QSPI controller and slave dts node for LS2080AQDS board. Signed-off-by: Yuan Yao --- arch/arm/dts/fsl-ls2080a-qds.dts | 14 ++ arch/arm/dts/fsl-ls2080a.dtsi| 10 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a-qds.dts b

[U-Boot] [PATCH 11/12] freescale: cmd: qixis: tidy up the duplicated code

2016-03-02 Thread Yuan Yao
From: Yuan Yao Signed-off-by: Yuan Yao --- board/freescale/common/qixis.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c index 113295f..de9daeb 100644 --- a/board/freescale/common/qixis.c +++ b

[U-Boot] [PATCH 04/12] configs: ls2080aqds: Enable QSPI flash support

2016-03-02 Thread Yuan Yao
From: Yuan Yao Enable QSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 3edb0b9..3cba10a 100644

[U-Boot] [PATCH 07/12] configs: ls2080a: Increase load image len in NAND boot

2016-03-02 Thread Yuan Yao
From: Yuan Yao Freescale QSPI and DSPI driver have been converted to Driver Mode. This converting bring dtb file for u-boot and this increase the size of u-boot image. LS2080A nand boot use SPL framework. This patch increase the size of image load from NAND to RAM in SPL. Signed-off-by: Yuan

[U-Boot] [PATCH 12/12] LS2080QDS: QSPI boot: fix issues.

2016-03-02 Thread Yuan Yao
From: Yuan Yao This patch is used for fix the bug below: /***/ "Synchronous Abort" handler, esr 0x86000210 ELR: fff6cfb4 LR: fff6d3f0 x0 : 0022 x1 : fff78c6f x2 : ffd0ecb0 x3 : x4 : f

[U-Boot] [PATCH 08/12] ls2080aqds_nand_defconfig: Enable QSPI & its dependence

2016-03-02 Thread Yuan Yao
From: Yuan Yao The Freescale QSPI driver has been converted to Driver Model. This patch enable FSL_QSPI and its dependence options, DM, DM_SPI, OF_CONTROL and so on. Signed-off-by: Yuan Yao --- configs/ls2080aqds_nand_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a

[U-Boot] [PATCH 00/12] Add SPI and QSPI boot for LS2080A

2016-03-02 Thread Yuan Yao
From: Yuan Yao Yuan Yao (12): armv8: ls2080aqds: Select QSPI CLK div via SCFG configs: ls2080a_common: Remove duplicate NOR configs configs: ls2080aqds: Disable IFC NOR & QIXIS when QSPI configs: ls2080aqds: Enable QSPI flash support dm: dts: ls2080aqds: Add QSPI dts node a

[U-Boot] [PATCH 03/12] configs: ls2080aqds: Disable IFC NOR & QIXIS when QSPI

2016-03-02 Thread Yuan Yao
From: Yuan Yao When QSPI is enabled, NOR Flash and QIXIS can’t be accessed through IFC due to pin muxing. Enable QIXIS accessing through I2C. Signed-off-by: Yuan Yao --- include/configs/ls2080aqds.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/ls2080aqds.h

[U-Boot] [PATCH v3 5/5] move erratum a008336 and a008514 to soc specific file

2015-12-04 Thread Yuan Yao
As the errata A008336 and A008514 do not apply to all LS series SoCs (such as LS1021A, LS1043A) we move them to an soc specific file Signed-off-by: Yuan Yao --- Changed in v3: Fix a typo issue. In function "erratum_a008514" "#ifdef CONFIG_SYS_FSL_DCSR_DDR2_

[U-Boot] [PATCH v2 4/5] armv7/fsl-ls102xa: Workaround for DDR erratum A008514

2015-12-04 Thread Yuan Yao
This is a workaround for hardware erratum. Write the value of 63b2_0042h to EDDRTQCFG will optimal the memory controller performance. The value: 63b2_0042h comes from the hardware team. Signed-off-by: Yuan Yao --- Changed in v2: Update the write value to 63b2_0042h; --- arch/arm/cpu

[U-Boot] [PATCH v3 0/5] arm: ls1021a: merge SoC specific code in a separate file

2015-12-04 Thread Yuan Yao
arm: ls1021a: merge SoC specific code in a separate file arm: ls102xa: enable all the snoop signal for masters. ls102xa: Enable snoop and DVM message requests. armv7/fsl-ls102xa: Workaround for DDR erratum A008514 Changed in v2: Update the write value to 63b2_0042h; move erratum a008336 an

[U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-04 Thread Yuan Yao
Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/soc.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c b/arch/arm/cpu/armv7/ls102xa/soc.c index 6036473..97ba6d5 100644 --- a/arch/arm/cpu/armv7/ls102xa/soc.c +++ b/arch/arm/cpu

[U-Boot] [PATCH 2/5] arm: ls102xa: enable all the snoop signal for masters.

2015-12-04 Thread Yuan Yao
Enable the IP feature's snoop signal to support hardware snoop for cache coherence. SNPCNFGCR contains the bits to drive snoop signal for various masters. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/soc.c | 8 arch/arm/include/asm/arch-ls

[U-Boot] [PATCH 1/5] arm: ls1021a: merge SoC specific code in a separate file

2015-12-04 Thread Yuan Yao
Create a soc.c file to put the code for soc special settings. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/Makefile | 1 + arch/arm/cpu/armv7/ls102xa/soc.c| 66 + arch/arm/include/asm/arch-ls102xa/ls102xa_soc.h | 12 + board

[U-Boot] [PATCH 1/5] arm: ls1021a: merge SoC specific code in a separate file

2015-12-04 Thread Yuan Yao
Create a soc.c file to put the code for soc special settings. Signed-off-by: Yuan Yao --- arch/arm/cpu/armv7/ls102xa/Makefile | 1 + arch/arm/cpu/armv7/ls102xa/soc.c| 66 + arch/arm/include/asm/arch-ls102xa/ls102xa_soc.h | 12 + board

  1   2   >