From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Mon, 23 Dec 2013 17:11:26 +0530 Subject: [U-Boot] [RFC][PATCH 3/7] TI: armv7: Move ELM support to SoC configuration file. In-Reply-To: <1386361824-21900-4-git-send-email-eballetbo@gmail.com> References: <1386361824-21900-1-git-send-email-eballetbo@gmail.com> <1386361824-21900-4-git-send-email-eballetbo@gmail.com> Message-ID: <52B82166.7080506@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday 07 December 2013 02:00 AM, Enric Balletbo i Serra wrote: > The ELM hardware engine wihich is used for ECC error detections is not present > on OMAP3 SoC, so move the CONFIG_SPL_NAND_AM33XX_BCH from ti_armv7_common.h to > SoC configuration file. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > Signed-off-by: Enric Balletbo i Serra > --- > include/configs/ti_am335x_common.h | 4 ++++ > include/configs/ti_armv7_common.h | 1 - > include/configs/ti_omap4_common.h | 4 ++++ > include/configs/ti_omap5_common.h | 4 ++++ > 4 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h > index 10fe47f..cddddb0 100644 > --- a/include/configs/ti_am335x_common.h > +++ b/include/configs/ti_am335x_common.h > @@ -72,6 +72,10 @@ > #define CONFIG_SKIP_LOWLEVEL_INIT > #endif > > +#ifdef CONFIG_NAND > +#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ > +#endif > + > /* Now bring in the rest of the common code. */ > #include > > diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h > index 99b60fc..f4e42ef 100644 > --- a/include/configs/ti_armv7_common.h > +++ b/include/configs/ti_armv7_common.h > @@ -237,7 +237,6 @@ > #define CONFIG_SPL_BOARD_INIT > > #ifdef CONFIG_NAND > -#define CONFIG_SPL_NAND_AM33XX_BCH /* OMAP4 and later ELM support */ > #define CONFIG_SPL_NAND_SUPPORT > #define CONFIG_SPL_NAND_BASE > #define CONFIG_SPL_NAND_DRIVERS > diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h > index bce32d6..815aaf5 100644 > --- a/include/configs/ti_omap4_common.h > +++ b/include/configs/ti_omap4_common.h > @@ -154,4 +154,8 @@ > #define CONFIG_SPL_DISPLAY_PRINT > #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" > > +#ifdef CONFIG_NAND > +#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ > +#endif > + > #endif /* __CONFIG_TI_OMAP4_COMMON_H */ > diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h > index 4f34dcf..7b10fbd 100644 > --- a/include/configs/ti_omap5_common.h > +++ b/include/configs/ti_omap5_common.h > @@ -146,4 +146,8 @@ > #define CONFIG_SPL_DISPLAY_PRINT > #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" > > +#ifdef CONFIG_NAND > +#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ > +#endif > + > #endif /* __CONFIG_TI_OMAP5_COMMON_H */ >