Pull request: u-boot-spi/master
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.
The following changes since commit c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:
CPCI4052: Remove CONFIG_SYS_LONGHELP (2015-06-18 16:19:00 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
for you to fetch changes up to 1070bf38a5c92c8d1a77b26380988957890ba6de:
mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
----------------------------------------------------------------
Daniel Schwierzeck (1):
mtd, spi: Add MTD layer driver
Haikun Wang (1):
arm: ls102xa: Enable Driver Model SPI for ls1021atwr
Haikun.Wang at freescale.com (3):
dm: sf: Add Atmel DataFlash spi flash driver
arm: dts: s1021a-qds: Update dspiflash compatible to use "spi_dataflash"
arm: ls102xa: Enable Driver Model SPI for ls1021aqds
Heiko Schocher (3):
mtd, nand: Move common functions from cmd_nand.c to common place spi, sf: Use offset and size in sf cmd from mtdpartition mtd, spi: Check if flash pointer is used
README | 9 + arch/arm/dts/ls1021a-qds.dts | 2 +- common/cmd_nand.c | 148 ++------- common/cmd_onenand.c | 19 +- common/cmd_sf.c | 61 ++-- common/cmd_test.c | 12 +- drivers/mtd/Makefile | 4 +- drivers/mtd/mtd_uboot.c | 99 ++++++ drivers/mtd/spi/Makefile | 2 + drivers/mtd/spi/sf_dataflash.c | 711 +++++++++++++++++++++++++++++++++++++++++ drivers/mtd/spi/sf_internal.h | 5 + drivers/mtd/spi/sf_mtd.c | 104 ++++++ drivers/mtd/spi/sf_probe.c | 11 +- include/configs/ls1021aqds.h | 13 +- include/configs/ls1021atwr.h | 10 +- include/linux/mtd/mtd.h | 5 + include/vsprintf.h | 2 + lib/vsprintf.c | 16 + 18 files changed, 1055 insertions(+), 178 deletions(-) create mode 100644 drivers/mtd/mtd_uboot.c create mode 100644 drivers/mtd/spi/sf_dataflash.c create mode 100644 drivers/mtd/spi/sf_mtd.c
Quoted 12 lines · Jagan Teki
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.The following changes since commit
c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:CPCI4052: Remove
CONFIG_SYS_LONGHELP(2015-06-18 16:19:00 -0400)
Quoted 8 lines
are available in the git repository at:
git://git.denx.de/u-boot-spi.gitmasterfor you to fetch changes up to
1070bf38a5c92c8d1a77b26380988957890ba6de:mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
This introduces build problems on ls1021atwr_qspi and ls1021aqds_qspi.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150624/011116de/attachment.sig>
Hello Tom,
Am 25.06.2015 um 01:31 schrieb Tom Rini:
Quoted 16 lines · Jagan Teki
Quoted 15 lines
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.The following changes since commit
c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:CPCI4052: Remove CONFIG_SYS_LONGHELP (2015-06-18 16:19:00 -0400)are available in the git repository at:
Quoted 8 lines
Quoted 6 lines
git://git.denx.de/u-boot-spi.gitmasterfor you to fetch changes up to
1070bf38a5c92c8d1a77b26380988957890ba6de:mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
This introduces build problems on
ls1021atwr_qspiandls1021aqds_qspi.
Could you provide a log?
I see, based on current mainline:
commit 325849ff3d4adeebb8f8f9bc5db950724df9bc21
Merge: 8c65a2f de45149
Author: Tom Rini <[email protected]>
Date: Fri Jun 19 14:21:32 2015 -0400
Merge git://git.denx.de/u-boot-usb
pollux:u-boot hs [20150527] $ make mrproper
CLEAN examples/standalone CLEAN tools CLEAN tools/lib tools/common CLEAN include/bmp_logo.h include/bmp_logo_data.h u-boot.lds u-boot.bin u-boot.srec u-boot.map u-boot.cfg u-boot System.map CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config include/generated CLEAN .config include/autoconf.mk.dep include/autoconf.mk include/config.h
pollux:u-boot hs [20150527] $ make ls1021atwr_qspi_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config # pollux:u-boot hs [20150527] $ make -s all pollux:u-boot hs [20150527] $ make mrproper m CLEAN examples/standalone a CLEAN tools k CLEAN tools/lib tools/common CLEAN include/bmp_logo.h include/bmp_logo_data.h u-boot.lds u-boot.bin u-boot.srec u-boot.map u-boot.cfg u-boot System.map e ls1021aqds_qspi_ CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config include/generated d CLEAN .config include/autoconf.mk.dep include/autoconf.mk include/config.h pollux:u-boot hs [20150527] $ make ls1021aqds_qspi_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf # # configuration written to .config # pollux:u-boot hs [20150527] $ make -s all pollux:u-boot hs [20150527] $
Thanks!
bye,
Heiko
Quoted 8 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Quoted 16 lines · Tom Rini
Quoted 14 lines · Jagan Teki
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.The following changes since commit
c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:CPCI4052: Remove
CONFIG_SYS_LONGHELP(2015-06-18 16:19:00 -0400)are available in the git repository at:
Quoted 8 lines
Quoted 6 lines
git://git.denx.de/u-boot-spi.gitmasterfor you to fetch changes up to
1070bf38a5c92c8d1a77b26380988957890ba6de:mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
This introduces build problems on
ls1021atwr_qspiandls1021aqds_qspi.
Don't know what it causes, I applied manually all 8 patches on master and I couldn't
see any issues.
thanks!
Signature · 1 line
Jagan | openedev.
Quoted 21 lines · Jagan Teki
Quoted 20 lines · Tom Rini
Quoted 18 lines · Jagan Teki
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.The following changes since commit
c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:CPCI4052: Remove
CONFIG_SYS_LONGHELP(2015-06-18 16:19:00 -0400)are available in the git repository at:
git://git.denx.de/u-boot-spi.gitmasterfor you to fetch changes up to
1070bf38a5c92c8d1a77b26380988957890ba6de:
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
This introduces build problems on
ls1021atwr_qspiandls1021aqds_qspi.Don't know what it causes, I applied manually all 8 patches on master and I couldn't
see any issues.
Same for both:
arm: + ls1021atwr_qspi
+(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe':
+(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c:480:54: error: dereferencing pointer to i
ncomplete type
+(ls1021atwr_qspi) debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
+(ls1021atwr_qspi) ^
+(ls1021atwr_qspi) include/common.h:109:26: note: in definition of macro 'debug_cond'
+(ls1021atwr_qspi) printf(pr_fmt(fmt), ##args); \
+(ls1021atwr_qspi) ^
+(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c:480:2: note: in expansion of macro 'debug
'
+(ls1021atwr_qspi) ^
+(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c: In function 'spi_flash_free':
+(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c:47:29: error: 'struct spi_slave' has no member named 'dev'
+(ls1021atwr_qspi) spi_flash_remove(flash->spi->dev);
+(ls1021atwr_qspi) ^
+(ls1021atwr_qspi) ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode,
+(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c:66:15: error: 'struct spi_slave' has no member named 'dev'
+(ls1021atwr_qspi) *devp = slave->dev;
+(ls1021atwr_qspi) ^
+(ls1021atwr_qspi) make[2]: *** [drivers/mtd/spi/sf_probe.o] Error 1
+(ls1021atwr_qspi) make[2]: *** [drivers/mtd/spi/sf-uclass.o] Error 1
+(ls1021atwr_qspi) make[1]: *** [drivers/mtd/spi] Error 2
+(ls1021atwr_qspi) ret = spi_find_bus_and_cs(bus, cs, &bus_dev, &new);
+(ls1021atwr_qspi) make: *** [sub-make] Error 2
w+(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c: In function 'spi_flash_probe_bus_cs':
w+(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c:61:2: warning: implicit declaration of function 'spi_get_bus_and_cs' [-Wimplicit-function-declaration] w+(ls1021atwr_qspi) common/cmd_sf.c: In function 'do_spi_flash_probe':
w+(ls1021atwr_qspi) common/cmd_sf.c:123:2: warning: implicit declaration of function 'spi_find_bus_and_cs' [-Wimplicit-function-declaration]
Because CONFIG_DM is not set, and before the SPI patches this is fine but now it's causing this failure.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150625/21169900/attachment.sig>
Quoted 62 lines · Tom Rini
Quoted 21 lines · Jagan Teki
Quoted 20 lines · Tom Rini
Quoted 18 lines · Jagan Teki
Hi Tom,
Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports.
thanks!
Jagan.The following changes since commit
c6265f7f3410b5e5763181cdd123a3f6fcd9fd58:CPCI4052: Remove
CONFIG_SYS_LONGHELP(2015-06-18 16:19:00 -0400)are available in the git repository at:
git://git.denx.de/u-boot-spi.gitmasterfor you to fetch changes up to
1070bf38a5c92c8d1a77b26380988957890ba6de:Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
mtd, spi: Check if flash pointer is used (2015-06-23 01:13:23 +0530)
This introduces build problems on
ls1021atwr_qspiandls1021aqds_qspi.Don't know what it causes, I applied manually all 8 patches on master and I couldn't
see any issues.Same for both:
arm: + ls1021atwr_qspi(quoted diff) +2
-0+(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe': +(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c:480:54: error: dereferencing pointer to incomplete type
(quoted diff) +6
-0+(ls1021atwr_qspi) debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs); +(ls1021atwr_qspi) ^ +(ls1021atwr_qspi) include/common.h:109:26: note: in definition of macro 'debug_cond' +(ls1021atwr_qspi) printf(pr_fmt(fmt), ##args); \ +(ls1021atwr_qspi) ^ +(ls1021atwr_qspi) drivers/mtd/spi/sf_probe.c:480:2: note: in expansion of macro 'debug'
(quoted diff) +14
-0+(ls1021atwr_qspi) ^ +(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c: In function 'spi_flash_free': +(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c:47:29: error: 'struct spi_slave' has no member named 'dev' +(ls1021atwr_qspi) spi_flash_remove(flash->spi->dev); +(ls1021atwr_qspi) ^ +(ls1021atwr_qspi) ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode, +(ls1021atwr_qspi) drivers/mtd/spi/sf-uclass.c:66:15: error: 'struct spi_slave' has no member named 'dev' +(ls1021atwr_qspi) *devp = slave->dev; +(ls1021atwr_qspi) ^ +(ls1021atwr_qspi) make[2]: *** [drivers/mtd/spi/sf_probe.o] Error 1 +(ls1021atwr_qspi) make[2]: *** [drivers/mtd/spi/sf-uclass.o] Error 1 +(ls1021atwr_qspi) make[1]: *** [drivers/mtd/spi] Error 2 +(ls1021atwr_qspi) ret = spi_find_bus_and_cs(bus, cs, &bus_dev, &new); +(ls1021atwr_qspi) make: *** [sub-make] Error 2w+(ls1021atwr_qspi)
drivers/mtd/spi/sf-uclass.c: In function 'spi_flash_probe_bus_cs':
w+(ls1021atwr_qspi)drivers/mtd/spi/sf-uclass.c:61:2: warning: implicit declaration of function 'spi_get_bus_and_cs' [-Wimplicit-function-declaration] w+(ls1021atwr_qspi)common/cmd_sf.c: In function 'do_spi_flash_probe':
w+(ls1021atwr_qspi)common/cmd_sf.c:123:2: warning: implicit declaration of function 'spi_find_bus_and_cs' [-Wimplicit-function-declaration]
Quoted 2 lines
Because
CONFIG_DMis not set, and before the SPI patches this is fine but now it's causing this failure.
Looks like some other dependencies about CONFIG_DM, let me look at it. and will come back.
thanks!
Signature · 1 line
Jagan | openedev.