From patchwork Sun Dec 1 11:23:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 3261821 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7020F9F377 for ; Sun, 1 Dec 2013 11:26:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96A8B203B4 for ; Sun, 1 Dec 2013 11:26:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A663D203DF for ; Sun, 1 Dec 2013 11:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494Ab3LAL0i (ORCPT ); Sun, 1 Dec 2013 06:26:38 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:51622 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807Ab3LAL0W (ORCPT ); Sun, 1 Dec 2013 06:26:22 -0500 Received: by mail-wg0-f41.google.com with SMTP id y10so3249785wgg.4 for ; Sun, 01 Dec 2013 03:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=3G9FRyTvv3ZS8Sz3bvIQH/I08C0wivFtjwkmCJwrqhE=; b=JiIclAPgW/dhyRBrN6ZGxPMp1zAO9IJPAs69DUVo1IOCtcEqe//Y0RAUEPjaRPXWYN 5mnwrxjotUtzw2toaN+PVRzxhcOrpORW0Fcp95HY1efOjkeJfkx0WnLnU/3RgkU4sAuR oRQY+/c7mO8mZ9N/xkyYke8HUlv+sQBt+P6YXqOGBD6L9Y3shhb24W/8ITXRc4D1d/8f mKN6heaoxV+S5ju+NZYylv6k2Xj3wdmt6PIoeMkTB0qnMC1azf+3LE4xjX5DPd69K/b7 55DWfIwIe3J+XDnqh6Qw7uY8BERnCUGYdMUbI5pvdOkkUm/nJZgfpgHPIEAYiNggqK7q xMEQ== X-Received: by 10.180.160.240 with SMTP id xn16mr13693771wib.62.1385897180303; Sun, 01 Dec 2013 03:26:20 -0800 (PST) Received: from localhost.localdomain ([84.236.221.131]) by mx.google.com with ESMTPSA id je17sm19671908wic.4.2013.12.01.03.26.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Dec 2013 03:26:19 -0800 (PST) From: Enric Balletbo i Serra To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Javier Martinez Canillas , linux-omap@vger.kernel.org, Thomas Petazzoni , Ezequiel Garcia Cc: Enric Balletbo i Serra Subject: [PATCH] ARM: dts: omap3-igep00x0: Fix nand ECC to maintain backward compatibility. Date: Sun, 1 Dec 2013 12:23:15 +0100 Message-Id: <1385896995-16803-1-git-send-email-eballetbo@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Legacy board files for IGEP Processor Boards used 1-bit Hamming ECC layout but new DT uses BCH8 software layout. This breaks the backward compatibility for people that used board files before and switch to DT and have the problem that they can't flash the rootfs using the bootloader. This patch sets the ECC layout to 1-bit Hamming ECC in order to maintain this compatibility. Reported-by: Thomas Petazzoni Reported-by: Ezequiel Garcia Signed-off-by: Enric Balletbo i Serra Acked-by: Javier Martinez Canillas --- arch/arm/boot/dts/omap3-igep0020.dts | 2 +- arch/arm/boot/dts/omap3-igep0030.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts index d5cc792..4229e94 100644 --- a/arch/arm/boot/dts/omap3-igep0020.dts +++ b/arch/arm/boot/dts/omap3-igep0020.dts @@ -116,7 +116,7 @@ linux,mtd-name= "micron,mt29c4g96maz"; reg = <0 0 0>; nand-bus-width = <16>; - ti,nand-ecc-opt = "bch8"; + ti,nand-ecc-opt = "ham1"; gpmc,sync-clk-ps = <0>; gpmc,cs-on-ns = <0>; diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts index 525e6d9..9043e97 100644 --- a/arch/arm/boot/dts/omap3-igep0030.dts +++ b/arch/arm/boot/dts/omap3-igep0030.dts @@ -59,7 +59,7 @@ linux,mtd-name= "micron,mt29c4g96maz"; reg = <0 0 0>; nand-bus-width = <16>; - ti,nand-ecc-opt = "bch8"; + ti,nand-ecc-opt = "ham1"; gpmc,sync-clk-ps = <0>; gpmc,cs-on-ns = <0>;