Move the Freescale QSPI driver over to driver model.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
Signed-off-by: Peng Fan peng@freescale.com
---
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
Move the Freescale DSPI driver over to driver model.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
From: haikun haikun.w...@freescale.com
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 haikun.w...@freescale.com
---
arch/arm/dts/Makefile| 3 +
arch/arm/dts/ls1021a
this requirement 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 haikun.w...@freescale.com
---
arch/arm/dts/ls1021a-qds.dts | 6 ++--
arch/arm/dts/ls1021a-twr.dts | 2 +-
arch/arm/dts/ls1021a.dtsi
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 haikun.w...@freescale.com
---
arch/arm/dts/ls1021a-qds.dts | 3 ++-
arch/arm/dts/ls1021a-twr.dts
Backport of kernel commits:
7c14f6c719de092d69c81877786e83ce7ae1a860
35faad2a1563b3d4dc983a82ac41033fe053870c
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
arch/arm/dts/skeleton64.dtsi | 13 +
1 file changed, 13 insertions(+)
create mode 100644 arch/arm
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 haikun.w...@freescale.com
---
arch/arm/dts/ls1021a-qds.dts | 14 ++
arch/arm/dts/ls1021a-twr.dts | 14 ++
arch/arm/dts
Move the Freescale DSPI driver over to driver model.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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'
- Add
From: haikun haikun.w...@freescale.com
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 haikun.w...@freescale.com
---
Changes in v2:
- Use CONFIG_LS102XA in arch/arm/dts
From: Haikun Wang haikun.w...@freescale.com
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 haikun.w...@freescale.com
---
Changes in v1: None
From: Haikun Wang haikun.w...@freescale.com
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 haikun.w...@freescale.com
Move the Freescale QSPI driver over to driver model.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
Signed-off-by: Peng Fan peng@freescale.com
---
Changes in v2:
- Fix build fail on mx6sxsabresd_spl issue
- Add configure regmap endian in NO-DM model
Changes in v1: None.
drivers/spi
Define CONFIG_DEFAULT_DEVICE_TREE for ls1021a series boards.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
configs/ls1021aqds_ddr4_nor_defconfig| 1 +
configs/ls1021aqds_nand_defconfig| 1 +
configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 +
configs
From: Haikun Wang haikun.w...@freescale.com
Enable Driver Model SPI for ls1021aqds board.
DSPI and QSPI are compatible under Driver Model SPI.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
include/configs/ls1021aqds.h | 14 +-
1 file changed, 13 insertions(+), 1 deletion
From: Haikun Wang haikun.w...@freescale.com
Enable Driver Model SPI for ls1021atwr board.
DSPI and QSPI are compatible under Driver Model SPI.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
include/configs/ls1021atwr.h | 11 ++-
1 file changed, 10 insertions(+), 1 deletion
address-cells and size-cells of root node and 'soc' node
from 2 to 1.
4. Add quadspi node.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
arch/arm/dts/Makefile| 3 +
arch/arm/dts/ls1021a-qds.dts | 47
arch/arm/dts/ls1021a-twr.dts | 31 +
arch/arm/dts/ls1021a.dtsi
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 haikun.w...@freescale.com
---
Verified with AT45DB021B
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 haikun.w...@freescale.com
---
Changes in v2:
- Move all changes inside of CONFIG_QSPI_BOOT
Changes in v1: None
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 haikun.w...@freescale.com
---
Changes in v2:
- Move all changes inside of CONFIG_QSPI_BOOT
Changes in v1: None
Add command sf info to show the information of the current SPI flash device.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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 debug
Default name of spi flash like this 0:0, update it to spi_flash@0:0.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
Default name of spi flash like this 0:0, update it to spi_flash@0:0.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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 deletions(-)
diff
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 haikun.w...@freescale.com
---
Verified with AT45DB021B
byte(s) were the same
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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 haikun.w...@freescale.com
---
arch/arm/dts/ls1021a-qds.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion
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 haikun.w...@freescale.com
---
Changes in v3:
- Remove CONFIG_SPI_FLASH_ATMEL
- IS_ENABLED(CONFIG_XXX) is only work
From: Haikun Wang haikun.w...@freescale.com
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 haikun.w...@freescale.com
Change-Id
byte(s) were the same
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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 comment
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 haikun.w...@freescale.com
---
drivers/mtd/spi/Makefile
byte(s) were the same
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
From: Haikun Wang haikun.w...@freescale.com
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 haikun.w...@freescale.com
Change-Id
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 haikun.w...@freescale.com
---
configs/ls1021aqds_qspi_defconfig | 4
configs/ls1021atwr_qspi_defconfig | 4
2 files changed, 8 insertions(+)
diff
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
status_byte.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
Add error handler when write/erase flash fail.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
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 haikun.w...@freescale.com
---
configs/ls2085aqds_defconfig | 7 +++
configs
From: Haikun Wang haikun.w...@freescale.com
Enable DSPI flash related configurations.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
include/configs/ls2085aqds.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/configs/ls2085aqds.h b/include/configs/ls2085aqds.h
From: Haikun Wang haikun.w...@freescale.com
Enable DSPI flash related configurations for LS2085ARDB.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
include/configs/ls2085ardb.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/configs/ls2085ardb.h b/include/configs
From: Haikun Wang haikun.w...@freescale.com
sst25wf040b doesn't support Auto Address Increment Programming command.
Remove SST_WR flag.
Signed-off-by: Haikun Wang b53...@freescale.com
---
Changes in V2:
- Remove extra line
drivers/mtd/spi/sf_params.c | 2 +-
1 file changed, 1 insertion(+), 1
QSPI.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
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 haikun.w...@freescale.com
---
Changes in v2:
- Add defconfig patch in this series
arch/arm/dts/ls1021a-qds.dts
From: Haikun Wang haikun.w...@freescale.com
sst25wf040b doesn't support Auto Address Increment Programming command.
Remove SST_WR flag.
Signed-off-by: Haikun Wang b53...@freescale.com
---
drivers/mtd/spi/sf_params.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers
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 haikun.w...@freescale.com
---
Changes in v2:
- Add this defconfig patch to previous dataflash driver patches series
Test log on LS1021AQDS:
= sf probe 1:0
SPI
From: Haikun Wang haikun.w...@freescale.com
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
memory. Otherwise will configure to SDHC.
Enable DSPI in u-boot hwconfig using below command:
setenv hwconfig $hwconfig;dspi
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
board/freescale/ls2085ardb/ls2085ardb.c | 47 +
1 file changed, 47 insertions
From: Haikun Wang haikun.w...@freescale.com
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
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 haikun.w...@freescale.com
---
Changes in v4:
- Add defconfig patch in this series
Changes in v3:
- Remove
From: Haikun Wang haikun.w...@freescale.com
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
From: Haikun Wang haikun.w...@freescale.com
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
From: Haikun Wang haikun.w...@freescale.com
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 haikun.w...@freescale.com
---
arch/arm/dts/fsl-ls2085a.dtsi | 120
From: Haikun Wang haikun.w...@freescale.com
Add DSPI controller dts node in fsl-ls2085a.dtsi
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
From: Haikun Wang haikun.w...@freescale.com
Add dts source files for LS2085AQDS and LS2085ARDB boards.
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
arch/arm/dts/Makefile| 2 ++
arch/arm/dts/fsl-ls2085a-qds.dts | 53
arch/arm/dts
From: Haikun Wang haikun.w...@freescale.com
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
: B, boot from vBank: 4
Signed-off-by: Haikun Wang haikun.w...@freescale.com
---
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
--- a/common/board_info.c
+++ b/common
56 matches
Mail list logo