From patchwork Thu Jul 19 07:28:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 142328 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1421908ljj; Thu, 19 Jul 2018 00:31:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc0IW20rEadRREnRhw/e/FkLutKyWv34dXyfvr4cyAu+8EIxupDt5TsnJh1uliGphTExbHT X-Received: by 2002:a50:8dcb:: with SMTP id s11-v6mr9691920edh.86.1531985462829; Thu, 19 Jul 2018 00:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531985462; cv=none; d=google.com; s=arc-20160816; b=wcqGu1b//qQC3wPLb4CtPykAUzpScLrA/pec+apRExtLEhSOHYRaIZV6qQjuONXTZn 1TPT7D4BAeh6nilyi0AgbCRmVp7aENRm/wudF0wW1KZk8Aqk/K9Shpt0FOJt4O1Qm0bH oPD55C1SaLTOIrS4wYbTf2hR0Ps8T5tdOX393vmAUt/GV5Gp3sahYsb4XcMz3Mvs/qnt SpDuZwSrbZhfmn+Yn5cFfiOEvr99TwwNiXjKEigdGl2INxs4MLlhKDbD8Y1eVSpE9dr/ E6slcTY++HgKqWq9LdsfckheJvUFxPQOlYQ37EwQthwf+/A49x9ZP9iVU0C8Xln5NQIn iexg== 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=BnHKBReRykMLI5T6DrLgjKNEDgnRw1c3st9wDc58kAM=; b=NP3gDfTzrALUGowxdd1/2Jg9H7pNaHI3ArgnFJo+Vqf/gwB1/7skzicVpVlFiljZyO GEmAUpdroK/HP8n8aggEJiJOMWU2OUDV6pLQFZGWrVo4VfEPKomWRtKubrqvJ+J0KmZb 3owCwkaYks8cPBN9Cwg5aFy7l+jH44wCLdflcCwanilSI748xh1NCgUomU/FkvLIc8JV ZznwHXm8srwRDex2pwB1DJB/zi0dtY3uQDtvDgeVe1FSBEnp/FobDNsGVzfXwcFMWO3t yf+XYSlRUNm3cZc2Yl3e+PbpuztiLEEASo3FLkDERUislvOTtZSqWbipUSXOaYgSL/xN vN0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=FUsNTp1t; 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 h25-v6si812248edh.18.2018.07.19.00.31.02; Thu, 19 Jul 2018 00:31:02 -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=FUsNTp1t; 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 69C5BC21BE5; Thu, 19 Jul 2018 07:29:55 +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 6C30BC21E56; Thu, 19 Jul 2018 07:29:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4F90BC21FCB; 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 A8CEAC21F9B 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 w6J7STUE021119; Thu, 19 Jul 2018 16:28:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w6J7STUE021119 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1531985312; bh=u+y7Pp79y3Gz3IcsN4fXWW/2pS5teYRDubLdp2jNftg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FUsNTp1tB+riI2kWGiQA/MZOUwF2e+LwRDUiLRmxdOngJ37Hi58T+/XTF8R92Rtgs gJM1xseFXTu47ABAARwaQ083cn5NxTGMVdqzDi9e3/at2baYILQNWUKBSZtyPkKD7e eXce1XYNbRYE9gY6x97O9+D811GJkewaQ2auhZ+oT52cHFqa06cEKzb6lMHa9FeDUs xivgozKszbU6mtlfh5OqvF9TqZQ9rKl3YdiNVoxGM9PULWePkwauCh0oALUe+sHzvR 5DOa7otb0uJf43MvdszYDJsDD21Vnisc5+aNpGpD/XqT/llo4727eaF90MsNqliw8w Gki346FgMZ6sg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 Jul 2018 16:28:26 +0900 Message-Id: <1531985307-4208-5-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 5/6] ARM: uniphier: support fdt_fixup_mtdparts 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" Propagate the "mtdparts" environment variable to the DT passed in to OS. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/fdt-fixup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-uniphier/fdt-fixup.c b/arch/arm/mach-uniphier/fdt-fixup.c index 022e442..6f3c29d 100644 --- a/arch/arm/mach-uniphier/fdt-fixup.c +++ b/arch/arm/mach-uniphier/fdt-fixup.c @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include @@ -46,8 +48,14 @@ static int uniphier_ld20_fdt_mem_rsv(void *fdt, bd_t *bd) int ft_board_setup(void *fdt, bd_t *bd) { + static const struct node_info nodes[] = { + { "socionext,uniphier-denali-nand-v5a", MTD_DEV_TYPE_NAND }, + { "socionext,uniphier-denali-nand-v5b", MTD_DEV_TYPE_NAND }, + }; int ret; + fdt_fixup_mtdparts(fdt, nodes, ARRAY_SIZE(nodes)); + ret = uniphier_ld20_fdt_mem_rsv(fdt, bd); if (ret) return ret;