From a6f894835cd162115fc6bc40e9e6635624f7e5b3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 11 Jul 2014 14:17:17 +0200 Subject: [PATCH] pcm051/omap: Hack and make bch8 mean HW_ROMCODE here Changing the arch/arm/dts/am335x-phytec-phycore.dts would be another option but that would break loading a mainline kernel. The idea/patch is coming from Jan. --- arch/arm/dts/am335x-phytec-phycore.dts | 2 +- drivers/bus/omap-gpmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/am335x-phytec-phycore.dts b/arch/arm/dts/am335x-phytec-phycore.dts index 6196eb324..0c70628d8 100644 --- a/arch/arm/dts/am335x-phytec-phycore.dts +++ b/arch/arm/dts/am335x-phytec-phycore.dts @@ -246,7 +246,7 @@ nand: nand@0,0 { reg = <0 0 0>; /* CS0, offset 0 */ nand-bus-width = <8>; - ti,nand-ecc-opt = "bch8"; + ti,nand-ecc-opt = "bch8-romcode"; gpmc,device-nand = "true"; gpmc,device-width = <1>; gpmc,sync-clk-ps = <0>; diff --git a/drivers/bus/omap-gpmc.c b/drivers/bus/omap-gpmc.c index ad21af290..9d260b755 100644 --- a/drivers/bus/omap-gpmc.c +++ b/drivers/bus/omap-gpmc.c @@ -382,7 +382,7 @@ static struct dt_eccmode modes[] = { .mode = OMAP_ECC_BCH4_CODE_HW, }, { .name = "bch8", - .mode = OMAP_ECC_BCH8_CODE_HW, + .mode = OMAP_ECC_BCH8_CODE_HW_ROMCODE, }, { .name = "bch8-romcode", .mode = OMAP_ECC_BCH8_CODE_HW_ROMCODE,