From: Scott Wood Date: Fri, 15 Nov 2013 14:45:24 -0600 Subject: [U-Boot] [PATCH v9 1/4] mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms In-Reply-To: <1384510119-3367-2-git-send-email-pekon@ti.com> References: <1384510119-3367-1-git-send-email-pekon@ti.com> <1384510119-3367-2-git-send-email-pekon@ti.com> Message-ID: <1384548324.1403.258.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > - 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 > --- > 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