Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1592426ybz; Thu, 23 Apr 2020 01:42:55 -0700 (PDT) X-Google-Smtp-Source: APiQypISho1e5/MAzzroob3ImgMz8r5Iu9PXSD7otXy6/QF6O8tlRJbBqxdl1abZdwIJO0aruwqZ X-Received: by 2002:a17:906:2f8f:: with SMTP id w15mr1813061eji.255.1587631375303; Thu, 23 Apr 2020 01:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587631375; cv=none; d=google.com; s=arc-20160816; b=S5VVAoeFonA1sCJKFzDPti7E4vO9FS37121KvPnKKr1VKGMwcVbazm0T4QjKMiuoJV E8YFceJVr3nHVwEaO8qSxZ4rdD/st1j+0yfC5kZDNR0lnrqbXJMl+SepmGt0I9zNK5QN hSbfjuQCiyN5wILDQNdzzoDOWLo81iCpEgxfsuNAbhQ2KPjBKLj4h7IDnYEOkS7DdxFI LhsC6rbaUw2a1cL92ODJrxS197r02IN+JTuWqRayxpnqIwzdH93tQJ6Ewxf4u4tka3NC 8LF/xigBO1KddhXqbEi/i6tlXuosxajKr79GVe3TTFroNquc3idmRHzYSyh1FZBusJM8 Dwaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9P/rE0WDtAjLWUMpbluxZV0cHidAj5EDp/GdoOpqB+c=; b=u2ayQfTyizPNnYSWg5NW168FZzdPyQpor4FnvyeYnYPcz912RdnTzvsUQrUiEFxmFc 1jw3jvMNEdKj+ABfYJ/vOnUZhm0DP/RZywkrVbjrE0UamwdGblemMQJ9DY9cGKXpDM6c Q8GV3ZwbWNXRxnZPCu1FUB15VYyvdNC5okxNNm/G57VH8PvmpJzh7WyRrjvyyUmm8rSO /97DSJB3b1lLxZN37w3AL4QTMK+GyzpuYz6jRjlVKCTiPAuJN910eJNxnv/Qp5LukrLJ upNQXUWvgx7i2iI2nHl13lwhIrkKIHMZDQVh8Ci9jLyx1B4rsHnSxcaHi0od7UkzzTdS Z8gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si837941edy.179.2020.04.23.01.42.31; Thu, 23 Apr 2020 01:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbgDWIi6 (ORCPT + 99 others); Thu, 23 Apr 2020 04:38:58 -0400 Received: from twhmllg3.macronix.com ([122.147.135.201]:54832 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgDWIi5 (ORCPT ); Thu, 23 Apr 2020 04:38:57 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id 03N8ck1o034673; Thu, 23 Apr 2020 16:38:47 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: tudor.ambarus@microchip.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com Cc: juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Mason Yang Subject: [PATCH v2 1/2] mtd: spi-nor: macronix: Add support for mx25l51245g Date: Thu, 23 Apr 2020 16:38:42 +0800 Message-Id: <1587631123-25474-2-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1587631123-25474-1-git-send-email-masonccyang@mxic.com.tw> References: <1587631123-25474-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG3.macronix.com 03N8ck1o034673 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mx25l51245g is a mass production for new design and replace mx66l51235l(phase out). Validated by read, erase, read back, write and read back on Xilinx Zynq PicoZed FPGA board which included Macronix SPI Host (driver/spi/spi-mxic.c). Signed-off-by: Mason Yang --- drivers/mtd/spi-nor/macronix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index ab0f963..c864ac8 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -67,6 +67,9 @@ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) }, + { "mx25l51245g", INFO(0xc2201a, 0, 64 * 1024, 1024, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_4B_OPCODES) }, { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, -- 1.9.1