[U-Boot] [PATCH] generic_board: Call "checkboard" even though the root node has a "model" property

2015-07-09 Thread Haikun Wang
ayerscape 2085a QDS Board Board: LS2085E-QDS, Board Arch: V1, Board version: B, boot from vBank: 4 Signed-off-by: Haikun Wang --- common/board_info.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/board_info.c b/common/board_info.c index 42d0641..4e5a1f7 100644

[U-Boot] [PATCH 1/3] configs: ls2085aqds: Enable DSPI flash support for LS2085AQDS

2015-07-03 Thread Haikun Wang
From: Haikun Wang Enable DSPI flash related configurations. Signed-off-by: Haikun Wang --- include/configs/ls2085aqds.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/ls2085aqds.h b/include/configs/ls2085aqds.h index e488ac8..bf5ea51 100644 --- a/include/configs

[U-Boot] [PATCH] defconfig: ls2085a: Enable FSL_DSPI, OF_CONTROL and DM support

2015-07-03 Thread Haikun Wang
Freescale DSPI driver has been converted to Driver Model. The new driver is depended on OF_CONTROL, DM, DM_SPI. This patch enable FSL_DSPI and its dependence configure options. Signed-off-by: Haikun Wang --- configs/ls2085aqds_defconfig | 7 +++ configs/ls2085ardb_defconfig | 7 +++ 2

[U-Boot] [PATCH 2/3] configs: ls2085ardb: Enable DSPI flash support for LS2085ARDB

2015-07-03 Thread Haikun Wang
From: Haikun Wang Enable DSPI flash related configurations for LS2085ARDB. Signed-off-by: Haikun Wang --- include/configs/ls2085ardb.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/ls2085ardb.h b/include/configs/ls2085ardb.h index 600261e..8cd3bf7 100644 --- a

[U-Boot] [PATCH 5/5] sf: sf_dataflash: Update probing method of old chips which not support Device ID

2015-07-02 Thread Haikun Wang
iable status_byte. Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_dataflash.c | 226 +++-- 1 file changed, 107 insertions(+), 119 deletions(-) diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 648f3ca..cd8d908 100644 --- a/dr

[U-Boot] [PATCH 3/5] sf: sf_dataflash: Remove CONFIG_SPI_DATAFLASH_WRITE_VERIFY option

2015-07-02 Thread Haikun Wang
Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_dataflash.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 8f91527..6bf628b 100644 --- a/drivers/mtd/spi/sf_dataflash.c +++ b/drivers/mtd/spi/sf_dataflash.c @@ -371,7

[U-Boot] [PATCH 4/5] sf: sf_dataflash: Change the return value of jedec_probe to int

2015-07-02 Thread Haikun Wang
Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_dataflash.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 6bf628b..648f3ca 100644 --- a/drivers/mtd/spi/sf_dataflash.c

[U-Boot] [PATCH 2/5] sf: sf_dataflash: Add error handler when flash operate fail

2015-07-02 Thread Haikun Wang
Add error handler when write/erase flash fail. Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_dataflash.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index f83f994..8f91527

[U-Boot] [PATCH 1/5] sf: sf_dataflash: Remove inline property of function dataflash_status

2015-07-02 Thread Haikun Wang
Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_dataflash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 3111f4f..f83f994 100644 --- a/drivers/mtd/spi/sf_dataflash.c +++ b/drivers/mtd/spi

[U-Boot] [PATCH v2] sf: update sst25wf040b flash params

2015-06-29 Thread Haikun Wang
From: Haikun Wang sst25wf040b doesn't support Auto Address Increment Programming command. Remove SST_WR flag. Signed-off-by: Haikun Wang --- Changes in V2: - Remove extra line drivers/mtd/spi/sf_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mt

[U-Boot] [PATCH 2/2] armv8: ls2085ardb: DSPI pin muxing configure through QIXIS CPLD

2015-06-26 Thread Haikun Wang
routing to on-board SPI memory. Otherwise will configure to SDHC. Enable DSPI in u-boot "hwconfig" using below command: setenv hwconfig "$hwconfig;dspi" Signed-off-by: Haikun Wang --- board/freescale/ls2085ardb/ls2085ardb.c | 47 + 1 file chang

[U-Boot] [PATCH 1/2] armv8: ls2085aqds: DSPI pin muxing configure through QIXIS

2015-06-26 Thread Haikun Wang
From: Haikun Wang DSPI has pin muxing with SDHC and other IPs, this patch check the value of RCW SPI_PCS_BASE and SPI_BASE_BASE fields, it also check the "hwconfig" configuration, if those pins are configured to DSPI and "hwconfig" enable DSPI, set the BRDCFG5 of QIXIS FPGA

