Skip to content

MX6: SPL NAND support

Tim Harvey u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11SPL: NAND: remove CONFIG_SYS_NAND_PAGE_SIZEcommon/spl/spl_nand.c+1 -13 replies
1/11SPL: NAND: remove CONFIG_SYS_NAND_PAGE_SIZE+0 -01 reply
2/11SPL: NAND: add support for mxs nanddrivers/mtd/Makefile drivers/mtd/nand/Makefile drivers/mtd/nand/mxs_nand_spl.c +1 more+67 -01 reply
3/11MX6: provide linker script for SPLarch/arm/cpu/armv7/mx6/u-boot-spl.lds+52 -02 replies
3/11MX6: provide linker script for SPL+0 -01 reply
4/11MX6: add common SPL configurationinclude/configs/imx6_spl.h+64 -01 reply
4/11MX6: add common SPL configuration+0 -02 replies
5/11MX6: add boot device support SPLarch/arm/cpu/armv7/mx6/soc.c arch/arm/include/asm/arch-mx6/spl.h arch/arm/include/asm/imx-common/boot_mode.h+99 -01 reply
5/11MX6: add boot device support SPL+0 -01 reply
6/11MX6: add struct for sharing data between SPL and ubootarch/arm/include/asm/arch-mx6/sys_proto.h+5 -02 replies
6/11MX6: add struct for sharing data between SPL and uboot+0 -03 replies
6/11MX6: add struct for sharing data between SPL and uboot+0 -01 reply
6/11MX6: add struct for sharing data between SPL and uboot+0 -01 reply
7/11MX6: use macro building for MX6Q/MX6DL iomux regsarch/arm/include/asm/arch-mx6/mx6-ddr.h arch/arm/include/asm/arch-mx6/mx6dl-ddr.h arch/arm/include/asm/arch-mx6/mx6q-ddr.h+108 -851 reply
7/11MX6: use macro building for MX6Q/MX6DL iomux regs+0 -06 replies
7/11MX6: use macro building for MX6Q/MX6DL iomux regs+0 -00 replies
7/11MX6: use macro building for MX6Q/MX6DL iomux regs+0 -00 replies
8/11MX6: add mmdc configuration for MX6Q/MX6DLarch/arm/cpu/armv7/mx6/Makefile arch/arm/cpu/armv7/mx6/ddr.c arch/arm/include/asm/arch-mx6/mx6-ddr.h+739 -00 replies
9/11IMX: add additional function for pinmux using an arrayarch/arm/imx-common/iomux-v3.c arch/arm/include/asm/imx-common/iomux-v3.h+19 -51 reply
9/11IMX: add additional function for pinmux using an array+0 -01 reply
9/11IMX: add additional function for pinmux using an array+0 -00 replies
10/11ventana: auto-configure for IMX6Q vs IMX6DLboard/gateworks/gw_ventana/gw_ventana.c+316 -1811 reply
10/11ventana: auto-configure for IMX6Q vs IMX6DL+0 -00 replies
11/11ventana: switch to SPLboard/gateworks/gw_ventana/Makefile board/gateworks/gw_ventana/README board/gateworks/gw_ventana/gw_ventana.c +6 more+500 -561 reply
11/11ventana: switch to SPL+0 -00 replies
11/11ventana: switch to SPL+0 -02 replies

Reviews trailers per patch

2 of 26 patches have a Reviewed-by or Acked-by.

PatchStefano BabicScott Wood
1/11A-b A-b
1/11A-b A-b
2/11
3/11
3/11
4/11
4/11
5/11
5/11
6/11
6/11
6/11
6/11
7/11
7/11
7/11
7/11
8/11
9/11
9/11
9/11
10/11
10/11
11/11
11/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/11] MX6: SPL NAND support

Here is a stab at adding SPL NAND support for i.MX6. I tried to take into account comments from previous attempts by others but there is still some work to be done and in particular I need some help with the issue of dealing with IMX6Q vs IMX6DL iomux in a way where the current defines can be shared by SPL as well as imximage.

Some of these can be split out of the series if needed but I wanted to post them originally as a series to provide full context.

The resulting SPL+u-boot.img has been tested on 4 different Ventana baseboards with a variety of CPU and DDR3 options.

Tim Harvey (11):
SPL: NAND: remove CONFIG_SYS_NAND_PAGE_SIZE
SPL: NAND: add support for mxs nand
MX6: provide linker script for SPL
MX6: add common SPL configuration
MX6: add boot device support SPL
MX6: add struct for sharing data between SPL and uboot
MX6: use macro building for MX6Q/MX6DL iomux regs
MX6: add mmdc configuration for MX6Q/MX6DL
IMX: add additional function for pinmux using an array
ventana: auto-configure for IMX6Q vs IMX6DL
ventana: switch to SPL

 arch/arm/cpu/armv7/mx6/Makefile               |   1 +
 arch/arm/cpu/armv7/mx6/ddr.c                  | 542 ++++++++++++++++++++++++++
 arch/arm/cpu/armv7/mx6/soc.c                  |  56 +++
 arch/arm/cpu/armv7/mx6/u-boot-spl.lds         |  52 +++
 arch/arm/imx-common/iomux-v3.c                |  19 +-
 arch/arm/include/asm/arch-mx6/mx6-ddr.h       | 225 ++++++++++-
 arch/arm/include/asm/arch-mx6/mx6dl-ddr.h     |  82 ++--
 arch/arm/include/asm/arch-mx6/mx6q-ddr.h      |  82 ++--
 arch/arm/include/asm/arch-mx6/spl.h           |  26 ++
 arch/arm/include/asm/arch-mx6/sys_proto.h     |   5 +
 arch/arm/include/asm/imx-common/boot_mode.h   |  17 +
 arch/arm/include/asm/imx-common/iomux-v3.h    |   5 +-
 board/gateworks/gw_ventana/Makefile           |   2 +-
 board/gateworks/gw_ventana/README             |  91 +++--
 board/gateworks/gw_ventana/gw_ventana.c       | 502 +++++++++++++++---------
 board/gateworks/gw_ventana/gw_ventana.cfg     |  15 -
 board/gateworks/gw_ventana/gw_ventana_spl.c   | 394 +++++++++++++++++++
 board/gateworks/gw_ventana/gw_ventana_spl.cfg |  29 ++
 boards.cfg                                    |   6 +-
 common/spl/spl_nand.c                         |   2 +-
 drivers/mtd/Makefile                          |  11 +
 drivers/mtd/nand/Makefile                     |   9 +
 drivers/mtd/nand/mxs_nand_spl.c               |  46 +++
 include/config/uboot.release                  |   1 +
 include/configs/gw_ventana.h                  |  13 +-
 include/configs/imx6_spl.h                    |  64 +++
 spl/Makefile                                  |   1 +
 27 files changed, 1970 insertions(+), 328 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/mx6/ddr.c
 create mode 100644 arch/arm/cpu/armv7/mx6/u-boot-spl.lds
 create mode 100644 arch/arm/include/asm/arch-mx6/spl.h
 create mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.c
 create mode 100644 board/gateworks/gw_ventana/gw_ventana_spl.cfg
 create mode 100644 drivers/mtd/nand/mxs_nand_spl.c
 create mode 100644 include/config/uboot.release
 create mode 100644 include/configs/imx6_spl.h
Signature · 1 line
1.8.3.2