From patchwork Mon Feb 27 17:22:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 732987 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 lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vX8141XChz9s9r for ; Tue, 28 Feb 2017 04:32:39 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id EBE3CC21FC1; Mon, 27 Feb 2017 17:27:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D113EC21E50; Mon, 27 Feb 2017 17:23:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A438DC21EBA; Mon, 27 Feb 2017 17:22:40 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id AB53DC21E23 for ; Mon, 27 Feb 2017 17:22:36 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 2B1B520B76; Mon, 27 Feb 2017 18:22:36 +0100 (CET) Received: from localhost (LFbn-1-10722-90.w90-89.abo.wanadoo.fr [90.89.71.90]) by mail.free-electrons.com (Postfix) with ESMTPSA id 5E39C20B7B; Mon, 27 Feb 2017 18:22:23 +0100 (CET) From: Maxime Ripard To: Jagan Teki , Scott Wood Date: Mon, 27 Feb 2017 18:22:10 +0100 Message-Id: <26ffbdb85f0733dd3d2908aaa3a99e0067c0857d.1488215509.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Cc: Hans de Goede , Maxime Ripard , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 11/16] sunxi: Enable UBI and NAND support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Hans de Goede Enable the NAND and UBI support in the configuration header so that we can (finally) use it. Signed-off-by: Hans de Goede Signed-off-by: Maxime Ripard --- cmd/Kconfig | 4 ++++ include/configs/sunxi-common.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4e7c0fbcdee5..8e2a05de82ea 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -438,12 +438,14 @@ config CMD_MMC config CMD_NAND bool "nand" + default y if ARCH_SUNXI help NAND support. if CMD_NAND config CMD_NAND_TRIMFFS bool "nand write.trimffs" + default y if ARCH_SUNXI help Allows one to skip empty pages when flashing something on a NAND. @@ -845,6 +847,7 @@ config CMD_UBI tristate "Enable UBI - Unsorted block images commands" select CRC32 select MTD_UBI + default y if ARCH_SUNXI help UBI is a software layer above MTD layer which admits use of LVM-like logical volumes on top of MTD devices, hides some complexities of @@ -858,6 +861,7 @@ config CMD_UBIFS select CRC32 select RBTREE if ARCH_SUNXI select LZO if ARCH_SUNXI + default y if ARCH_SUNXI help UBIFS is a file system for flash devices which works on top of UBI. diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index b9cf315af58d..b1af756a6ac9 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -132,6 +132,9 @@ #define CONFIG_SYS_NAND_MAX_ECCPOS 1664 #define CONFIG_SYS_NAND_ONFI_DETECTION #define CONFIG_SYS_MAX_NAND_DEVICE 8 + +#define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS #endif #ifdef CONFIG_SPL_SPI_SUNXI