Message ID | 20131011115327.GA25706@radagast |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 579697a..f33ffe0 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -1383,6 +1383,10 @@ static int gpmc_probe_nand_child(struct platform_device *pdev, if (!strcasecmp(s, nand_ecc_opts[val])) { gpmc_nand_data->ecc_opt = val; break; + } else if (!strcasecmp(s, "sw") || + !strcasecmp(s, "hw") || + !strcasecmp(s, "hw-romcode")) { + gpmc_nand_data->ecc_opt = OMAP_ECC_HAM1_CODE_HW; } if (!of_property_read_string(child, "ti,nand-xfer-type", &s))