From patchwork Mon Jun 4 13:02:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 925012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=flashrom.org (client-ip=80.81.252.135; helo=mail.coreboot.org; envelope-from=flashrom-bounces@flashrom.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="iwqFmrS2"; dkim-atps=neutral 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 40zwCB15k1z9ry1 for ; Mon, 4 Jun 2018 23:05:09 +1000 (AEST) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1fPpCV-0002Y7-SM; Mon, 04 Jun 2018 15:07:07 +0200 Received: from mail-wr0-f194.google.com ([209.85.128.194]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1fPpCJ-0002X2-5Z for flashrom@flashrom.org; Mon, 04 Jun 2018 15:07:05 +0200 Received: by mail-wr0-f194.google.com with SMTP id v13-v6so31529187wrp.13 for ; Mon, 04 Jun 2018 06:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NKVVT+/cowizXWeuE/ugYwuwKNCzMWeguacA5nLARj0=; b=iwqFmrS2w4cxJL0PjfnvVrN45s5CO2FbjefvSXtIhIVXX89S17CRl8zyiSOMHjrgu2 XyKEjrOit1Ao+N3Hc1ziNSTL2Dcnp86/31/Sa0MWwkCfgLSjZPSEDUV/A6XB+RutQk5w TbijKH8jWjo9uewTcLJBLpx11FGQYqbJSEt7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NKVVT+/cowizXWeuE/ugYwuwKNCzMWeguacA5nLARj0=; b=i9JUyQRRsO+6zCG9Zo2XlcmKL+4DU/LE5qdGWHATHgMplsk0BSpNa2dO0rnN5roqz+ a5X/r7RUN1AQEZlnqTcjUyYSjYkeZegrhgkHQkjscnaaBAR+vpQMSV/8yiiKt7Zp8LPP g2bunkGtASBcHWrXuF9gRG9fJPdgAUGpT77vtLJKFr2fA5RyAbqks3HW9LbBitpqrpub iOzG0eWWHynTO8EI7mrlD2eM2loNrVXC0+8WeI6FDXvQVwocEq96JGlaTSeBQ3WyBtb3 +pO5GW06YUdY/ERnfjp6HhLhpOb17V8xPdebSl7nnxcUs7vFpynd6AtCFG8ItjUlZLtx EBIQ== X-Gm-Message-State: APt69E1i0yyfhDn4tjut9xeADNc0hyOi1/rKQ5GunELZyPSgPCuI8wtY eHDL7EcBoKXzHC+NzhaDh1JQ0ZgkdjY= X-Google-Smtp-Source: ADUXVKKbx6MC4nGstlG4FX7JCldsfj0Iqez4smmRK/kUW0Ou9O7r8d0ySkvNVM360+MGjIAhyDXEOg== X-Received: by 2002:adf:c104:: with SMTP id r4-v6mr9244950wre.203.1528117398599; Mon, 04 Jun 2018 06:03:18 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id g88-v6sm207045wmc.27.2018.06.04.06.03.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 06:03:17 -0700 (PDT) From: Daniel Thompson To: flashrom@flashrom.org Date: Mon, 4 Jun 2018 14:02:42 +0100 Message-Id: <20180604130244.23912-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.17.0 X-Spam-Score: -4.5 (----) Subject: [flashrom] [RFC PATCH 0/2] Experimental Developerbox/CP2102 bitbang programmer X-BeenThere: flashrom@flashrom.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: flashrom discussion and development mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 This patchset contains a couple of experimental patches to allow me to recover the ROM of a 96Boards Developerbox. Basically I've hacked something together that appears to work and am interested in thoughts and opinions before I invest time to clean it up or optimize it any further. The two patches are entirely separable; the only commonality is that both are needed for Developerbox tool-free recovery to work (and that both currently contain questions in the patch description). Daniel Thompson (2): programmer: Add Developerbox/CP2104 bit bang driver flashchips: Add Macronix MX25U51245G Makefile | 24 +++- developerbox_spi.c | 296 +++++++++++++++++++++++++++++++++++++++++++++ flashchips.c | 40 ++++++ flashchips.h | 1 + flashrom.c | 12 ++ programmer.h | 12 ++ 6 files changed, 383 insertions(+), 2 deletions(-) create mode 100644 developerbox_spi.c --- 2.17.0