From patchwork Tue Sep 2 13:57:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 36490 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9A91203BE for ; Tue, 2 Sep 2014 13:57:27 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf38522708obc.0 for ; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=QPuqc3NWxTIkj1QELT7/ivkT9XuETZCOB+ijNW2r0cA=; b=FLDOjXGHaZifK4Ils0I26ERVbmCxEy2HeNsmqlmo6e1cIZNH9ayWU4oiV+/TK3/SK1 dBa3sLhThw66+uTXlmazZUk/q66eOBTeH8H+/eWOzYokz9PjU06wRyyz3/0U6kHSU8wv pJRkdVN7mcPostBF7rv6Na6f9x8JhARmTptzkzT3nLN8dfIvqSRlEc+eSD1b8y9nm7dG PPm8eAqW920wAgQ5Yeqwp5270LnVdnal030dMkuWIDjh3aryZOPI7YFYrg8+npmbHLkU RnBANReLRg59MKVMeL0Swlt1pm2jbpKxo40jIzb8SprC6pUf+mewri/YrOuP8OL8dBSH 9Eng== X-Gm-Message-State: ALoCoQlQz4/sK/EYHMZ3a57LzTdJNQHH0akp2aogmE65St/bskUAwt9GNgljRtUBRBG4vcYNtUrJ X-Received: by 10.42.26.12 with SMTP id d12mr20245484icc.24.1409666247432; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.245 with SMTP id d108ls1578522qgd.68.gmail; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) X-Received: by 10.221.62.7 with SMTP id wy7mr220809vcb.66.1409666247246; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id wu1si2314363vdb.101.2014.09.02.06.57.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Sep 2014 06:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so7017895vcb.32 for ; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) X-Received: by 10.220.251.200 with SMTP id mt8mr30374490vcb.24.1409666247161; Tue, 02 Sep 2014 06:57:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp532039vcb; Tue, 2 Sep 2014 06:57:26 -0700 (PDT) X-Received: by 10.70.91.35 with SMTP id cb3mr8678483pdb.127.1409666246292; Tue, 02 Sep 2014 06:57:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si3479062pdr.206.2014.09.02.06.57.25 for ; Tue, 02 Sep 2014 06:57:26 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753981AbaIBN5X (ORCPT + 5 others); Tue, 2 Sep 2014 09:57:23 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:49572 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753692AbaIBN5W (ORCPT ); Tue, 2 Sep 2014 09:57:22 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s82DvEvj017973; Tue, 2 Sep 2014 08:57:14 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s82DvEVk024353; Tue, 2 Sep 2014 08:57:14 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 2 Sep 2014 08:57:14 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s82DvATx003715; Tue, 2 Sep 2014 08:57:13 -0500 From: Roger Quadros To: CC: , , Roger Quadros Subject: [PATCH 1/6] ARM: dts: am43x-epos-evm: Use BCH16 ECC scheme instead of BCH8 Date: Tue, 2 Sep 2014 16:57:02 +0300 Message-ID: <1409666227-20622-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1409666227-20622-1-git-send-email-rogerq@ti.com> References: <1409666227-20622-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , am43x-epos-evm uses a NAND chip with page size 4096 bytes and spare area of 225 bytes per page. For such a setup it is preferrable to use BCH16 ECC scheme over BCH8. This also makes it compatible with ROM code ECC scheme so we can boot with NAND after flashing from kernel. Signed-off-by: Roger Quadros Reviewed-by: Pekon Gupta --- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index ed7dd23..f6c9898 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -441,7 +441,7 @@ ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */ nand@0,0 { reg = <0 0 0>; /* CS0, offset 0 */ - ti,nand-ecc-opt = "bch8"; + ti,nand-ecc-opt = "bch16"; ti,elm-id = <&elm>; nand-bus-width = <8>; gpmc,device-width = <1>;