Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp828623imu; Wed, 16 Jan 2019 08:14:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XPCDtPu7JVF1W4vyqtp5fa7rnfbSEWRzOZxeTFTEN+cJ6nIvwBRUapc3aHqw0FDhy22UW X-Received: by 2002:a62:75d1:: with SMTP id q200mr10544906pfc.254.1547655253636; Wed, 16 Jan 2019 08:14:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547655253; cv=none; d=google.com; s=arc-20160816; b=huZMlQSlvgfjjJKszNMmJ8en5KtSyGxB3NkOqz05tKgoiVzUdJuLT4TLhhVCSo7ETU Cc0Vs3ZK8a578ywwmREAPNNt8AY7RHTfy3wpLhMx9LJSUwHnpGCxjey0K3n1y86IRRKn LZ3+qhEfjEa3xxYvm5XJ3AzhJmBo/GMZv6SMKd3StYsbS5vVPNSHoOfm7jDpftVndfto Ig8ST+vgWq0BI/WAhoU0ZUCFZJTCgAFJjv3VhuKLUcqqYamqJULSSvk31DtlqHNobxpD tMsaIeyh7y9Zsq4M8Q0xf7au8q+L8/jdKvQv2H/mGGXG568Sud5CSAgMgXOSOWzB+PIa 2amA== 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=KuM3oUn5IYkjMZjaft8eJ7KlTSsPA1T3CQScrrkKUE8=; b=VReoj189NraPWle4Z7+bVaXXCwX/UjwxRfWdVUzgChNlLJyzbM+y8ab/iuBEHu/Iac vbkBPnuHxnsLwNQKNLLnaYBHiSnHjiOWzHiSINQQiJSqR7U2MFRf1CfltNl88luBxpcV WIGBmGJg/oRrQe6ktHS7Y8nDggU9znBzNTSfuRukdnF+JIee7D/yBHFr1nilReSDdh2C 8RlZ+Elbgj4Gl6o4jsly82lZ2HNuejRADAtah02SfSzMRsI+MiSCoPwdWwTuD4jUqXCM L372I+rEbMQbsN4CktSTdlIri6m36BUOJrip1aU3o2LD6OfL7sTjY03eh/GtY3b/Uuko Hqjg== 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 87si6800471pfs.7.2019.01.16.08.13.46; Wed, 16 Jan 2019 08:14:13 -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 S1728290AbfAPCMO (ORCPT + 99 others); Tue, 15 Jan 2019 21:12:14 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:25783 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727988AbfAPCMO (ORCPT ); Tue, 15 Jan 2019 21:12:14 -0500 X-UUID: 54bac150d79242769a35f136ec056525-20190116 X-UUID: 54bac150d79242769a35f136ec056525-20190116 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 815926948; Wed, 16 Jan 2019 10:12:08 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 16 Jan 2019 10:12:07 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 16 Jan 2019 10:12:07 +0800 From: Ryder Lee To: Marek Vasut , Brian Norris , Boris Brezillon CC: Rob Herring , Weijie Gao , , , , , , Ryder Lee Subject: [PATCH v2 3/3] mtd: spi-nor: mtk-quadspi: rename config to a common one Date: Wed, 16 Jan 2019 10:12:05 +0800 Message-ID: <761c9a0a482795dbc48949e982ab46987b737e08.1547538621.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <74d710ed89fd505a49bce53b51f6cb489e313dbb.1547538621.git.ryder.lee@mediatek.com> References: <74d710ed89fd505a49bce53b51f6cb489e313dbb.1547538621.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 --- Changes since v2: -rebase to v5.0-rc1. -sort the config in an alphabetical order. Changes since v1: none. --- 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 44fe801..414e887 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 @@ -66,6 +58,14 @@ config SPI_HISI_SFC help This enables support for hisilicon SPI-NOR flash controller. +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_NXP_SPIFI tristate "NXP SPI Flash Interface (SPIFI)" depends on OF && (ARCH_LPC18XX || COMPILE_TEST) diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile index a552efd..4e4d400 100644 --- a/drivers/mtd/spi-nor/Makefile +++ b/drivers/mtd/spi-nor/Makefile @@ -4,7 +4,7 @@ obj-$(CONFIG_SPI_ASPEED_SMC) += aspeed-smc.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