From patchwork Fri Jun 3 20:24:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 848302 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p53KOOOl017369 for ; Fri, 3 Jun 2011 20:24:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169Ab1FCUYX (ORCPT ); Fri, 3 Jun 2011 16:24:23 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:38385 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750965Ab1FCUYX (ORCPT ); Fri, 3 Jun 2011 16:24:23 -0400 Received: by fxm17 with SMTP id 17so1510459fxm.19 for ; Fri, 03 Jun 2011 13:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=rdJ4rqigPccA617BlOJWWmsEOaNs5yBwWOrhqkw33DQ=; b=By1HIoSqQOE+EuTWcHHfentF/jBDvYuHXxC76oHOZEd9hemkpUX/zFyQtEQxhviHPM YgxSGEU0HEduqdT/GuT/xw1jGJ08q/TgXdNWRfEwMdmlrbfH7k7J1k1IT6w/mV9Kont9 a4Wkz+dffboYx8gJ1heK1oaF59JEtUSbC8p9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=thlPYwtFLSnurIBOxfl7/FR+gHv3pFGQCW8hlqwxv+TZDuhtiyCW0/xjCh5ToBH5zZ WNsj5ren+GLpW4ZZ0TEEoTYvdeCLwZz5HT/aqVt9SvsBOegKv8afDDV/E+Hn0D8NRpTM kLSEg3SqS/yfeIA4/KSDNLIc7Svu6w/M0q82Y= Received: by 10.223.37.153 with SMTP id x25mr2584207fad.117.1307132661848; Fri, 03 Jun 2011 13:24:21 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt [88.119.226.136]) by mx.google.com with ESMTPS id e16sm591574fak.17.2011.06.03.13.24.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Jun 2011 13:24:21 -0700 (PDT) From: Grazvydas Ignotas To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tony Lindgren , Grazvydas Ignotas Subject: [PATCH] omap: pandora: fix NAND support Date: Fri, 3 Jun 2011 23:24:03 +0300 Message-Id: <1307132643-17432-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Jun 2011 20:24:24 +0000 (UTC) Commit d5ce2b65 "omap3630: nand: fix device size to work in polled mode" changed values for .devsize in nand platform data, now we have to pass NAND_BUSWIDTH_16 instead of '1' to select 16bit NAND. Update pandora's platform data accordingly, also specify appropriate transfer type. Signed-off-by: Grazvydas Ignotas --- arch/arm/mach-omap2/board-omap3pandora.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 1d10736..a3d655c 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c @@ -86,7 +86,8 @@ static struct mtd_partition omap3pandora_nand_partitions[] = { static struct omap_nand_platform_data pandora_nand_data = { .cs = 0, - .devsize = 1, /* '0' for 8-bit, '1' for 16-bit device */ + .devsize = NAND_BUSWIDTH_16, + .xfer_type = NAND_OMAP_PREFETCH_DMA, .parts = omap3pandora_nand_partitions, .nr_parts = ARRAY_SIZE(omap3pandora_nand_partitions), };