[U-Boot] [PATCH 0/9] arm, davinci: add support for dm368 based cam_enc_4xx board

Heiko Schocher hs at denx.de
Sat Jul 16 12:06:41 CEST 2011


- DM368 SOC
- booting with nand_spl not with UBL from TI
- before loading u-boot from NAND into RAM, test
  the RAM with the post memory test. If error
  is found, switch all LEDs on and halt system.
- SPI Flash
  Dataflash Typ: M25PE80
- Ethernet DM9161BI

following patches posted on this list are needed for this
board support:

- get CONFIG_POST working for arm boards:
[PATCH] post, memorytest: fix if vstart is not = 0x0
	http://patchwork.ozlabs.org/patch/98127/
[PATCH v2] post, memorytest: add support for none powerpc archs
	http://patchwork.ozlabs.org/patch/98522/
[PATCH] post, memory test: add memory_post_test() to include file
	http://patchwork.ozlabs.org/patch/98126/
[PATCH 1/2] arm, lib/board.c: Coding Style cleanup
	http://patchwork.ozlabs.org/patch/98532/
	update:
	http://patchwork.ozlabs.org/patch/104755/
	http://patchwork.ozlabs.org/patch/104932/
[PATCH 2/2] arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
	http://patchwork.ozlabs.org/patch/98531/

Patches based on:
commit 68d4230c3ccce96a72c5b99e48399bf1796fe3c6
Author: Ramneek Mehresh <ramneek.mehresh at freescale.com>
Date:   Tue Jun 7 10:10:43 2011 +0000

    powerpc/85xx: Add default usb mode and phy type to hwconfig

"MAKEALL arm" looks good, checkpatch says:
total: 0 errors, 0 warnings, 585 lines checked

20110715_ml/0001-mkimage-add-UBL-header-support-for-booting-davinci-c.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 12 lines checked

20110715_ml/0002-arm-arm926-fix-missing-symbols-in-NAND_SPL-mode.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 37 lines checked

20110715_ml/0003-nand-add-a-hw-specific-subcommand-to-the-nand-comman.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 485 lines checked

20110715_ml/0004-arm-davinci-add-header-files-for-dm365.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 505 lines checked

20110715_ml/0005-arm-davinci-add-lowlevel-function-for-dm365-soc.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 91 lines checked

20110715_ml/0006-arm926ejs-davinci-add-cpuinfo-for-dm365.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 15 lines checked

20110715_ml/0007-arm926ejs-davinci-add-missing-spi-defines-for-dm365.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 54 lines checked

20110715_ml/0008-spl-nand-add-4bit-HW-ecc-oob-first-nand_read_page-fu.patch has no obvious style problems and is ready for submission.
WARNING: Use #include <linux/io.h> instead of <asm/io.h>
#153: FILE: board/ait/cam_enc_4xx/cam_enc_4xx.c:26:
+#include <asm/io.h>

WARNING: Use #include <linux/errno.h> instead of <asm/errno.h>
#491: FILE: board/ait/cam_enc_4xx/cam_enc_4xx_nand_spl.c:27:
+#include <asm/errno.h>

WARNING: Use #include <linux/io.h> instead of <asm/io.h>
#493: FILE: board/ait/cam_enc_4xx/cam_enc_4xx_nand_spl.c:29:
+#include <asm/io.h>

total: 0 errors, 3 warnings, 1377 lines checked

20110715_ml/0009-arm-davinci-add-cam_enc_4xx-support.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

@Sandeep Paulraj:
I try to find time to switch to the new spl framework
from Daniel Schwierzeck, so arch/arm/cpu/arm926ejs/davinci/dm365_lowlevel.c
could be moved to arch/arm/cpu/arm926ejs/davinci/spl.c
but I don;t know (at the moment), if this code is valid
for all davinci cpus ... maybe you can give a comment
on this?

