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
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
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
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
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
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
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
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
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
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..
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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 +
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 ---
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
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'
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
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
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
56 matches
Mail list logo