Skip to contentSkip to conversation

Pull request: nand flash master

U-Boot Scott Wood 3 participants 7 messages Aug 26, 2015 – Aug 27, 2015

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

The following changes since commit c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -0500)

----------------------------------------------------------------
Ezequiel Garcia (1):
mtd: Introduce mtd_block_isreserved()

Peng Fan (2):
mtd: nand: mxs support oobsize bigger than 512
mtd: nand: mxs invalidate dcache before DMA read

Scott Wood (2):
nand: Remove __UBOOT__ ifdefs
nand: Sync with Linux v4.1

Siva Durga Prasad Paladugu (1):
mtd: nand: Increase max sizes of OOB and Page size

Stefan Roese (2):
mtd: nand: Add mvebu (PXA / AXP / A38x) NAND device driver
arm: mvebu: Enable NAND on db-mv784mp-gp

 arch/arm/include/asm/imx-common/regs-bch.h |    2 +
 configs/db-mv784mp-gp_defconfig            |    1 +
 drivers/mtd/mtdcore.c                      |   14 +-
 drivers/mtd/mtdpart.c                      |    9 +
 drivers/mtd/nand/Kconfig                   |    7 +
 drivers/mtd/nand/Makefile                  |    2 +
 drivers/mtd/nand/atmel_nand_ecc.h          |    3 +
 drivers/mtd/nand/denali.c                  |  209 ++--
 drivers/mtd/nand/denali.h                  |    8 +-
 drivers/mtd/nand/docg4.c                   |    6 +-
 drivers/mtd/nand/fsl_elbc_nand.c           |   14 +
 drivers/mtd/nand/fsl_ifc_nand.c            |   33 +-
 drivers/mtd/nand/mxs_nand.c                |   38 +-
 drivers/mtd/nand/nand_base.c               |  615 +++--------
 drivers/mtd/nand/nand_bbt.c                |   75 +-
 drivers/mtd/nand/nand_ids.c                |   10 +-
 drivers/mtd/nand/nand_timings.c            |  252 +++++
 drivers/mtd/nand/pxa3xx_nand.c             | 1621 ++++++++++++++++++++++++++++
 drivers/mtd/nand/pxa3xx_nand.h             |   64 ++
 include/configs/db-mv784mp-gp.h            |    5 +
 include/fsl_ifc.h                          |    2 +
 include/linux/mtd/mtd.h                    |    4 +-
 include/linux/mtd/nand.h                   |  126 ++-
 23 files changed, 2448 insertions(+), 672 deletions(-)
 create mode 100644 drivers/mtd/nand/nand_timings.c
 create mode 100644 drivers/mtd/nand/pxa3xx_nand.c
 create mode 100644 drivers/mtd/nand/pxa3xx_nand.h
#1 lore raw
Quoted 4 lines · Scott Wood

The following changes since commit c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

Quoted 8 lines

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -0500)

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

Which I'm hoping can be tuned to re-fit size constraints again easily enough.

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/20150826/1a70a5a8/attachment.sig>
author
#2 lore raw
Quoted 17 lines · Tom Rini
Quoted 5 lines · Scott Wood

The following changes since commit
c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

Quoted 9 lines

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -
0500)

Quoted 8 lines

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

Which I'm hoping can be tuned to re-fit size constraints again easily enough.

They built OK for me, so they must be close enough that the toolchain makes a difference.

-Scott

#3 lore raw
Quoted 24 lines · Scott Wood
Quoted 23 lines · Tom Rini
Quoted 5 lines · Scott Wood

The following changes since commit
c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

Quoted 9 lines

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -
0500)

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

Quoted 5 lines
Quoted 2 lines

Which I'm hoping can be tuned to re-fit size constraints again easily enough.

They built OK for me, so they must be close enough that the toolchain makes a difference.

Indeed. I'm using arm-none-eabi from Debian on that test box (since it will also build the armv7m targets).

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/20150826/8bc64fd5/attachment.sig>
#4 lore raw

2015-08-27 3:06 GMT+09:00 Tom Rini <[email protected]>:

Quoted 19 lines · Scott Wood
Quoted 18 lines · Tom Rini
Quoted 17 lines · Scott Wood
Quoted 15 lines

The following changes since commit
c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -
0500)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

These are my boards.

I will do something with them.

Signature · 2 lines
Best Regards
Masahiro Yamada
#5 lore raw
In reply to Tom Rini

Hi Tom, Scott,

2015-08-27 3:06 GMT+09:00 Tom Rini <[email protected]>:

Quoted 25 lines · Scott Wood
Quoted 24 lines · Tom Rini
Quoted 23 lines · Scott Wood
Quoted 6 lines

The following changes since commit
c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

Quoted 9 lines

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -
0500)

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Which I'm hoping can be tuned to re-fit size constraints again easily enough.

They built OK for me, so they must be close enough that the toolchain makes a difference.

Indeed. I'm using arm-none-eabi from Debian on that test box (since it will also build the armv7m targets).

I've sent a patch to fix the root cause of this problem.
http://patchwork.ozlabs.org/patch/511211/

Only my boards (ph1_ld4, ph1_sld8, ph1_pro4) define CONFIG_SPL_NAND_DENALI, and I tested the patch on them.

So, this patch should be safe.

Is it OK to apply it quickly?

Signature · 2 lines
Best Regards
Masahiro Yamada
#6 lore raw
Quoted 42 lines · Masahiro Yamada

Hi Tom, Scott,

2015-08-27 3:06 GMT+09:00 Tom Rini <[email protected]>:

Quoted 25 lines · Scott Wood
Quoted 24 lines · Tom Rini
Quoted 23 lines · Scott Wood
Quoted 6 lines

The following changes since commit
c851a2458fbc12495f4f786d4eabb612850a5143:

Merge git://git.denx.de/u-boot-socfpga (2015-08-23 20:44:25 -0400)

Quoted 9 lines

are available in the git repository at:

git://git.denx.de/u-boot-nand-flash.git

for you to fetch changes up to ecfb8768b16ebf6781ee0df45742674bda8a9543:

mtd: nand: mxs invalidate dcache before DMA read (2015-08-25 22:53:59 -
0500)

Applied to u-boot/master, thanks!

But please note that I now see:
+(ph1_sld8,ph1_ld4,ph1_pro4) arm-none-eabi-ld.bfd: SPL image plus BSS too big

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Which I'm hoping can be tuned to re-fit size constraints again easily enough.

They built OK for me, so they must be close enough that the toolchain makes a difference.

Indeed. I'm using arm-none-eabi from Debian on that test box (since it will also build the armv7m targets).

I've sent a patch to fix the root cause of this problem.
http://patchwork.ozlabs.org/patch/511211/

Quoted 7 lines

Only my boards (ph1_ld4, ph1_sld8, ph1_pro4) define CONFIG_SPL_NAND_DENALI, and I tested the patch on them.

So, this patch should be safe.

Is it OK to apply it quickly?

Yes it is, thanks!

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/20150827/ebb84e2a/attachment.sig>