Heiko Schocher (9):
  mkimage: add UBL header support for booting davinci cpus
  arm, arm926: fix missing symbols in NAND_SPL mode
  nand: add a hw specific subcommand to the nand command.
  arm, davinci: add header files for dm365
  arm, davinci: add lowlevel function for dm365 soc
  arm926ejs, davinci: add cpuinfo for dm365
  arm926ejs, davinci: add missing spi defines for dm365
  spl, nand: add 4bit HW ecc oob first nand_read_page function
  arm, davinci: add cam_enc_4xx support

 .gitignore                                         |    1 +
 MAINTAINERS                                        |    1 +
 MAKEALL                                            |    1 +
 Makefile                                           |    5 +
 README                                             |    2 +
 arch/arm/cpu/arm926ejs/davinci/cpu.c               |   34 ++-
 arch/arm/cpu/arm926ejs/davinci/dm365_lowlevel.c    |  463 ++++++++++++++++++++
 arch/arm/cpu/arm926ejs/start.S                     |    6 +
 arch/arm/include/asm/arch-davinci/aintc_defs.h     |   50 +++
 arch/arm/include/asm/arch-davinci/ddr2_defs.h      |   92 ++++
 arch/arm/include/asm/arch-davinci/dm365_lowlevel.h |   42 ++
 arch/arm/include/asm/arch-davinci/hardware.h       |   13 +
 arch/arm/include/asm/arch-davinci/pll_defs.h       |   84 ++++
 arch/arm/include/asm/arch-davinci/psc_defs.h       |  129 ++++++
 arch/arm/include/asm/arch-davinci/syscfg_defs.h    |   66 +++
 arch/arm/include/asm/arch-davinci/timer_defs.h     |   48 ++
 board/ait/cam_enc_4xx/Makefile                     |   52 +++
 board/ait/cam_enc_4xx/cam_enc_4xx.c                |  331 ++++++++++++++
 board/ait/cam_enc_4xx/cam_enc_4xx_nand_spl.c       |  115 +++++
 board/ait/cam_enc_4xx/config.mk                    |   19 +
 board/ait/cam_enc_4xx/ublimage.cfg                 |   48 ++
 boards.cfg                                         |    1 +
 common/cmd_nand.c                                  |    8 +
 common/image.c                                     |    1 +
 doc/README.davinci.nand_spl                        |  141 ++++++
 doc/README.ublimage                                |  141 ++++++
 include/configs/cam_enc_4xx.h                      |  423 ++++++++++++++++++
 include/image.h                                    |    1 +
 include/nand.h                                     |    3 +
 nand_spl/board/ait/cam_enc_4xx/Makefile            |  152 +++++++
 nand_spl/board/ait/cam_enc_4xx/u-boot.lds          |   75 ++++
 nand_spl/nand_boot.c                               |   42 ++
 tools/Makefile                                     |    2 +
 tools/mkimage.c                                    |    2 +
 tools/mkimage.h                                    |    1 +
 tools/ublimage.c                                   |  275 ++++++++++++
 tools/ublimage.h                                   |  103 +++++
 37 files changed, 2969 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/cpu/arm926ejs/davinci/dm365_lowlevel.c
 create mode 100644 arch/arm/include/asm/arch-davinci/aintc_defs.h
 create mode 100644 arch/arm/include/asm/arch-davinci/ddr2_defs.h
 create mode 100644 arch/arm/include/asm/arch-davinci/dm365_lowlevel.h
 create mode 100644 arch/arm/include/asm/arch-davinci/pll_defs.h
 create mode 100644 arch/arm/include/asm/arch-davinci/psc_defs.h
 create mode 100644 arch/arm/include/asm/arch-davinci/syscfg_defs.h
 create mode 100644 arch/arm/include/asm/arch-davinci/timer_defs.h
 create mode 100644 board/ait/cam_enc_4xx/Makefile
 create mode 100644 board/ait/cam_enc_4xx/cam_enc_4xx.c
 create mode 100644 board/ait/cam_enc_4xx/cam_enc_4xx_nand_spl.c
 create mode 100644 board/ait/cam_enc_4xx/config.mk
 create mode 100644 board/ait/cam_enc_4xx/ublimage.cfg
 create mode 100644 doc/README.davinci.nand_spl
 create mode 100644 doc/README.ublimage
 create mode 100644 include/configs/cam_enc_4xx.h
 create mode 100644 nand_spl/board/ait/cam_enc_4xx/Makefile
 create mode 100644 nand_spl/board/ait/cam_enc_4xx/u-boot.lds
 create mode 100644 tools/ublimage.c
 create mode 100644 tools/ublimage.h

-- 
1.7.6



More information about the U-Boot mailing list