Message ID | 20200326114257.1782-4-rasmus.villemoes@prevas.dk |
---|---|
State | Changes Requested |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=D6y9/FVc; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48p36P3M6Jz9sQx for <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2020 22:43:57 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5542A81834; Thu, 26 Mar 2020 12:43:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="D6y9/FVc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C1CB81264; Thu, 26 Mar 2020 12:43:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on0704.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::704]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7F4C981264 for <u-boot@lists.denx.de>; Thu, 26 Mar 2020 12:43:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PkSUWgZ4FwyWwAVY+lXvsradWc8yqsKbmySA7Eblm09xsY6DU2AuHeb3Snkde+PFdOptMTFEs+nAu7qJzngLpAbmt325YXYzUpx+9NgjFuPNViFYVuJYe4jbRZnBStK/n7nJJy/KhBEv1Vni0t5EEJOIFQFPBXeL1J+sMofstrqjJ8YFIm+trwQoerusckymDoYalPRlMTPIBzmuqRPS5uv6+bnNEIwR9PMqF7+0Vzbjhe3tV159vhnUTEN/dM8zwD5FIiXFQbRRye/0gQ2NNATzqoByVnfQUhU2IVslZq266mrK5mUb5bsEgdYGfRIPn3sWxBfimUUWPLl9XrpDsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X4b0P6AXF8p3K1ejXf3rUjYrZodRFhaa+W6f08OK9ow=; b=eXXaRdB6mYRDQ1rdQ697olMcKl37aFjLy/YDEPAgxkdO5CMe2urOhQwaayIrUqh90aw3K91KQWqGaaRMjBJNeuaVrGkMsiO/QLFMvPbP0w90j6ZtpLzrR8eSwzFInfnixxSS0I9Z30BPCpmPaRxtlnpl50GWCQnXWijDxhhs1Q41tNNeQNN/ZbiaeBzTOUoGws6LE6ltEcF8eMGIa/CXK9HPewsLR1dx80a1GaNGFN5DAgS4fb3048Rd1jCU16Etvx9bEjGho3znj7NdzSmd0IoGbrrittgm1mg+RZIygjS/uTCHU5fFiMfxULISMH9FELrewmxbqtNysgDmcdRS4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X4b0P6AXF8p3K1ejXf3rUjYrZodRFhaa+W6f08OK9ow=; b=D6y9/FVcdiUpC9wWs6V7F3uNTydzLZpq6B+usEIVRbEIi9mFICWv5X2uAYWc7QYgspn2eG8DGyAEKULkozx5r4XEDXgwyQi4st+anWiRFMohwRgB7wFr1StihQiHLRUgg7mfNTpl3BE/YmiprAm1jYrLh12YSctXM8U48b7FZ2k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasmus.villemoes@prevas.dk; Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (20.178.126.85) by VI1PR10MB3583.EURPRD10.PROD.OUTLOOK.COM (10.186.160.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Thu, 26 Mar 2020 11:43:16 +0000 Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::e58f:1097:b71d:32c7]) by VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::e58f:1097:b71d:32c7%5]) with mapi id 15.20.2835.023; Thu, 26 Mar 2020 11:43:16 +0000 From: Rasmus Villemoes <rasmus.villemoes@prevas.dk> To: u-boot@lists.denx.de Cc: Jagan Teki <jagan@amarulasolutions.com>, Vignesh R <vigneshr@ti.com>, Rasmus Villemoes <rasmus.villemoes@prevas.dk> Subject: [PATCH 3/3] mtd: spi-nor: set SPI_NOR_HAS_LOCK for Macronix mx25l3205d Date: Thu, 26 Mar 2020 12:42:57 +0100 Message-Id: <20200326114257.1782-4-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200326114257.1782-1-rasmus.villemoes@prevas.dk> References: <20200326114257.1782-1-rasmus.villemoes@prevas.dk> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM6PR10CA0092.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::33) To VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (5.186.116.45) by AM6PR10CA0092.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18 via Frontend Transport; Thu, 26 Mar 2020 11:43:16 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [5.186.116.45] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 103570f5-7848-4d1f-04ac-08d7d17adfa3 X-MS-TrafficTypeDiagnostic: VI1PR10MB3583: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR10MB358359A0D57DC0DFD3D45CC093CF0@VI1PR10MB3583.EURPRD10.PROD.OUTLOOK.COM> X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0354B4BED2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(39840400004)(366004)(136003)(376002)(396003)(54906003)(956004)(81166006)(316002)(1076003)(16526019)(107886003)(6916009)(8676002)(6486002)(86362001)(81156014)(186003)(5660300002)(8936002)(44832011)(6512007)(4326008)(8976002)(36756003)(2616005)(6506007)(6666004)(52116002)(478600001)(2906002)(26005)(66946007)(66556008)(66476007); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR10MB3583; H:VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: prevas.dk does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QB+QHfYEBbWLcxpF233mq5ESoyi5SDcfn9sIz10hmTfPBiCwxz0CbaBWvYcS9x7tSlPMqfKP2WzvgqlV9sCuh1fuwTlU6QiY0XmyAxobtrh0hl53Kh4+ak8dX9VYmhUCc9H3Gp08PtPQ7PFywi6tl27zzRZG18GjsbOmVl9h/gG2TCVbkqgvj3+OF83OzjRe2eZ/2slOoKqvdsk7UbJDXTyYZ2XpwHMfNV6a+5ue+ah5DMJypjnvroLqiS9UB9RDEk6s3jcL4YdR/ksWbYpz6oXEUbXJCO98uTbbGGCeouc5Vmsyk4Xi7UPFbcYYTXzP9z07NsoKyE18l5sjsMls5NckrAF55l58ov/1N7x6veDdz7+DiIsOz0T/XZWxamlUBCoMZacJYXfhYncSpB699xSxGHv0jzMM6dCTDR4IpOlumr7jD8UtPMrVEH+LVgmP X-MS-Exchange-AntiSpam-MessageData: 3VkVG199Cc1oJyKtlgIZFlPzirEVAGtTsacsbd9jfht4/13Oxycm6bByp+zv1hj/w3Z0LjSVUrsOHKUEneERTZhZVw94pJ8pYnzeDXiIpxIEkUEaF6aUGXXI+NW0cEOSfX3VuBujc6a4exblCyGhww== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 103570f5-7848-4d1f-04ac-08d7d17adfa3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2020 11:43:16.6031 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eXwg3LYa4Uneaa6LKyFaBTLhCKMVdu8pGA6mUQTdlXfcVbljClVGWAP9C9PldU71d5rgOvgdpLk2AY0NnrlVSGRKu36OW5RL3NiTnCfI21M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3583 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
mtd: spi-nor: add support for locking on Macronix nor flashes
|
expand
|
diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 973b6f86c9..5beb3cb3ad 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -143,7 +143,7 @@ const struct flash_info spi_nor_ids[] = { { INFO("mx25l4005a", 0xc22013, 0, 64 * 1024, 8, SECT_4K) }, { INFO("mx25l8005", 0xc22014, 0, 64 * 1024, 16, 0) }, { INFO("mx25l1606e", 0xc22015, 0, 64 * 1024, 32, SECT_4K) }, - { INFO("mx25l3205d", 0xc22016, 0, 64 * 1024, 64, SECT_4K) }, + { INFO("mx25l3205d", 0xc22016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) }, { INFO("mx25l6405d", 0xc22017, 0, 64 * 1024, 128, SECT_4K) }, { INFO("mx25u2033e", 0xc22532, 0, 64 * 1024, 4, SECT_4K) }, { INFO("mx25u1635e", 0xc22535, 0, 64 * 1024, 32, SECT_4K) },
This sets the SPI_NOR_HAS_LOCK for the mx25l3205d nor flash, to enable use of the "sf protect" subcommand for that. Reading the data sheets for various other Macronix flashes suggest they should also be able to use the new mx_* lock functions, but this is the chip I've tested them on. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)