ARM: OMAP2+: gpmc: enable BCH_HW ecc-scheme for AM43xx platforms
authorPekon Gupta <pekon@ti.com>
Mon, 19 May 2014 11:22:36 +0000 (16:52 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 27 May 2014 21:22:30 +0000 (14:22 -0700)
Fixes: commit 0611c41934ab35ce84dea34ab291897ad3cbc7be
ARM: OMAP2+: gpmc: update gpmc_hwecc_bch_capable() for new platforms and ECC schemes

Though the commit log of above commit mentions AM43xx platforms, but code change
missed AM43xx. This patch adds AM43xx to list of those SoC which have built-in
ELM hardware engine, so that BCH ecc-schemes with hardware error-correction can
be enabled on AM43xx devices.

Reported-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc-nand.c

index 4349e82debfeac3196363d1ddad7f5d1340f6e94..17cd39360afe853562b61a5dfb755f33ba5d7886 100644 (file)
@@ -46,7 +46,7 @@ static struct platform_device gpmc_nand_device = {
 static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
 {
        /* platforms which support all ECC schemes */
-       if (soc_is_am33xx() || cpu_is_omap44xx() ||
+       if (soc_is_am33xx() || soc_is_am43xx() || cpu_is_omap44xx() ||
                 soc_is_omap54xx() || soc_is_dra7xx())
                return 1;