[U-Boot] [PATCH] sf: update sst25wf040b flash params

2015-06-26 Thread Haikun Wang
From: Haikun Wang sst25wf040b doesn't support Auto Address Increment Programming command. Remove SST_WR flag. Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf_params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mt

[U-Boot] [PATCH] fdt: armv8: Fix build warnings on armv8

2015-06-26 Thread Haikun Wang
From: Haikun Wang Fix below build warnings on armv8, drivers/spi/fsl_dspi.c: In function ‘fsl_dspi_ofdata_to_platdata’: drivers/spi/fsl_dspi.c:667:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘fdt_addr_t’ [-Wformat=] debug("DSPI: regs=0x%x

[U-Boot] [PATCH] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'

2015-06-26 Thread Haikun Wang
From: Haikun Wang Signed-off-by: Haikun Wang --- arch/arm/cpu/armv8/fsl-lsch3/speed.c| 2 ++ arch/arm/include/asm/arch-fsl-lsch3/clock.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-lsch3/speed.c b/arch/arm/cpu/armv8/fsl-lsch3/speed.c index cac4f92

[U-Boot] [PATCH 06/12] fdt: armv8: Fix build warnings on armv8

2015-06-26 Thread Haikun Wang
From: Haikun Wang Fix below build warnings on armv8, drivers/spi/fsl_dspi.c: In function ‘fsl_dspi_ofdata_to_platdata’: drivers/spi/fsl_dspi.c:667:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘fdt_addr_t’ [-Wformat=] debug("DSPI: regs=0x%x

[U-Boot] [PATCH 05/12] armv8: ls2085a: Enable DSPI get input clk form 'mxc_get_clock'

2015-06-26 Thread Haikun Wang
From: Haikun Wang Signed-off-by: Haikun Wang --- arch/arm/cpu/armv8/fsl-lsch3/speed.c| 2 ++ arch/arm/include/asm/arch-fsl-lsch3/clock.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-lsch3/speed.c b/arch/arm/cpu/armv8/fsl-lsch3/speed.c index cac4f92

[U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-06-26 Thread Haikun Wang
From: Haikun Wang Bring in required device tree files for ls2085a from Linux. These are initially unchanged and have a number of pieces not needed by U-Boot. Signed-off-by: Haikun Wang --- arch/arm/dts/fsl-ls2085a.dtsi | 120 ++ 1 file changed, 120

[U-Boot] [PATCH 3/3] dm: dts: ls2085a: Add dts files for LS2085AQDS and LS2085ARDB

2015-06-26 Thread Haikun Wang
From: Haikun Wang Add dts source files for LS2085AQDS and LS2085ARDB boards. Signed-off-by: Haikun Wang --- arch/arm/dts/Makefile| 2 ++ arch/arm/dts/fsl-ls2085a-qds.dts | 53 arch/arm/dts/fsl-ls2085a-rdb.dts | 35

[U-Boot] [PATCH 2/3] dm: dts: ls2085a: Add DSPI dts node

2015-06-26 Thread Haikun Wang
From: Haikun Wang Add DSPI controller dts node in fsl-ls2085a.dtsi Signed-off-by: Haikun Wang --- arch/arm/dts/fsl-ls2085a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/fsl-ls2085a.dtsi b/arch/arm/dts/fsl-ls2085a.dtsi index f0679a8..96404c5 100644 --- a/arch

[U-Boot] [PATCH v2 5/5] armv7: ls1021a: Enable OF_CONTROL and DM support for DSPI and QSPI in defconfig

2015-06-26 Thread Haikun Wang
DSPI and QSPI only work when boot from QSPI on ls1021a. This patch only enable options in qspi boot defconfig. Signed-off-by: Haikun Wang --- Changes in v2: - Add this defconfig patch to previous dataflash driver patches series Test log on LS1021AQDS: => sf probe 1:0 SPI DataFlash: Detec

[U-Boot] [PATCH v4 3/5] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

2015-06-26 Thread Haikun Wang
Enable Driver Model SPI for ls1021aqds board. DSPI and QSPI is enabled only when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- Changes in v4: - Add defconfig patch in this series Changes in v3: - Remove CONFIG_SPI_FLASH_ATMEL - IS_ENABLED

[U-Boot] [PATCH v2 2/5] dm: ls1021aqds: dts: Use "spi_dataflash" driver instead of "spi_flash_std" for DSPI flash

2015-06-26 Thread Haikun Wang
The type of DSPI flash on ls1021aqds is AT45DB021, it has specail commands and page-size. Use the special spi flash driver instead of "spi_flash_std" driver. Signed-off-by: Haikun Wang --- Changes in v2: - Add defconfig patch in this series arch/arm/dts/ls1021a-qds.dts | 2 +- 1 fi

[U-Boot] [PATCH v4 4/5] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

2015-06-26 Thread Haikun Wang
From: Haikun Wang Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI only be enabled when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang Change-Id: I6342807da7725ae8b678952117c8758c75a61d3d Reviewed-on: http://git.am.freescale.net:8181

[U-Boot] [PATCH v6 1/5] dm: sf: Add Atmel DataFlash spi flash driver

2015-06-26 Thread Haikun Wang
000 42000 Total of 270336 byte(s) were the same Signed-off-by: Haikun Wang --- Verified with AT45DB021B on LS1021AQDS. Changes in v6: - Add defconfig patch in this series Changes in v5: - Change CONFIG_DM_SF_DATAFLASH to CONFIG_SF_DATAFLASH Changes in v4: - Use dev_get_priv and dev_get_uclass_p

[U-Boot] [PATCH] armv7: ls1021a: Enable OF_CONTROL and DM support for DSPI and QSPI in defconfig

2015-06-26 Thread Haikun Wang
DSPI and QSPI only work when boot from QSPI on ls1021a. This patch only enable options in qspi boot defconfig. Signed-off-by: Haikun Wang --- configs/ls1021aqds_qspi_defconfig | 4 configs/ls1021atwr_qspi_defconfig | 4 2 files changed, 8 insertions(+) diff --git a/configs

[U-Boot] [PATCH v2] arm: ls102xa: Enable CONFIG_DEFAULT_DEVICE_TREE to defconfig for ls1021a

2015-05-25 Thread Haikun Wang
QSPI. Signed-off-by: Haikun Wang --- Changes in v2: - Enable CONFIG_OF_CONTROL - Using the savedefconfig feature - Only Changeing the defconfig when boot from QSPI Changes in v1: None configs/ls1021aqds_qspi_defconfig | 2 ++ configs/ls1021atwr_qspi_defconfig | 2 ++ 2 files changed, 4 insertions

[U-Boot] [PATCH v3 4/4] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

2015-05-18 Thread Haikun Wang
From: Haikun Wang Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI only be enabled when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang Change-Id: I6342807da7725ae8b678952117c8758c75a61d3d Reviewed-on: http://git.am.freescale.net:8181

[U-Boot] [PATCH v3 3/4] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

2015-05-18 Thread Haikun Wang
Enable Driver Model SPI for ls1021aqds board. DSPI and QSPI is enabled only when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- Changes in v3: - Remove CONFIG_SPI_FLASH_ATMEL - IS_ENABLED(CONFIG_XXX) is only work with configure option in

[U-Boot] [PATCH v5 1/4] dm: sf: Add Atmel DataFlash spi flash driver

2015-05-18 Thread Haikun Wang
000 42000 Total of 270336 byte(s) were the same Signed-off-by: Haikun Wang --- Verified with AT45DB021B on LS1021AQDS. Changes in v5: - Change CONFIG_DM_SF_DATAFLASH to CONFIG_SF_DATAFLASH Changes in v4: - Use dev_get_priv and dev_get_uclass_priv - Add test log to commit message Changes in v3

[U-Boot] [PATCH v1 2/4] dm: ls1021aqds: dts: Use "spi_dataflash" driver instead of "spi_flash_std" for DSPI flash

2015-05-18 Thread Haikun Wang
The type of DSPI flash on ls1021aqds is AT45DB021, it has specail commands and page-size. Use the special spi flash driver instead of "spi_flash_std" driver. Signed-off-by: Haikun Wang --- arch/arm/dts/ls1021a-qds.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v4] dm: sf: Add Atmel DataFlash spi flash driver

2015-05-14 Thread Haikun Wang
000 42000 Total of 270336 byte(s) were the same Signed-off-by: Haikun Wang --- Verified with AT45DB021B on LS1021AQDS. Changes in v4: - Use dev_get_priv and dev_get_uclass_priv - Add test log to commit message Changes in v3: - 1. Rename file spi_dataflash.c to sf_dataflash.c - 2. Add

[U-Boot] [PATCH v2] dm: sf: Update default name of spi flash in structure udevice

2015-05-05 Thread Haikun Wang
Default name of spi flash like this "0:0", update it to "spi_flash@0:0". Signed-off-by: Haikun Wang --- Changes in v2: - Increase the size of array "name" to 30 Changes in v1: None drivers/mtd/spi/sf-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[U-Boot] [PATCH v3] dm: sf: Add Atmel DataFlash spi flash driver

2015-05-05 Thread Haikun Wang
Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver Model. Signed-off-by: Haikun Wang --- Verified with AT45DB021B. Changes in v3: - 1. Rename

[U-Boot] [PATCH v1 2/2] dm: sf: Update default name of spi flash in structure udevice

2015-04-29 Thread Haikun Wang
Default name of spi flash like this "0:0", update it to "spi_flash@0:0". Signed-off-by: Haikun Wang --- drivers/mtd/spi/sf-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c index 4b25902..

[U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-04-29 Thread Haikun Wang
Add command "sf info" to show the information of the current SPI flash device. Signed-off-by: Haikun Wang --- In current sf driver, we show the debug information during the flash probe period. In case of without DM SPI, we need to run command "sf probe" to get the debu

[U-Boot] [PATCH v2] dm: sf: Add Atmel DataFlash spi flash driver

2015-04-24 Thread Haikun Wang
Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver Model. Signed-off-by: Haikun Wang --- Verified with AT45DB021B. Changes in v2: - 1. Correct

[U-Boot] [PATCH 3/3 v2] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

2015-04-21 Thread Haikun Wang
Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI only be enabled when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- Changes in v2: - Move all changes inside of CONFIG_QSPI_BOOT Changes in v1: None include/configs/ls1021atwr.h

[U-Boot] [PATCH 2/3 v2] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

2015-04-21 Thread Haikun Wang
Enable Driver Model SPI for ls1021aqds board. DSPI and QSPI is enabled only when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- Changes in v2: - Move all changes inside of CONFIG_QSPI_BOOT Changes in v1: None include/configs/ls1021aqds.h

[U-Boot] [PATCH v1] dm: sf: Add Atmel DataFlash spi flash driver

2015-04-17 Thread Haikun Wang
Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver Model. Signed-off-by: Haikun Wang --- drivers/mtd/spi/Makefile| 1 + drivers/mtd

[U-Boot] [PATCH v2] dm: spi: Convert Freescale QSPI driver to driver model

2015-03-31 Thread Haikun Wang
Move the Freescale QSPI driver over to driver model. Signed-off-by: Haikun Wang Signed-off-by: Peng Fan --- Changes in v2: - Fix build fail on mx6sxsabresd_spl issue - Add configure regmap endian in NO-DM model Changes in v1: None. drivers/spi/fsl_qspi.c | 985

[U-Boot] [PATCH 3/3 v1] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

2015-03-26 Thread Haikun Wang
From: Haikun Wang Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- include/configs/ls1021atwr.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1021atwr.h b

[U-Boot] [PATCH 1/3 v1] arm: ls102xa: Enable CONFIG_DEFAULT_DEVICE_TREE to defconfig for ls1021a

2015-03-26 Thread Haikun Wang
Define CONFIG_DEFAULT_DEVICE_TREE for ls1021a series boards. Signed-off-by: Haikun Wang --- configs/ls1021aqds_ddr4_nor_defconfig| 1 + configs/ls1021aqds_nand_defconfig| 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021aqds_nor_defconfig

[U-Boot] [PATCH 2/3 v1] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

2015-03-26 Thread Haikun Wang
From: Haikun Wang Enable Driver Model SPI for ls1021aqds board. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang --- include/configs/ls1021aqds.h | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1021aqds.h b

[U-Boot] [PATCH 2/2 v1] sf: Update AT45DB021D flash chip parameters

2015-03-25 Thread Haikun Wang
From: Haikun Wang AT45DB021D flash size is 1024*page_size, page_size is 256bytes or 264bytes. In current params_table its size is 64*1024*8, recorrect it. Add AT45DB_CMD flag for AT45DB021D. Signed-off-by: Haikun Wang --- Changes in v1: None drivers/mtd/spi/sf_params.c | 3 ++- 1 file

[U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-25 Thread Haikun Wang
From: Haikun Wang Atmel AT45DB series devices commands is different from common spi flash commands. This patch add support for AT45DB special commands. Add a flag AT45DB_CMD to control whether use those commands. Signed-off-by: Haikun Wang --- Changes in v1: None drivers/mtd/spi

[U-Boot] [PATCH 2/5 v2] dm: ls1021a: Bring in ls1021a dts files from linux kernel

2015-03-25 Thread Haikun Wang
From: haikun Bring in required device tree files for ls1021a from Linux. These are initially unchanged and have a number of pieces not needed by U-Boot. Signed-off-by: Haikun Wang --- Changes in v2: - Use CONFIG_LS102XA in arch/arm/dts/Makefile Changes in v1: None arch/arm/dts/Makefile

[U-Boot] [PATCH v3] dm: spi: Convert Freescale DSPI driver to driver model

2015-03-24 Thread Haikun Wang
Move the Freescale DSPI driver over to driver model. Signed-off-by: Haikun Wang --- Changes in v3: - Coding style cleanup - Remove cur_slave_plat in structure fsl_dspi_priv - Change arguments of 'claim_bus' and 'release_bus' - Remove 'fsl_dspi_child_post_remove'

[U-Boot] [PATCH 5/5 v1] dm: ls1021a: dts: Add QSPI dts node

2015-03-24 Thread Haikun Wang
Add QSPI controller dts node in ls1021a.dtsi. Add QSPI slave device dts node in ls1021a-twr.dts and ls1021a-qds.dts. Signed-off-by: Haikun Wang --- arch/arm/dts/ls1021a-qds.dts | 14 ++ arch/arm/dts/ls1021a-twr.dts | 14 ++ arch/arm/dts/ls1021a.dtsi| 11

[U-Boot] [PATCH 4/5 v1] dm: ls1021a: dts: Update DSPI node to support DM SPI

2015-03-24 Thread Haikun Wang
Update DSPI controller node in ls1021a.dtsi. Update flash device node in ls1021a-qds.dts. Ls1021a-twr board doesn't support DSPI, so remove DSPI node in ls1021a-twr.dts. Signed-off-by: Haikun Wang --- arch/arm/dts/ls1021a-qds.dts | 3 ++- arch/arm/dts/ls1021a-twr.dts | 15 ---

[U-Boot] [PATCH 3/5 v1] dm: ls1021a: dts: Change address_cells and size_cells from 2 to 1

2015-03-24 Thread Haikun Wang
ement now and u-boot fdtdec_get_xxx interfaces can't support property whose size is 'u64' completely. So make this change. Signed-off-by: Haikun Wang --- arch/arm/dts/ls1021a-qds.dts | 6 ++-- arch/arm/dts/ls1021a-twr.dts | 2 +- arch/arm/dts/ls1021a.dtsi| 72 +

[U-Boot] [PATCH 2/5] dm: ls1021a: Bring in ls1021a dts files from linux kernel

2015-03-24 Thread Haikun Wang
From: haikun Bring in required device tree files for ls1021a from Linux. These are initially unchanged and have a number of pieces not needed by U-Boot. Signed-off-by: Haikun Wang --- arch/arm/dts/Makefile| 3 + arch/arm/dts/ls1021a-qds.dts | 201 +++ arch/arm

[U-Boot] [PATCH 1/5 v1] dm: arm: Bring in skeleton64 device tree file from Linux

2015-03-24 Thread Haikun Wang
Backport of kernel commits: 7c14f6c719de092d69c81877786e83ce7ae1a860 35faad2a1563b3d4dc983a82ac41033fe053870c Signed-off-by: Haikun Wang --- arch/arm/dts/skeleton64.dtsi | 13 + 1 file changed, 13 insertions(+) create mode 100644 arch/arm/dts/skeleton64.dtsi diff

[U-Boot] [PATCH] dm: ls1021a: Bring in ls1021a dts files from linux kernel

2015-03-23 Thread Haikun Wang
cells and size-cells of root node and 'soc' node from 2 to 1. 4. Add quadspi node. Signed-off-by: Haikun Wang --- arch/arm/dts/Makefile| 3 + arch/arm/dts/ls1021a-qds.dts | 47 arch/arm/dts/ls1021a-twr.dts | 31 + arch

[U-Boot] [PATCH v1] dm: spi: Convert Freescale QSPI driver to driver model

2015-03-17 Thread Haikun Wang
Move the Freescale QSPI driver over to driver model. Signed-off-by: Haikun Wang Signed-off-by: Peng Fan --- This patch adds DM support for FSL QSPI driver. Now this driver can support both DM frame and old SPI frame. Driver structure like below: QSPI driver common code #ifndef CONFIG_DM_SPI

[U-Boot] [PATCH v2] dm: spi: Convert Freescale DSPI driver to driver model

2015-03-09 Thread Haikun Wang
Move the Freescale DSPI driver over to driver model. Signed-off-by: Haikun Wang --- Changes in v2: - Coding style cleanup - Add some comments - Use structures for I/O access - Handle timeout case in 'dspi_tx' and 'dspi_rx'