From patchwork Thu Nov 16 08:39:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Prevor X-Patchwork-Id: 838442 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=) 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 3ycvpl6Ppbz9t62 for ; Thu, 16 Nov 2017 19:41:03 +1100 (AEDT) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1eFFiH-0007HX-8E; Thu, 16 Nov 2017 09:39:57 +0100 Received: from mx.sdf.org ([205.166.94.20]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eFFi1-0007GM-MB for flashrom@flashrom.org; Thu, 16 Nov 2017 09:39:55 +0100 Received: from [10.0.0.245] (c-68-80-222-147.hsd1.pa.comcast.net [68.80.222.147]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id vAG8dcRv028953 (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128 bits) verified NO) for ; Thu, 16 Nov 2017 08:39:39 GMT From: Harry Prevor To: flashrom@flashrom.org Message-ID: <631298f2-5467-7849-b1ca-0b86e5e30ece@sdf.org> Date: Thu, 16 Nov 2017 03:39:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Score: 0.8 (/) Subject: [flashrom] Patch to add Librem 15 laptop to flashrom whitelist 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: , 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 Attached is a patch to whitelist the Librem 15 laptop on flashrom, so that I don't have to write "force_I_want_a_brick" every time I use it. I also added the laptop's info to print.c so it shows up as a supported device. This is my first ever patch, so please let me know if there is anything missing or that I can do to improve it! Added as per this PureOS bug: https://tracker.pureos.net/T170 P.S. Please CC me on any replies as I am not receiving messages from this list. Thanks! From c404b38e7f78be5544089715e7e5ecd84e55e70f Mon Sep 17 00:00:00 2001 From: Harry Prevor Date: Thu, 16 Nov 2017 03:24:48 -0500 Subject: [PATCH] Added the Purism Librem 15 laptop to whitelist and print.c, as per: https://tracker.pureos.net/T170 Change-Id: I9255f3e7e71ab84283feb5b3895191777510e893 Signed-off-by: Harry Prevor --- board_enable.c | 1 + print.c | 1 + 2 files changed, 2 insertions(+) diff --git a/board_enable.c b/board_enable.c index b6e17ef..435b272 100644 --- a/board_enable.c +++ b/board_enable.c @@ -2458,6 +2458,7 @@ const struct board_match board_matches[] = { {0x10DE, 0x0360, 0x1462, 0x7250, 0x10DE, 0x0368, 0x1462, 0x7250, NULL, NULL, NULL, P3, "MSI", "MS-7250 (K9N SLI)", 0, OK, nvidia_mcp_gpio2_raise}, {0x1011, 0x0019, 0xaa55, 0xaa55, 0x8086, 0x7190, 0, 0, NULL, NULL, NULL, P3, "Nokia", "IP530", 0, OK, fdc37b787_gpio50_raise_3f0}, {0x8086, 0x3B30, 0x1025, 0x0379, 0x8086, 0x3B09, 0x1025, 0x0379, "^EasyNote LM85$", NULL, NULL, P2, "Packard Bell","EasyNote LM85", 0, OK, p2_whitelist_laptop}, + {0x8086, 0x9d48, 0x8086, 0x9d48, 0x8086, 0x1904, 0x8086, 0x2015, "^Librem 15", NULL, NULL, P2, "Purism", "Librem 15", 0, OK, p2_whitelist_laptop}, {0x8086, 0x0154, 0x8086, 0x0154, 0x8086, 0x1e55, 0x8086, 0x1e55, "RV11$", "Roda", "Lizard RV11", P2, "Roda", "RV11", 0, OK, p2_whitelist_laptop}, {0x8086, 0x24d3, 0x144d, 0xb025, 0x8086, 0x1050, 0x144d, 0xb025, NULL, NULL, NULL, P3, "Samsung", "Polaris 32", 0, OK, intel_ich_gpio21_raise}, {0x1106, 0x3099, 0, 0, 0x1106, 0x3074, 0, 0, NULL, "shuttle", "ak31", P3, "Shuttle", "AK31", 0, OK, w836xx_memw_enable_2e}, diff --git a/print.c b/print.c index 08bad02..32bca59 100644 --- a/print.c +++ b/print.c @@ -1173,6 +1173,7 @@ const struct board_info laptops_known[] = { B("IBM/Lenovo", "3000 V100 TF05Cxx", OK, "http://www5.pc.ibm.com/europe/products.nsf/products?openagent&brand=Lenovo3000Notebook&series=Lenovo+3000+V+Series#viewallmodelstop", NULL), //B("MSI", "GT60-2OD", OK, "http://www.msi.com/product/nb/GT60_2OD.html", NULL), requires layout patches B("Teclast", "X98 Air 3G", OK, NULL, NULL), + B("Purism", "Librem 15", OK, "https://puri.sm/shop/librem-15/", "Flashrom is used by the manufacturers before shipping!"), #endif {0}, -- 2.15.0