Skip to content

RFC MXC: Add NAND support for i.MX31

Magnus Lilja u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4MX31: Add struct definition for clock control module in i.MX31.include/asm-arm/arch-mx31/mx31-regs.h+41 -00 replies
2/4mxc_nand: Update driver to work with i.MX31.drivers/mtd/nand/mxc_nand.c+7 -10 replies
3/4MX31: Activate NAND support for i.MX31 Litekit board.include/configs/imx31_litekit.h+11 -00 replies
4/4MXC: Reorganize 16 bit nand detection.drivers/mtd/nand/mxc_nand.c include/asm-arm/arch-mx27/imx-regs.h include/asm-arm/arch-mx31/mx31-regs.h+28 -101 reply
4/4MXC: Reorganize 16 bit nand detection.+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC 0/4] MXC: Add NAND support for i.MX31

Hi all,

This series adds NAND support for i.MX31 using the mxc_nand that was added for i.MX27. The same NAND Flash Controller is used in i.MX31.

I've done some limited run-time testing on the Litekit using small page NAND and it seems to work.

I have embedded a question in patch #2 and #4, this relates to where the 16 bit SoC specific auto detection code shall be placed.

Once I've received input on the open question I will clean up the series and do the necessary MAKEALL tests (not done at the moment), add signed-off-by and re-submit.

On a separate note, the Linux version of mxc_nand.c is undergoing updates (don't think the patches have been accepted yet) and unfortunately it's not just a matter of copying the new version since the uboot version was converted to use readw(&host->regs->register) instead of readw(host->regs + REGISTER).
But in any case, there may be things to import to u-boot.

Regards, Magnus

Magnus Lilja (4):
MX31: Add struct definition for clock control module in i.MX31.
mxc_nand: Update driver to work with i.MX31.
MX31: Activate NAND support for i.MX31 Litekit board.
MXC: Reorganize 16 bit nand detection.

 drivers/mtd/nand/mxc_nand.c           |    4 +--
 include/asm-arm/arch-mx27/imx-regs.h  |   13 ++++++++
 include/asm-arm/arch-mx31/mx31-regs.h |   54 +++++++++++++++++++++++++++++++++
 include/configs/imx31_litekit.h       |   11 +++++++
 4 files changed, 79 insertions(+), 3 deletions(-)