Commit 2e091d13 authored by Pekon Gupta's avatar Pekon Gupta Committed by Tony Lindgren

ARM: OMAP2+: gpmc: enable BCH_HW ecc-scheme for AM43xx platforms

Fixes: commit 0611c419
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: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent aa643aa8
...@@ -46,7 +46,7 @@ static struct platform_device gpmc_nand_device = { ...@@ -46,7 +46,7 @@ static struct platform_device gpmc_nand_device = {
static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt) static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
{ {
/* platforms which support all ECC schemes */ /* 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()) soc_is_omap54xx() || soc_is_dra7xx())
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment