From patchwork Tue Apr 13 16:34:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wu X-Patchwork-Id: 71753 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 66550E7225F for ; Tue, 13 Apr 2010 21:02:35 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 592D4C913130 for ; Tue, 13 Apr 2010 21:02:35 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Tue, 13 Apr 2010 21:02:35 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Tue, 13 Apr 2010 21:02:04 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Tue, 13 Apr 2010 21:02:03 +0200 Received: from scanner-3.m-online.net (scanner-3.m-online.net [192.168.1.20]) by mail.m-online.net (Postfix) with ESMTP id 185DD200221; Tue, 13 Apr 2010 21:02:03 +0200 (CEST) Received: from mxin-2.m-online.net ([192.168.1.21]) by scanner-3.m-online.net (scanner-3.m-online.net [192.168.1.20]) (amavisd-new, port 10026) with ESMTP id 00940-01; Tue, 13 Apr 2010 21:01:59 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id D14FB46C0A0; Tue, 13 Apr 2010 21:01:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1C5128085; Tue, 13 Apr 2010 21:01:53 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QEn0eOJYKmiX; Tue, 13 Apr 2010 21:01:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F9A828086; Tue, 13 Apr 2010 21:01:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 18DFE2807D for ; Tue, 13 Apr 2010 21:01:48 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fk7tApWJ44TK for ; Tue, 13 Apr 2010 21:01:46 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.arcturusnetworks.com (mail.arcturusnetworks.com [204.50.165.220]) by theia.denx.de (Postfix) with ESMTP id 0D2812807C for ; Tue, 13 Apr 2010 21:01:44 +0200 (CEST) Received: from cyprus.local (gw.arcturusgroup.net [204.50.165.202]) by mail.arcturusnetworks.com (Postfix) with ESMTP id 72A5E1101011 for ; Tue, 13 Apr 2010 12:34:00 -0400 (EDT) Organization: Arcturus Networks Inc. To: "u-boot@lists.denx.de" Date: Tue, 13 Apr 2010 12:34:00 -0400 MIME-Version: 1.0 From: "David Wu" Message-ID: User-Agent: Opera Mail/10.10 (Linux) Subject: [U-Boot] [PATCH V2] AT49BV322A Flash: the erase regions are in the wrong order. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net The device id for this Flash is 0xc8. Signed-off-by: David Wu --- drivers/mtd/cfi_flash.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) if (reverse_geometry) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index fdba297..af86f99 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1690,8 +1690,10 @@ static void flash_fixup_atmel(flash_info_t *info, struct cfi_qry *qry) /* AT49BV6416(T) list the erase regions in the wrong order. * However, the device ID is identical with the non-broken * AT49BV642D they differ in the high byte. + * AT49BV322A is also in the wrong order. */ - if (info->device_id == 0xd6 || info->device_id == 0xd2) + if (info->device_id == 0xd6 || info->device_id == 0xd2 || + info->device_id == 0xc8) reverse_geometry = !reverse_geometry;