From patchwork Tue Nov 29 16:15:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 84861 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1664008qgi; Tue, 29 Nov 2016 08:15:30 -0800 (PST) X-Received: by 10.194.21.201 with SMTP id x9mr23161941wje.153.1480436130055; Tue, 29 Nov 2016 08:15:30 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id x20si60173658wju.188.2016.11.29.08.15.29; Tue, 29 Nov 2016 08:15:30 -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 B276AA7641; Tue, 29 Nov 2016 17:15:24 +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 ZnD2_-KCvE8p; Tue, 29 Nov 2016 17:15:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D945BA75F1; Tue, 29 Nov 2016 17:15:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 558E6A7593 for ; Tue, 29 Nov 2016 17:15:15 +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 kLRnthMz4vjy for ; Tue, 29 Nov 2016 17:15:15 +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-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by theia.denx.de (Postfix) with ESMTPS id 24D1BA7579 for ; Tue, 29 Nov 2016 17:15:11 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id f82so193238225wmf.1 for ; Tue, 29 Nov 2016 08:15:11 -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=imnsCU/nD29/K8ZaQ1ePMYpQbQClXaRlLLIDHV6AygI=; b=jTMmvppeTWzpljuQL0YYoe1CdHaZGosCbR570dsSozBgfhA/uroF6N3i1etoZ7NXtn 9MubsHodW2pG8qbvTTS4lxBGImmHDmToUtSlzf37a5+8rIzBpJ0kao09ItzsdMIqxz96 Y0QxAIyAix4m2dBVwmBlWtmShUwTlcsTANY7HGclNRmTvXPlfitMnRi6fkXEtur4ZDey sE6QCMZz7VUkqqIFObJg8r3vvX3papJHwPxs7ZBrBMe0MmGcdUKd/hrI1l7+XdpJHc2Y BxWN/9IPxFbDF4R88zQgGG4qJ0mr4JETvR1xc0aDExzJBsuEq8uHx1MIeKgLEEhoRtqF nxXQ== 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=imnsCU/nD29/K8ZaQ1ePMYpQbQClXaRlLLIDHV6AygI=; b=MyhSIlKhCLbQ75pONbh0z1PJQLBu0EaSthS9boQcFQL1K9ixVpZkh6tuSBFXQoiu0w NJpCh+LngqGx5/hy3FAH0kC0hy7XCWW1RcjFXOwcatG8yRvX7l8he8eP/iqcDVltVZYi bs5d+QNg3jAy0aOrmNRtEFwp9XBE0Rxdh8LMgI5uX+u8oPbC4mQVDLSI5crpExSGaGIS 0kldWAg1XGOIFOUFV0eqNTaUatCa8g7cbw0HpgytmNyXBEtGuQyZHajENjwCOHIy7e7l tAx8idlyJoCj5/DAmMY1fkxoTXBYIQ/1I9ll1FY9Nt0ATD2Q+iBm9BiYHexkquEf2X3Q r0Og== X-Gm-Message-State: AKaTC01xipBexecyOrJihKUggyotrUl0Ctnepre766h17oYwy87AOKZ046He10fWC+0X9eJ9 X-Received: by 10.28.6.203 with SMTP id 194mr23840574wmg.16.1480436111475; Tue, 29 Nov 2016 08:15:11 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id j1sm68591192wjm.26.2016.11.29.08.15.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 08:15:10 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Tue, 29 Nov 2016 17:15:02 +0100 Message-Id: <20161129161503.29003-2-fparent@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161129161503.29003-1-fparent@baylibre.com> References: <20161129161503.29003-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH v2 1/2] davinci: omapl138_lcdk: improve readability of boot command 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" Improve the readability of the boot command. This will help a later commit that adds DT support. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v1 -> v2: * no change --- include/configs/omapl138_lcdk.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) -- 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 854fc47..c896638 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -200,7 +200,24 @@ #define CONFIG_REVISION_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_BOOTARGS "console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off" -#define CONFIG_BOOTCOMMAND "if mmc rescan; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi" +#define CONFIG_BOOTCOMMAND \ + "if mmc rescan; then " \ + "run mmcboot; " \ + "else " \ + "run spiboot; " \ + "fi" +#define CONFIG_EXTRA_ENV_SETTINGS \ + "mmcboot=" \ + "if fatload mmc 0 0xc0600000 boot.scr; then " \ + "source 0xc0600000; " \ + "else " \ + "fatload mmc 0 0xc0700000 uImage; " \ + "bootm 0xc0700000; " \ + "fi;\0" \ + "spiboot=" \ + "sf probe 0; " \ + "sf read 0xc0700000 0x80000 0x220000; " \ + "bootm 0xc0700000;\0" /* * U-Boot commands