From patchwork Wed Jul 1 16:08:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 490230 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 A92EE1402B0 for ; Thu, 2 Jul 2015 02:08:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 255234B62A; Wed, 1 Jul 2015 18:08:54 +0200 (CEST) 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 KSt6bg10DDaj; Wed, 1 Jul 2015 18:08:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AED5D4B61C; Wed, 1 Jul 2015 18:08:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 84DD64B61C for ; Wed, 1 Jul 2015 18:08:46 +0200 (CEST) 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 D6nTPYFjASEe for ; Wed, 1 Jul 2015 18:08:46 +0200 (CEST) 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-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by theia.denx.de (Postfix) with ESMTPS id 807C84B617 for ; Wed, 1 Jul 2015 18:08:41 +0200 (CEST) Received: by pdbep18 with SMTP id ep18so28140060pdb.1 for ; Wed, 01 Jul 2015 09:08:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id; bh=3QLAh/bPViwgKRcjCq9+UaPoY9BvGW6Yeh7lMhKz1TI=; b=Z3ST9N5ntna6Ra+7OBaNYvMTpnbTQtKe0cxvz2fHIMokAvADyKtnSjY+uT2mVLJkA1 6RbtM4M1Q/m6/NpSjWxE3eAGvjIEkCv3oq04E5pLLBEeID8///F8vAgXHBZQlhfufHwi +1spGa1/cOuuitzVjjpJXi1LXHh5wJIQcmKP3uIDVYcFOwwYebNxkUXkm/FXmdJoYqRm 3dZqhQigwZZo61EYtpQIJqUkRetmTNEzCBGcbntwLLG/pUSZFsi0sNhWYiYBkKY8nkA2 dmixmMEPVJqRdQGOaZ2ycQ+YtdjWyxXR1cEAN5wybUbrc0eWtb7JfCh+DvszL6CeXims asmA== X-Received: by 10.70.54.7 with SMTP id f7mr55801910pdp.75.1435766919227; Wed, 01 Jul 2015 09:08:39 -0700 (PDT) Received: from localhost.localdomain ([123.236.183.171]) by mx.google.com with ESMTPSA id ra10sm2761524pab.19.2015.07.01.09.08.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 09:08:37 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 1 Jul 2015 21:38:17 +0530 Message-Id: <1435766897-5827-1-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 1.9.1 Cc: Jagan Teki Subject: [U-Boot] [PATCH v2 07/20] sf: Kconfig: Add SPI_FLASH_DATAFLASH 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 SPI_FLASH_DATAFLASH entry on Kconfig with help description. data flash driver comes with good decription, hence moved the same on to kconfig help decription. Signed-off-by: Jagan Teki Reviewed-by: Simon Glass Cc: Haikun Wang --- Changes for v2: - Added more help decription. drivers/mtd/spi/Kconfig | 15 +++++++++++++++ drivers/mtd/spi/sf_dataflash.c | 10 ---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 80fe93e..a4160fd 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -34,6 +34,21 @@ config SPI_FLASH If unsure, say N +config SPI_FLASH_DATAFLASH + bool "AT45xxx DataFlash support" + depends on SPI_FLASH && DM_SPI_FLASH + help + Enable the access for SPI-flash-based AT45xxx DataFlash chips. + DataFlash is a kind of SPI flash. Most AT45 chips have two buffers + in each chip, which may be used for double buffered I/O; but this + driver doesn't (yet) use these for any kind of i/o overlap or prefetching. + + Sometimes DataFlash is packaged in MMC-format cards, although the + MMC stack can't (yet?) distinguish between MMC and DataFlash + protocols during enumeration. + + If unsure, say N + config SPI_FLASH_MTD bool "SPI Flash MTD support" depends on SPI_FLASH diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index d287db8..3111f4f 100644 --- a/drivers/mtd/spi/sf_dataflash.c +++ b/drivers/mtd/spi/sf_dataflash.c @@ -19,16 +19,6 @@ #include "sf_internal.h" -/* - * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in - * each chip, which may be used for double buffered I/O; but this driver - * doesn't (yet) use these for any kind of i/o overlap or prefetching. - * - * Sometimes DataFlash is packaged in MMC-format cards, although the - * MMC stack can't (yet?) distinguish between MMC and DataFlash - * protocols during enumeration. - */ - /* reads can bypass the buffers */ #define OP_READ_CONTINUOUS 0xE8 #define OP_READ_PAGE 0xD2