From: Scott Wood Date: Tue, 13 Aug 2013 15:03:51 -0500 Subject: [U-Boot] [PATCH v1 1/4] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73E9F419A@DBDE04.ent.ti.com> References: <1375782920-25935-1-git-send-email-pekon@ti.com> <1375782920-25935-2-git-send-email-pekon@ti.com> <1376095528.15633.103.camel@snotra.buserror.net> <20980858CB6D3A4BAE95CA194937D5E73E9F2E1B@DBDE04.ent.ti.com> <1376354412.20487.75.camel@snotra.buserror.net> <20980858CB6D3A4BAE95CA194937D5E73E9F419A@DBDE04.ent.ti.com> Message-ID: <1376424231.20487.117.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 Tue, 2013-08-13 at 05:00 +0000, Gupta, Pekon wrote: > > > - CONFIG_NAND_OMAP_ECC_BCH8_CODE_HW_DETECTION_SW > > > Include API for S/W library (lib/bch.c) so included that here.. > > > But this ECC scheme should be used only for older OMAP platforms where > > > ELM is not present > > > > > > - CONFIG_NAND_OMAP_ECC_BCH8_CODE_HW > > > Include declarations for ELM functions. So new OMAP platforms which > > have > > > ELM hardware engine, need not include whole bch.c library in their code. > > > > Maybe it should just be something like CONFIG_SYS_OMAP_ELM? > > > Actually is not just decides between using ELM or not. CONFIGs also > selects which all ECC scheme to support (multiple selection allowed). > > Following ECC schemes can be supported on omap-nand driver.. > [1] http://permalink.gmane.org/gmane.linux.ports.arm.omap/101028 > > So to keep code foot-print small, configs are used to select out some > Un-needed ECC schemes on newer devices. If the hardware doesn't dictate a specific choice, use CONFIG rather than CONFIG_SYS, even if not all hardware supports all options. -Scott