From patchwork Fri Nov 25 10:11:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 84104 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp53191obn; Fri, 25 Nov 2016 02:12:43 -0800 (PST) X-Received: by 10.28.37.70 with SMTP id l67mr6600742wml.128.1480068762950; Fri, 25 Nov 2016 02:12:42 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id u15si12935136wmu.53.2016.11.25.02.12.42; Fri, 25 Nov 2016 02:12:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6B32AB3865; Fri, 25 Nov 2016 11:12:08 +0100 (CET) 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 NFb6zk92eQIu; Fri, 25 Nov 2016 11:12:08 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43566B3869; Fri, 25 Nov 2016 11:11:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A569B4BA16 for ; Fri, 25 Nov 2016 11:11:40 +0100 (CET) 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 CG1hCQzw51bu for ; Fri, 25 Nov 2016 11:11:40 +0100 (CET) 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-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by theia.denx.de (Postfix) with ESMTPS id 518FC4BA35 for ; Fri, 25 Nov 2016 11:11:35 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id f82so86669384wmf.1 for ; Fri, 25 Nov 2016 02:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mystdgIa9J4WqDMrH7rvGLINAP3eus+35aZPfrVd5pw=; b=12TcZq1PQIPUhKOv3dQS7B9gXTW7iILWPFA3t83guSmksHK2R5MiDOeB32SfgwwV4a PSqAkt5u+z3mZunw89kCk6/i/0HxXTkFg/xGA25B12NrY05IQkXtkz9rMDMLCBtBa88Z 1LqBuMegT05QiJMBxCqZyKxzmIXhKmn7oWv6WGDncpY9CI95mx7+md5JMuP1lfaWzpTp 9Wcf+HVDqYOK1QQdAXlr8c05mqUMeJ3QZnysiLMdO/C9lWFm2ZL1Ctbfdubl+KIW0/Mf FZ1bdxPdaXrHYvgp0PL4OXgZ3vHe4wgoD7I+37lD4EeUkb5LYaja/dk6prFqrw459sX2 qqAw== 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=mystdgIa9J4WqDMrH7rvGLINAP3eus+35aZPfrVd5pw=; b=aiyuCUmcWn6W+27J2vvJuKZ9pV3l3uYAJTfrDT131iieKLzOpGD4WplTjYJ8brXcBk 5borXckcpsR8lUT7fPWBS2fJJG8igTzkSAFqJu3mcBFMgfuHrLX/4u+o5perrEq65cpf srOMrS//L/Zuk3BlUqUGJTpfbJcZ/kGcmwSZh3XFbMLMqXaVkB3uh1jZc7xr8B82r/Kn PjOLA/GrYW62/pvBwZNhuIcfD0oxGoE6+lUyx3vMQ1V7UaWg+2rh8fcirUUzol2rXE1Z K0lET1qTivr750KHF4eU2N+AVPngNWNNMCNpoH56+ADOMIkhlhnR8Dt+WLMUVJsSODhv O3yg== X-Gm-Message-State: AKaTC03Z9lpQ9sI/WSZrASeVKqLnyEXrTT2VJYZefbho/R4JNxT05T+IP5T3ahPY3DIsPAUe X-Received: by 10.28.142.16 with SMTP id q16mr6338505wmd.35.1480068694441; Fri, 25 Nov 2016 02:11:34 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ab10sm46158572wjc.45.2016.11.25.02.11.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 02:11:33 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Fri, 25 Nov 2016 11:11:26 +0100 Message-Id: <20161125101127.15260-5-fparent@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161125101127.15260-1-fparent@baylibre.com> References: <20161125101127.15260-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 4/5] davinci: omapl138_lcdk: do fdt systemsetup when loading DT 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" When loading the DTB, let's also do the systemsetup in order to patch the DT with the mac address. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.10.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index fe9f94d..29d061e 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -206,16 +206,25 @@ "else " \ "run spiboot; " \ "fi" +#if defined(CONFIG_OF_SYSTEM_SETUP) +#define FDTSETUP "fdtsetup=fdt addr ${fdtaddr}; fdt systemsetup;\0" +#else +#define FDTSETUP +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ + FDTSETUP \ "fdtaddr=0xc0600000\0" \ "fdtfile=da850-lcdk.dtb\0" \ "fdtboot=bootm 0xc0700000 - ${fdtaddr};\0" \ + "fdtsetup=fdt addr ${fdtaddr}; fdt systemsetup;\0" \ "mmcboot=" \ "if fatload mmc 0 0xc0600000 boot.scr; then " \ "source 0xc0600000; " \ "else " \ "fatload mmc 0 0xc0700000 uImage; " \ "fatload mmc 0 ${fdtaddr} ${fdtfile}; " \ + "run fdtsetup;" \ "run fdtboot; " \ "fi;\0" \ "spiboot=" \