Received: by 10.192.165.148 with SMTP id m20csp199701imm; Fri, 4 May 2018 08:55:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFsw/L0nUZs5SND5/mb2aEwhUe+vl6jx5xRHSgb9nfZD0i/1yeWj7+STwYwGeBw9WKeVk2 X-Received: by 2002:a17:902:b087:: with SMTP id p7-v6mr26569776plr.227.1525449304461; Fri, 04 May 2018 08:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525449304; cv=none; d=google.com; s=arc-20160816; b=HnjmL1iSi899gLwljVgUKiaKnQbUWJzHWDlM6MNlkIvKWyvHG1FxjFUkplO1eBl+ay yx/lUtnYeTwsxFIzJsK3ckP9ddy1ZwUFvUapiga/Dik2kYzu3YaogTu1k7AowBoHBLXm SnywXLzLc6I3WH6ClgiXKIHpnZ/UEU7oss1CNMb7W2SHQGQXm5k/9qPyTJ02/cm4Ia6y gCGcJ25mM+wFg+5zXFv6X+76bwAAznhaCpeoBufU7s36q4xHgfxs2duF0LhgHijv6yEi kdzQZSHiZjzt7grSNUeHLr6T8kcbFmFfWZW5gHw+LJ0cidvghf56QQlJxtK5p8EjL6dc 8lwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=DfZD0GBkxbVkL/NIFIJn7K9xQvpQuM7f/9Wl2o3X0jU=; b=bwCMh5IcXfC16IlJWf7I4c6bmcZUArC6lKflex+swrDt9GE/Ts8xFFLTBnP0Gcw7Sd 9jWkUU8+27dwP84Bbmv3kIxO/gQKVqN9m4IFUiIIiyX4TkN96urRa/khzuKqOxfkrqPH UOtoO0jJrN/2/SrUczUWyk7Q3ime6zEWD4c5utgOdYahhP/wL8UnHaXtVis6h+6cypkn VnevHESxhsEnIu9DCiOOylN7hyAn2fPpZUBxXQAtJ2jVW6931uWtwwJFGcCv4bS7VDzW lojp/eOgiMhs/g6oI6zxS+U14sGWrkddRPWXPJ5djZOS9hNMnt2iGi/7uBWxZVuTQVpw eauA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18-v6si16237266plo.586.2018.05.04.08.54.50; Fri, 04 May 2018 08:55:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbeEDPxX (ORCPT + 99 others); Fri, 4 May 2018 11:53:23 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:53879 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbeEDPxV (ORCPT ); Fri, 4 May 2018 11:53:21 -0400 X-IronPort-AV: E=Sophos;i="5.49,363,1520924400"; d="scan'208";a="13799637" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 May 2018 08:53:01 -0700 Received: from m19893.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Fri, 4 May 2018 08:53:01 -0700 From: Radu Pirea To: , CC: , , , , , , , Radu Pirea Subject: [PATCH] mtd: spi-nor: add support for Microchip 25LC256 Date: Fri, 4 May 2018 18:54:04 +0300 Message-ID: <20180504155404.5285-1-radu.pirea@microchip.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added geometry description for Microchip 25LC256 memory. Signed-off-by: Radu Pirea --- drivers/mtd/devices/m25p80.c | 3 +++ drivers/mtd/spi-nor/spi-nor.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index a4e18f6aaa33..1e359d811261 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -372,6 +372,9 @@ static const struct spi_device_id m25p_ids[] = { { "mr25h10" }, /* 1 Mib, 40 MHz */ { "mr25h40" }, /* 4 Mib, 40 MHz */ + /* Microchip */ + { "25lc256" }, + { }, }; MODULE_DEVICE_TABLE(spi, m25p_ids); diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index d445a4d3b770..6341c86be647 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1076,6 +1076,9 @@ static const struct flash_info spi_nor_ids[] = { { "mx66l1g45g", INFO(0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) }, + /* Microchip */ + { "25lc256", CAT25_INFO(32 * 1024, 1, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, + /* Micron */ { "n25q016a", INFO(0x20bb15, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q032", INFO(0x20ba16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) }, -- 2.16.2