Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7648108imu; Wed, 14 Nov 2018 22:29:31 -0800 (PST) X-Google-Smtp-Source: AJdET5d8AI0PSqttPoAUUV+EOUTcv7kOB7vCY+Wx8TBtkFDsaL4mu6j7UYVP0PZxZbtssb9CUxwy X-Received: by 2002:a63:f30d:: with SMTP id l13mr4688775pgh.399.1542263371354; Wed, 14 Nov 2018 22:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542263371; cv=none; d=google.com; s=arc-20160816; b=0soXNZMwjAtg9iETtENvsWxAyzQ5JBH/RQNdk52cJ2kR4pB/ALU4f6y0MPcxL8SY1r nxeGzZlg2wMI334PGHdehhJcWtRUNDSaf9cDBL0kSXB6f9sfBm70PUxCF0slGInutEEL bMiXPz9zm28Ay55QuKsMPmqbRE0VWO7t2kQSNWcoJj1Xi7dX5cVgz8wVKuvpw1oqfU5S 9Z+I41ZdbJGTsVNhMBXhsoOK0cQLvHps6FyzWtzAVNlb2zYHWngSP8W+TSYdv8BmNyw4 j2wlZvZ9nyJVbDDOcHUc22QG5lQTwnfX32NHFn4FwuXRrdXV24hbLFsChC1buMtyKUGm kEfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=e+dNI+Y2OTsdh8oGIVpIi1c4VnccGfELh1kkwwUrBjg=; b=NSrB1NGBmDio7Kinpf6tdSABBv5vk5MLOHkZy9zVhOf3nWbjPuaz+FfjYQ21nGEfIZ jsIJ13JK5QGimiWaqBn8b3LGucehjVajJqpCsCja/5nn/v4mE77S3lJALSRw3v0Oy7z+ +9zppO2UeqXgQwwV9co5fOY0o6U+0Bef6eJipMZ1YEVlM7vLZZ330TK5UKgsfVHH8YvI 4nfNkGBkrI+OB0G4p2opPkXAGmh1joqhxcehu3unpcWmlssRWOc6Vy9x5iqnS/8qlBOk CZN6HjtlmA8G/fHyXH4OlHNJuq5G8GH40a0r4s638wZx51AgPgfVEGLff/tUr4Ru/Q3o 4JAg== 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 b14si1698891pfc.156.2018.11.14.22.29.17; Wed, 14 Nov 2018 22:29:31 -0800 (PST) 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 S1728862AbeKOQd2 (ORCPT + 99 others); Thu, 15 Nov 2018 11:33:28 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:45895 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726840AbeKOQdW (ORCPT ); Thu, 15 Nov 2018 11:33:22 -0500 X-UUID: 99431bc432a04450a353a6211aed048f-20181115 X-UUID: 99431bc432a04450a353a6211aed048f-20181115 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 897778154; Thu, 15 Nov 2018 14:26:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 15 Nov 2018 14:26:38 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 15 Nov 2018 14:26:38 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , , Weijie Gao , Roy Luo , Guochun Mao , , , , , Ryder Lee Subject: [PATCH 4/4] mtd: spi-nor: mtk-quadspi: rename config to a common one Date: Thu, 15 Nov 2018 14:26:26 +0800 Message-ID: <45132f6a1f9ea82dd8312a60815dc0007450f56e.1542262833.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1dc7b27cbad59c413d7076ff7d16b6757014d727.1542262833.git.ryder.lee@mediatek.com> References: <1dc7b27cbad59c413d7076ff7d16b6757014d727.1542262833.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AD5F4692042CDB387323401C749B70EA0DBF0FA39D8A9409D0164824CBBE7BBC2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The quadspi is a generic communication interface which could be shared with other MediaTek SoCs. Hence rename it to a common one. Signed-off-by: Ryder Lee --- drivers/mtd/spi-nor/Kconfig | 16 ++++++++-------- drivers/mtd/spi-nor/Makefile | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index 6cc9c92..2062611 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -7,14 +7,6 @@ menuconfig MTD_SPI_NOR if MTD_SPI_NOR -config MTD_MT81xx_NOR - tristate "Mediatek MT81xx SPI NOR flash controller" - depends on HAS_IOMEM - help - This enables access to SPI NOR flash, using MT81xx SPI NOR flash - controller. This controller does not support generic SPI BUS, it only - supports SPI NOR Flash. - config MTD_SPI_NOR_USE_4K_SECTORS bool "Use small 4096 B erase sectors" default y @@ -86,6 +78,14 @@ config SPI_NXP_SPIFI Flash. Enable this option if you have a device with a SPIFI controller and want to access the Flash as a mtd device. +config SPI_MTK_QUADSPI + tristate "MediaTek Quad SPI controller" + depends on HAS_IOMEM + help + This enables support for the Quad SPI controller in master mode. + This controller does not support generic SPI. It only supports + SPI NOR. + config SPI_INTEL_SPI tristate diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile index f4c61d2..7f4b6f6 100644 --- a/drivers/mtd/spi-nor/Makefile +++ b/drivers/mtd/spi-nor/Makefile @@ -5,7 +5,7 @@ obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o obj-$(CONFIG_SPI_CADENCE_QUADSPI) += cadence-quadspi.o obj-$(CONFIG_SPI_FSL_QUADSPI) += fsl-quadspi.o obj-$(CONFIG_SPI_HISI_SFC) += hisi-sfc.o -obj-$(CONFIG_MTD_MT81xx_NOR) += mtk-quadspi.o +obj-$(CONFIG_SPI_MTK_QUADSPI) += mtk-quadspi.o obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o obj-$(CONFIG_SPI_INTEL_SPI) += intel-spi.o obj-$(CONFIG_SPI_INTEL_SPI_PCI) += intel-spi-pci.o -- 1.9.1