From patchwork Sun Oct 30 18:23:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 689010 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3t6QsC10LCz9t0H for ; Mon, 31 Oct 2016 05:25:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB8AEA7576; Sun, 30 Oct 2016 19:25:09 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fGAGgoIdBOmZ; Sun, 30 Oct 2016 19:25:09 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E1CD6A7579; Sun, 30 Oct 2016 19:25:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 240A7A7548 for ; Sun, 30 Oct 2016 19:24:54 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id szsi3GeY-7Mp for ; Sun, 30 Oct 2016 19:24:54 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by theia.denx.de (Postfix) with ESMTPS id E69CC4BA81 for ; Sun, 30 Oct 2016 19:24:48 +0100 (CET) Received: by mail-pf0-f195.google.com with SMTP id s8so6641399pfj.2 for ; Sun, 30 Oct 2016 11:24:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/8jGOE9WC2nbMXEyYKMl4QzSjSWIvSp0AtqqUr0Yvoo=; b=Wp1rWyTwd/Nj8InDphgE5lPlXGAKkE4EUCKhRLaJOV6xNKNhXKcKVgA9ILR0cWuWbZ 6wkX+CSetWk8iBOhltuDqaxTJTn9FnOcSQtGCx8QLJ0bsqRIhXXMOx+95piY9apHf0rZ dF2OIWdKhsuRJBlC0di4Q3OAaWcCARFBuze2Y3WBNFVvVXFRfcWzg8uWr8Zkk5XrAVRa tsVbldbpFMPi6rGbgU97eUmAZQ5oA9FnghDCi0YrFgnPNqxuPXlWUZw9Dx7WKYZyFjb0 5NecC39p5YS4RwZcXu/zQaA0iKEbCE0Ozl5RxucpKjY2bclNCQmJmdA9ZMAthUN5veCR 6Syg== X-Gm-Message-State: ABUngveVjByMxZkRGi+ukdH4IOQ/GVXX3lLbDBTDxIP5Ll2rHdl6dXeel/IlWDRDYmtsyw== X-Received: by 10.99.173.75 with SMTP id y11mr35929705pgo.130.1477851887498; Sun, 30 Oct 2016 11:24:47 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id k7sm31357901pan.8.2016.10.30.11.24.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Oct 2016 11:24:46 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 30 Oct 2016 23:53:35 +0530 Message-Id: <1477851833-23960-4-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477851833-23960-1-git-send-email-jagan@openedev.com> References: <1477851833-23960-1-git-send-email-jagan@openedev.com> Cc: Tom Rini , Stefan Roese , Jagan Teki Subject: [U-Boot] [PATCH v9 03/21] mtd: spi-nor: Kconfig: Add MTD_SPI_NOR entry X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Added CONFIG_MTD_SPI_NOR kconfig entry Signed-off-by: Jagan Teki Reviewed-by: Simon Glass --- drivers/mtd/Kconfig | 2 ++ drivers/mtd/spi-nor/Kconfig | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 drivers/mtd/spi-nor/Kconfig diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 3a9705c..3dc4221 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -41,4 +41,6 @@ source "drivers/mtd/nand/Kconfig" source "drivers/mtd/spi/Kconfig" +source "drivers/mtd/spi-nor/Kconfig" + source "drivers/mtd/ubi/Kconfig" diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig new file mode 100644 index 0000000..130b0a4 --- /dev/null +++ b/drivers/mtd/spi-nor/Kconfig @@ -0,0 +1,14 @@ +menuconfig MTD_SPI_NOR + tristate "SPI-NOR device support" + depends on MTD + help + This is the core SPI NOR framework which can be used to interact SPI-NOR + to SPI driver interface layer and the SPI-NOR controller driver. + + Unlike normal/generic spi controllers, they are few controllers which are + exclusively used to connect SPI-NOR devices, called SPI-NOR controllers. + So technically these controllers shouldn't reside at drivers/spi as these + may effect the generic SPI bus functionalities, so this SPI-NOR core acts + as a common core framework between the generic SPI controller drivers vs + SPI-NOR controller drivers for SPI-NOR device access. Note that from SPI-NOR + core to SPI drivers there should be an interface layer.