From patchwork Fri Apr 9 15:11:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wu X-Patchwork-Id: 71750 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 D8766C0EE81 for ; Fri, 9 Apr 2010 17:14:12 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id CC535C913116 for ; Fri, 9 Apr 2010 17:14:12 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Fri, 09 Apr 2010 17:14:12 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Fri, 09 Apr 2010 17:12:52 +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; Fri, 09 Apr 2010 17:12:52 +0200 Received: from scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id 5860E2003A5; Fri, 9 Apr 2010 17:12:52 +0200 (CEST) Received: from mxin-1.m-online.net ([192.168.6.164]) by scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) (amavisd-new, port 10026) with ESMTP id 08767-03; Fri, 9 Apr 2010 17:12:49 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 0342C46C0AE; Fri, 9 Apr 2010 17:12:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03B29281A9; Fri, 9 Apr 2010 17:12:11 +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 8vE5yLL1BUwc; Fri, 9 Apr 2010 17:12:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BA5F281C0; Fri, 9 Apr 2010 17:11:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CFEA1281DD for ; Fri, 9 Apr 2010 17:11:54 +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 eCfldBV763Ui for ; Fri, 9 Apr 2010 17:11:54 +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 67D59281BB for ; Fri, 9 Apr 2010 17:11:51 +0200 (CEST) Received: from cyprus.local (gw.arcturusgroup.net [204.50.165.202]) by mail.arcturusnetworks.com (Postfix) with ESMTP id B9E30118638F for ; Fri, 9 Apr 2010 11:11:50 -0400 (EDT) Organization: Arcturus Networks Inc. To: "u-boot@lists.denx.de" Date: Fri, 09 Apr 2010 11:11:50 -0400 MIME-Version: 1.0 From: "David Wu" Message-ID: User-Agent: Opera Mail/10.10 (Linux) Subject: [U-Boot] [PATCH] 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;