From patchwork Thu Jul 19 07:28:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 142325 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1420646ljj; Thu, 19 Jul 2018 00:29:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/g90LOJ6UY3nfOld+M4wVVVf/vIeo3XUwhbCLlJKTiXSc+8ztdPUiW3E88Uy8+5auK2QY X-Received: by 2002:a50:d307:: with SMTP id g7-v6mr10512069edh.221.1531985377963; Thu, 19 Jul 2018 00:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531985377; cv=none; d=google.com; s=arc-20160816; b=z3dge2dwJ4v3yVU9AFSyu6ytYkoRdBHxeDVx67INVweKByFF6U6bSMmZ07+lEbFBgy abzFd91Z/P06AUbC5KWo44Rx/t+bO0P8KxSmz2TaEsMlZcfIX+uNNLUXulCFlqHg4Y/t AwNMM3P3m9UQulOQf2SO6Izy0x3SGiPThYYdv+tVSKcSHiafGzJDp+3Nqz8oQkOUMYZW DgQOYLFFbbTH6dzeQbXao9odGtw7cZQ/tkC6+m17KmPs8a7L3c3c4jzK74Al3YfVmjJJ kK5qP8RQfapxeIzLI602hG5w/TBeEllyTNGUzyyEdLdKRtds3fp30Fi7EAaByt77u4Bt sz8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=KPkHXgTxv/oG5QsYtQd5KG5+/0x5CvozLnWjJBF+kzo=; b=UWyAExTxpZVaBV6+6EvaHoiBloaio3PFPdV+7h/yRZ1yBDr8vrEVHkQ6/li4t9NAAl zG8at3RKnbc4kWIm8qJKTFjDSeagzl3WrAXqnJjES+80bRWWYQY+uaOBmPBGFOsrJTi1 gmmLF2BP9uAkwGB6RMQvGUEOSeJDyVEFVTF+gSGnpDkUslEnMxOjIqG1opbIMEvjgKwK AYUNRc1n4VGHgimCFUCMfEf8RXcYo9s//fEJMsc1ofK/yITKIiE+zWjxT8XfaQmXFXDR eckU4SYjiscMUC1hIATq0Hl6G2gxy/l4h3Sa6ua5BHe4Ol858SX4VZtKeUF7dxqV6VPJ 1OgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qrmHHLQF; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g24-v6si3126865edh.209.2018.07.19.00.29.37; Thu, 19 Jul 2018 00:29:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qrmHHLQF; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 8A26EC21F3C; Thu, 19 Jul 2018 07:29:05 +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=T_DKIM_INVALID 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 0E5ACC21FB8; Thu, 19 Jul 2018 07:29:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6009FC21FC0; Thu, 19 Jul 2018 07:28:54 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id A9FF8C21FC5 for ; Thu, 19 Jul 2018 07:28:50 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w6J7STUF021119; Thu, 19 Jul 2018 16:28:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w6J7STUF021119 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1531985313; bh=cUjxMhnRSJIocL51QxVa1ys4fSQ58uGOpBYeSV0qBWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qrmHHLQFjA1qIYQtTrFoK4wGqT6u1e1pQ3ZmjlblDzgNu/tyYjbp5RRdb9cq480t7 WlTTpIHMVBwNqB/4PL4+D1+BvI8BGSjw5quK4Ffw28uPeGckvoJvvjcdsmLzZPndON H+D2o4m79iwhf2ugTvGHoPyQQP+uNEtQznIk9i+/wMYalcY4gni0D8OrJP0bk96CYY s+lkJ/1TFAQIR2lOFckovsx6soWQ1GQ1dMfAqH8PxlMe9CISA4bbs+EABJAJFs310g XnOkpSJIIX1Y1P391icAO2ugAFMal/SpS20WygIDc1bgsFw9tTvnDF2MdepTolY0c1 +wdNfFgMYvbQA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 Jul 2018 16:28:27 +0900 Message-Id: <1531985307-4208-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531985307-4208-1-git-send-email-yamada.masahiro@socionext.com> References: <1531985307-4208-1-git-send-email-yamada.masahiro@socionext.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 6/6] ARM: uniphier: enable MTD partition and UBI 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" Enable "mtdparts" and "ubi" commands for uniphier_v8_defconfig to use UBI on NAND devices. Enable only "mtdparts" for uniphier_{v7,ld4_sld8}_defconfig because enabling UBI would increase 170KB, which would be memory footprint problem. Signed-off-by: Masahiro Yamada --- configs/uniphier_ld4_sld8_defconfig | 4 ++++ configs/uniphier_v7_defconfig | 4 ++++ configs/uniphier_v8_defconfig | 4 ++++ include/configs/uniphier.h | 1 + 4 files changed, 13 insertions(+) diff --git a/configs/uniphier_ld4_sld8_defconfig b/configs/uniphier_ld4_sld8_defconfig index e5c1deb..225be21 100644 --- a/configs/uniphier_ld4_sld8_defconfig +++ b/configs/uniphier_ld4_sld8_defconfig @@ -31,6 +31,9 @@ CONFIG_CMD_TIME=y # CONFIG_CMD_MISC is not set CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_CMD_MTDPARTS=y +CONFIG_MTDIDS_DEFAULT="nand0=uniphier-nand.0" +CONFIG_MTDPARTS_DEFAULT="mtdparts=uniphier-nand.0:1m(firmware),-(UBI)" # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NET_RANDOM_ETHADDR=y @@ -52,3 +55,4 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y CONFIG_PANIC_HANG=y +CONFIG_FDT_FIXUP_PARTITIONS=y diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_defconfig index 89b7b4a..c54ee00 100644 --- a/configs/uniphier_v7_defconfig +++ b/configs/uniphier_v7_defconfig @@ -30,6 +30,9 @@ CONFIG_CMD_TIME=y # CONFIG_CMD_MISC is not set CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_CMD_MTDPARTS=y +CONFIG_MTDIDS_DEFAULT="nand0=uniphier-nand.0" +CONFIG_MTDPARTS_DEFAULT="mtdparts=uniphier-nand.0:1m(firmware),-(UBI)" # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NET_RANDOM_ETHADDR=y @@ -53,3 +56,4 @@ CONFIG_USB_DWC3=y CONFIG_USB_DWC3_UNIPHIER=y CONFIG_USB_STORAGE=y CONFIG_PANIC_HANG=y +CONFIG_FDT_FIXUP_PARTITIONS=y diff --git a/configs/uniphier_v8_defconfig b/configs/uniphier_v8_defconfig index 93df2f6..67ebde7 100644 --- a/configs/uniphier_v8_defconfig +++ b/configs/uniphier_v8_defconfig @@ -26,6 +26,9 @@ CONFIG_CMD_TIME=y # CONFIG_CMD_MISC is not set CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_MTDIDS_DEFAULT="nand0=uniphier-nand.0" +CONFIG_MTDPARTS_DEFAULT="mtdparts=uniphier-nand.0:1m(firmware),-(UBI)" +CONFIG_CMD_UBI=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_GPIO_UNIPHIER=y CONFIG_MISC=y @@ -53,3 +56,4 @@ CONFIG_USB_DWC3=y CONFIG_USB_DWC3_UNIPHIER=y CONFIG_USB_STORAGE=y CONFIG_PANIC_HANG=y +CONFIG_FDT_FIXUP_PARTITIONS=y diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index b631f79..49eb18f 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -26,6 +26,7 @@ /* FLASH related */ #define CONFIG_MTD_DEVICE +#define CONFIG_MTD_PARTITIONS #define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_CFI