mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms
authorpekon gupta <pekon@ti.com>
Mon, 18 Nov 2013 13:32:59 +0000 (19:02 +0530)
committerScott Wood <scottwood@freescale.com>
Thu, 21 Nov 2013 19:33:41 +0000 (13:33 -0600)
commitbeba5f04f2215c81016fbfb727257ea6667aca85
tree9c999f376055e39af9012d5fc535763789b899c7
parentc0dc3dec697e930d290145e127a86ff31f7c2dde
mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms

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@ti.com>
arch/arm/cpu/armv7/am33xx/Makefile
arch/arm/include/asm/omap_elm.h [moved from arch/arm/include/asm/arch-am33xx/elm.h with 100% similarity]
doc/README.nand
drivers/mtd/nand/Makefile
drivers/mtd/nand/omap_elm.c [moved from arch/arm/cpu/armv7/am33xx/elm.c with 97% similarity]
drivers/mtd/nand/omap_gpmc.c
include/configs/am335x_evm.h
include/configs/am335x_igep0033.h
include/configs/siemens-am33x-common.h