Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6352688imm; Wed, 27 Jun 2018 06:28:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNiWpQCBTyJGEzBJvG6Tu+RKxWEVUD6AcQr5Fc9aTBdrK6tqy6VSowSfY4HAWDUBcYZ3// X-Received: by 2002:a63:790b:: with SMTP id u11-v6mr3052178pgc.111.1530106114203; Wed, 27 Jun 2018 06:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530106114; cv=none; d=google.com; s=arc-20160816; b=oMC7IWKdukxnOub1V62930N9LuGwH7dj2TIpZcNcBmta2/HmiiBs0iUeEkewtPNL9f jin6AlFgJAuxJwaR59dQxafYVASJPxTwUpssD0hjqvYr+lgW3CB1DsDCvui6qf5k1MRG NdDSuGX3U9OSgDBJbRvaAL7pxIGK6xLVj7F0onu4KrNLrzlUHEJbk2nf1rYzt+49g99Y EaBl7OYFmWO06wMxtjOu0szPGuOC4zo7QNvXRknKN9aZDz6DwKrUtVpP9dSyFTQGfGxU PafEFPleqfIl6rzP6ZiBk2bJhIP3QvW25GbU3eQIpopXPVTvWQiPUbVobWvVkNWqkjK1 KhBQ== 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:dkim-signature:arc-authentication-results; bh=Gm3L6Se0BvBWf1yhSNGI9gTjy2+Us7pnXrQRpckv6lY=; b=ShMbIYa8trCWVAJvBMVV4uGBEl18dqI8cJycfBrkiyHJP5R5SMTys6p2G8rCUKWCdL ENwPTc1XkRDNFUVjhOHohRsYO5WUbyFhaTaTW4s5LD0J+lEy/Z7QYAj1SvzebFPWjhkD psa8Hrk0D1eeMusb1d/0AFPZ02Kjz0eparOYeeZkqNXRWh8Ktub3nZ/vmhn0bfns7Gcg SIprkYDcEcfYLZwvwkaYODa5H8WvWi1ZXU9bmrkeDJ/56acBv9KEcv2pIrDwNqqInCER HNUTJbYtbpKnFDejRNY18EsNzX6/ljD/ZiF9niu4UomflwHKrQEXDKbfB0I2TOlYkfaD JNWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p2AF8d0Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si3415157pge.342.2018.06.27.06.28.19; Wed, 27 Jun 2018 06:28:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p2AF8d0Z; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965199AbeF0NQd (ORCPT + 99 others); Wed, 27 Jun 2018 09:16:33 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:40871 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964873AbeF0NQ1 (ORCPT ); Wed, 27 Jun 2018 09:16:27 -0400 Received: by mail-ed1-f65.google.com with SMTP id m15-v6so3064597edr.7; Wed, 27 Jun 2018 06:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gm3L6Se0BvBWf1yhSNGI9gTjy2+Us7pnXrQRpckv6lY=; b=p2AF8d0ZlTXL6VM7rJC8QhpFweuPHtZBqDLPDzdKCz99TT4wWkyXd1GWyHeM7OTCM7 LHeEqk1nuoYO35WU49dEtaYnAuZeJFPvCKxy0lJMEMUskNV1H8Zq4Uy2XMmKy4C1wIuS nr9vuhP33GggoVvlH4QsnaIWBOXOyG8bLNLB60m277RoncZc+laWvYcKyrd3VA7aeGUv o1uikP3X9fzTBc3+Lgxs8mhXRTaA6/mAGu4kk4ItP3/tmsRCmoxC052QjYGNiOYf8HKf J97KWGZPtFv0Qs8R52a/pLgDqJPH+oSGb37hCxyqZmNzSQGjHD1ZFyuDZIp2mx6HQ8x4 bgYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gm3L6Se0BvBWf1yhSNGI9gTjy2+Us7pnXrQRpckv6lY=; b=NmQ7lxaU9POCRnS32oSupLHkUn6rHITN67PAV48qjW5jaUqKS3EcpzssGJHi+jh/7p lXQ7FgLrZr8zCNE5L8UamwrxBCLk9KvfpgXZ9+bX9+zqNVjR6l17vTnpqHPG/YbkoJ+X 0+4pL2veSV5N0qwlcbMMTnab6n9vE/fo+OVe6dnx6WWxbnqGU22Q8SDoy/4Z8p0yizq3 RUk9DwIjyRISmBT5jnhG9Nqe+LPOu+NDq8ohBdET6mnUgEjJRwivq0uy2Nz5aioielOh yA/XClJHaA4R6DNbvCb5FsI1s7cjjoFeaLYjg7+S07BuLyhlhGKpx4bTcFgs2teYjwsg p8Ag== X-Gm-Message-State: APt69E2T+z9wGPhCN7CHkbdp3Z/I9A9Fv1jgCMN/QY94gB0B7VCOcWBe F+CgtF3ZRSXzs5FjWf2rEQ== X-Received: by 2002:aa7:c803:: with SMTP id a3-v6mr1468704edt.124.1530105385548; Wed, 27 Jun 2018 06:16:25 -0700 (PDT) Received: from carbonite.sagemdenmark.dk ([130.228.251.5]) by smtp.gmail.com with ESMTPSA id i34-v6sm1953000edc.29.2018.06.27.06.16.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 06:16:24 -0700 (PDT) From: Piotr Bugalski To: Mark Brown , linux-spi@vger.kernel.org, David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Cyrille Pitchen , Tudor Ambarus , Piotr Bugalski , Piotr Bugalski Subject: [RFC PATCH v2 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2 Date: Wed, 27 Jun 2018 15:16:08 +0200 Message-Id: <20180627131609.13681-6-bugalski.piotr@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180627131609.13681-1-bugalski.piotr@gmail.com> References: <20180627131609.13681-1-bugalski.piotr@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kernel contains QSPI driver strongly tied to MTD and nor-flash memory. New spi-mem interface allows usage also other memory types, especially much larger NAND with SPI interface. This driver works as SPI controller and is not related to MTD, however can work with NAND-flash or other peripherals using spi-mem interface. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/Kconfig | 9 --------- drivers/mtd/spi-nor/Makefile | 1 - drivers/spi/Kconfig | 9 +++++++++ drivers/spi/Makefile | 1 + drivers/{mtd/spi-nor => spi}/atmel-quadspi.c | 0 5 files changed, 10 insertions(+), 10 deletions(-) rename drivers/{mtd/spi-nor => spi}/atmel-quadspi.c (100%) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index 6cc9c929ff57..44fe8018733c 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -39,15 +39,6 @@ config SPI_ASPEED_SMC and support for the SPI flash memory controller (SPI) for the host firmware. The implementation only supports SPI NOR. -config SPI_ATMEL_QUADSPI - tristate "Atmel Quad SPI Controller" - depends on ARCH_AT91 || (ARM && COMPILE_TEST) - depends on OF && HAS_IOMEM - help - This enables support for the Quad SPI controller in master mode. - This driver does not support generic SPI. The implementation only - supports SPI NOR. - config SPI_CADENCE_QUADSPI tristate "Cadence Quad SPI controller" depends on OF && (ARM || ARM64 || COMPILE_TEST) diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile index f4c61d282abd..a552efd22958 100644 --- a/drivers/mtd/spi-nor/Makefile +++ b/drivers/mtd/spi-nor/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o obj-$(CONFIG_SPI_ASPEED_SMC) += aspeed-smc.o -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 diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index ad5d68e1dab7..88f9c007d825 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -83,6 +83,15 @@ config SPI_ATMEL This selects a driver for the Atmel SPI Controller, present on many AT91 ARM chips. +config SPI_ATMEL_QUADSPI + tristate "Atmel Quad SPI Controller" + depends on ARCH_AT91 || (ARM && COMPILE_TEST) + depends on OF && HAS_IOMEM + help + This enables support for the Quad SPI controller in master mode. + This driver does not support generic SPI. The implementation only + supports spi-mem interface. + config SPI_AU1550 tristate "Au1550/Au1200/Au1300 SPI Controller" depends on MIPS_ALCHEMY diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index cb1f4378b87c..1a08e5bfcee9 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o obj-$(CONFIG_SPI_ALTERA) += spi-altera.o obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o +obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o obj-$(CONFIG_SPI_ATH79) += spi-ath79.o obj-$(CONFIG_SPI_AU1550) += spi-au1550.o obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c similarity index 100% rename from drivers/mtd/spi-nor/atmel-quadspi.c rename to drivers/spi/atmel-quadspi.c -- 2.11.0