[U-Boot] [PATCH v9 1/4] mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms

Scott Wood scottwood at freescale.com
Fri Nov 15 21:45:24 CET 2013


On Fri, 2013-11-15 at 15:38 +0530, Pekon Gupta wrote:
> ELM hardware engine which is used for ECC error detection, is present on all
> latest OMAP SoC (like OMAP4xxx, OMAP5xxx, DRA7xxx, AM33xx, AM43xx). Thus ELM
> driver should be moved to common drivers/mtd/nand/ folder so that all SoC
> having on-chip ELM hardware engine can re-use it.
> This patch has following changes:
> - mv arch/arm/include/asm/arch-am33xx/elm.h arch/arm/include/asm/omap_elm.h
> - mv arch/arm/cpu/armv7/am33xx/elm.c drivers/mtd/nand/omap_elm.c
> - update Makefiles
> - update #include <asm/elm.h>
> - add CONFIG_NAND_OMAP_ELM to compile driver/mtd/nand/omap_elm.c
> 	and include in all board configs using AM33xx SoC platform.
> 
> Signed-off-by: Pekon Gupta <pekon at ti.com>
> ---
>  arch/arm/cpu/armv7/am33xx/Makefile     |   1 -
>  arch/arm/cpu/armv7/am33xx/elm.c        | 196 ---------------------------------
>  arch/arm/include/asm/arch-am33xx/elm.h |  77 -------------
>  arch/arm/include/asm/omap_elm.h        |  77 +++++++++++++
>  doc/README.nand                        |  19 ++++
>  drivers/mtd/nand/Makefile              |   1 +
>  drivers/mtd/nand/omap_elm.c            | 196 +++++++++++++++++++++++++++++++++
>  drivers/mtd/nand/omap_gpmc.c           |   2 +-
>  include/configs/am335x_evm.h           |   2 +
>  include/configs/am335x_igep0033.h      |   1 +
>  include/configs/siemens-am33x-common.h |   1 +
>  11 files changed, 298 insertions(+), 275 deletions(-)
>  delete mode 100644 arch/arm/cpu/armv7/am33xx/elm.c
>  delete mode 100644 arch/arm/include/asm/arch-am33xx/elm.h
>  create mode 100644 arch/arm/include/asm/omap_elm.h
>  create mode 100644 drivers/mtd/nand/omap_elm.c

Please pass "-M -C" to git format-patch so that renames will be
identified.

-Scott





More information about the U-Boot mailing list