From patchwork Mon Jun 6 16:40:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Vailugin X-Patchwork-Id: 634042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rRYzr4tZ8z9s9n for ; Sat, 11 Jun 2016 19:44:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=yandex.ru header.i=@yandex.ru header.b=Z2ZQDIQj; dkim-atps=neutral Received: from [127.0.0.1] (helo=ra.coresystems.de) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1bBfSi-0002dE-60; Sat, 11 Jun 2016 11:44:16 +0200 Received: from forward17j.cmail.yandex.net ([5.255.227.236]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1b9xaB-0003ds-Gv for flashrom@flashrom.org; Mon, 06 Jun 2016 18:41:06 +0200 Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [IPv6:2a02:6b8:0:801:1::13]) by forward17j.cmail.yandex.net (Yandex) with ESMTP id B66F920F05 for ; Mon, 6 Jun 2016 19:40:52 +0300 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 8BB261B61651 for ; Mon, 6 Jun 2016 19:40:52 +0300 (MSK) Received: by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id oscPEC7psM-epMClYwr; Mon, 06 Jun 2016 19:40:51 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1465231251; bh=GJSBND3UgiwNe9Pczst9StI7Mev4W0xKR85T72B4ub0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=Z2ZQDIQjAuwpA3AJ9GzhoSotGX/1IV0oWlKT2rPd/1/UrfQS0DL3j9TYTDpaszxLS Njydh61wYIiNB3KbZ+w/+1poCBURnW2I5nf9/8mkYcEpoKSEWqxXvFxZ3S1rf76/dI sU0H9WtXMoGEzPMIb4Et2p02XH/9aHeLiY5aAmAc= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0 Message-ID: <5755A793.5060008@yandex.ru> Date: Mon, 06 Jun 2016 22:40:51 +0600 From: serge User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: flashrom@flashrom.org X-Spam-Score: -4.3 (----) X-Mailman-Approved-At: Sat, 11 Jun 2016 11:44:14 +0200 Subject: [flashrom] [PATCH] Fix M25P05 X-BeenThere: flashrom@flashrom.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: flashrom discussion and development mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: flashrom-bounces@flashrom.org Sender: "flashrom" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff With this patch M25P05 chip was sucessfully tested (full read/erase/write) Signed-off-by: Serge Vasilugin #define ST_M25P40 0x2013 --- flashchips.h.orig +++ flashchips.h @@ -748,9 +748,9 @@ */ #define ST_ID 0x20 /* ST / SGS/Thomson / Numonyx (later acquired by Micron) */ #define ST_M25P05A 0x2010 -#define ST_M25P05_RES 0x10 /* Same code as M25P10. */ +#define ST_M25P05_RES 0x05 #define ST_M25P10A 0x2011 -#define ST_M25P10_RES 0x10 /* Same code as M25P05. */ +#define ST_M25P10_RES 0x10 #define ST_M25P20 0x2012 #define ST_M25P20_RES 0x11