From patchwork Mon Feb 6 08:42:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?David_M=C3=BCller_=28ELSOFT_AG=29?= X-Patchwork-Id: 139691 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 09BDD1007D1 for ; Mon, 6 Feb 2012 19:42:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BAA528097; Mon, 6 Feb 2012 09:42:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 fEyhEVGk02B5; Mon, 6 Feb 2012 09:42:33 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57DBB28098; Mon, 6 Feb 2012 09:42:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B36DB28098 for ; Mon, 6 Feb 2012 09:42:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 3QDJssPn4eyl for ; Mon, 6 Feb 2012 09:42:29 +0100 (CET) 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 mail6.hostpark.net (mail6.hostpark.net [212.243.197.36]) by theia.denx.de (Postfix) with ESMTPS id 1FD3F28097 for ; Mon, 6 Feb 2012 09:42:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail6.hostpark.net (Postfix) with ESMTP id 32D4816F82; Mon, 6 Feb 2012 09:42:27 +0100 (CET) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail6.hostpark.net ([127.0.0.1]) by localhost (mail6.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id LI2OfD9HVdzF; Mon, 6 Feb 2012 09:42:27 +0100 (CET) Received: from [192.168.11.10] (80-218-111-224.dclient.hispeed.ch [80.218.111.224]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail6.hostpark.net (Postfix) with ESMTPSA id F09FF16F3D; Mon, 6 Feb 2012 09:42:26 +0100 (CET) Message-ID: <4F2F928E.8070106@elsoft.ch> Date: Mon, 06 Feb 2012 09:42:54 +0100 From: =?ISO-8859-1?Q?=22David_M=FCller_=28ELSOFT_AG=29=22?= Organization: ELSOFT AG User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120129 Firefox/10.0 SeaMonkey/2.7 MIME-Version: 1.0 To: u-boot@lists.denx.de X-Enigmail-Version: 1.3.5 Cc: Stefan Roese Subject: [U-Boot] [PATCH] add STM29F400BB to table of supported legacy flashs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 Signed-off-by: David Mueller diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c index 36d30c3..2350f36 100644 --- a/drivers/mtd/jedec_flash.c +++ b/drivers/mtd/jedec_flash.c @@ -69,6 +69,9 @@ #define SST39SF010A 0x00B5 #define SST39SF020A 0x00B6 +/* STM */ +#define STM29F400BB 0x00D6 + /* MXIC */ #define MX29LV040 0x004F @@ -346,6 +349,23 @@ static const struct amd_flash_info jedec_table[] = { ERASEINFO(0x10000, 15), } }, + { + .mfr_id = (u16)STM_MANUFACT, + .dev_id = STM29F400BB, + .name = "ST Micro M29F400BB", + .uaddr = { + [1] = MTD_UADDR_0x0555_0x02AA /* x16 */ + }, + .DevSize = SIZE_512KiB, + .CmdSet = CFI_CMDSET_AMD_LEGACY, + .NumEraseRegions = 4, + .regions = { + ERASEINFO(0x04000, 1), + ERASEINFO(0x02000, 2), + ERASEINFO(0x08000, 1), + ERASEINFO(0x10000, 7), + } + }, #endif };