From patchwork Tue Oct 4 20:48:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 678224 X-Patchwork-Delegate: sbabic@denx.de 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 3spWNh57Rdz9s5w for ; Wed, 5 Oct 2016 07:53:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 870A3B388F; Tue, 4 Oct 2016 22:51:37 +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 vEdrQYHJvqq3; Tue, 4 Oct 2016 22:51:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D0C3B3890; Tue, 4 Oct 2016 22:51:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD37AA7670 for ; Tue, 4 Oct 2016 22:50:59 +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 4SlAj-xoyL7o for ; Tue, 4 Oct 2016 22:50:59 +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-pa0-f66.google.com (mail-pa0-f66.google.com [209.85.220.66]) by theia.denx.de (Postfix) with ESMTPS id 215B9A7679 for ; Tue, 4 Oct 2016 22:50:35 +0200 (CEST) Received: by mail-pa0-f66.google.com with SMTP id t6so6759992pae.2 for ; Tue, 04 Oct 2016 13:50:35 -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=oLYrPnYoZ/JawO9Jq16CfTErYAkAto7e4RsMZcxiQeg=; b=DQwDscb1ZaRgad2eMTcza4AV2ckUchp8LoxYioM/qCG3uhyYDVxLaddcHXRxVzHEz1 XEy1SL5mRcSD+6JFvyP8VqTgbzHLHK7lQC6AeffFgO8TfsMlKmWDabqj3w8DZQUbFP0a RWqJBt2fyCWeOpaHYTttUdy+YADqUqACTeJNrvsXp1Vt3xrI44Zvh1+cUw2vs70DvlSe fSpusLwD14hRq79+6ryotgcoQqZ196rOY2dacAd9qgXpCy06SFAfvIsXGWK6jLdgfN+L tvkFyWgS9XOmfBjvz9BL2HjsQvE2nW2w323/Dnd3vqvMI4/xvBZ/Mr3mS3PTg3HjX0Xk d1uQ== X-Gm-Message-State: AA6/9Rl7OoOMGxTzUZHYHG7NU5JZVVJJ84T1VNGKHBKMz00XSI5FC1jDhXT8qTLaae3QEQ== X-Received: by 10.66.19.197 with SMTP id h5mr7798769pae.142.1475614234510; Tue, 04 Oct 2016 13:50:34 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id d85sm43789802pfj.57.2016.10.04.13.50.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Oct 2016 13:50:33 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 5 Oct 2016 02:18:34 +0530 Message-Id: <1475614115-27435-20-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475614115-27435-1-git-send-email-jteki@openedev.com> References: <1475614115-27435-1-git-send-email-jteki@openedev.com> Cc: Jagan Teki , Matteo Lisi Subject: [U-Boot] [PATCH v6 20/21] imx6: icorem6: Enable MTD device support 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" From: Jagan Teki Enable MTD device, partition and command support. Cc: Stefano Babic Cc: Peng Fan Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- include/configs/imx6qdl_icore.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/configs/imx6qdl_icore.h b/include/configs/imx6qdl_icore.h index cd3aa43..6e33ec3 100644 --- a/include/configs/imx6qdl_icore.h +++ b/include/configs/imx6qdl_icore.h @@ -124,6 +124,12 @@ # define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE # define CONFIG_SYS_NAND_U_BOOT_OFFS 0x200000 +/* MTD device */ +# define CONFIG_MTD_DEVICE +# define CONFIG_CMD_MTDPARTS +# define CONFIG_MTD_PARTITIONS +# define MTDIDS_DEFAULT "nand0=nand" + # define CONFIG_APBH_DMA # define CONFIG_APBH_DMA_BURST # define CONFIG_APBH_DMA_BURST8