[PATCH] simplify i.MX external NAND boot for boards

Sascha Hauer s.hauer at pengutronix.de
Sun Jan 20 10:57:44 EST 2013


The external NAND boot code has some significant code duplication
across boards. This adds a helper function for it and changes the
boards to use it.

Sascha

----------------------------------------------------------------
Sascha Hauer (2):
      ARM i.MX: Add a common NAND entry for external boot mode
      ARM i.MX boards: use helper function for external NAND boot

 arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c  |    7 --
 arch/arm/boards/eukrea_cpuimx25/lowlevel.c         |   35 +--------
 arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c  |    9 ---
 arch/arm/boards/eukrea_cpuimx27/lowlevel_init.S    |   23 +-----
 arch/arm/boards/eukrea_cpuimx35/lowlevel.c         |   46 +++---------
 arch/arm/boards/freescale-mx25-3-stack/3stack.c    |    9 ---
 .../boards/freescale-mx25-3-stack/lowlevel_init.S  |   23 +-----
 arch/arm/boards/freescale-mx35-3-stack/3stack.c    |   12 ----
 .../boards/freescale-mx35-3-stack/lowlevel_init.S  |   23 +-----
 arch/arm/boards/guf-cupid/lowlevel.c               |   45 +++---------
 arch/arm/boards/guf-neso/lowlevel.c                |   33 +--------
 arch/arm/boards/imx21ads/imx21ads.c                |    9 ---
 arch/arm/boards/imx21ads/lowlevel_init.S           |   23 +-----
 arch/arm/boards/karo-tx25/board.c                  |    7 --
 arch/arm/boards/karo-tx25/lowlevel.c               |   33 +--------
 arch/arm/boards/pcm037/lowlevel.c                  |   34 ++-------
 arch/arm/boards/pcm037/pcm037.c                    |    8 ---
 arch/arm/boards/pcm038/lowlevel.c                  |   34 ++-------
 arch/arm/boards/pcm043/lowlevel.c                  |   47 +++---------
 arch/arm/boards/phycard-i.MX27/lowlevel_init.S     |   26 +------
 arch/arm/mach-imx/external-nand-boot.c             |   75 ++++++++++++++++++++
 arch/arm/mach-imx/include/mach/imx-nand.h          |    5 ++
 22 files changed, 127 insertions(+), 439 deletions(-)



More information about the barebox mailing list