From patchwork Fri Nov 25 10:11:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 699153 X-Patchwork-Delegate: trini@ti.com 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 3tQBh66LmYz9t2D for ; Fri, 25 Nov 2016 21:12:06 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="wjQX/O+r"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D564A7564; Fri, 25 Nov 2016 11:11:50 +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 BrQBxHVXgUVr; Fri, 25 Nov 2016 11:11:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0B0E5B3838; Fri, 25 Nov 2016 11:11:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E69754B98A for ; Fri, 25 Nov 2016 11:11:37 +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 9vk7efnhna8w for ; Fri, 25 Nov 2016 11:11:37 +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-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by theia.denx.de (Postfix) with ESMTPS id B49E74B6B3 for ; Fri, 25 Nov 2016 11:11:33 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id t79so86375240wmt.0 for ; Fri, 25 Nov 2016 02:11:33 -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=No89YRvOLY3gZFTMGST4+ImcbAREif9qWZxv1lSvGWk=; b=wjQX/O+rpRyvKzclH8MtPIwvwzCrrQKgtMrwrmuxPHFjM7iQOIkRw1Ui03BlZ/cxoh e8iBCKuvkGHR3jdxS3I+La0c+pZsjGobalD91kGiJlxucl4kYsKn6QJvaClt1AAwVgZG ZSMd/L1iYs+/68WqgE7QAoKSyCrbCx6qV1KkD0LX4eTPpTDboSe36idy/zZYACp7Anqr JoLBdKRgW93mgXzP1Py78Awcu8YnuWP9Hc0b1YHR/YtT4BfBuMgYh8PRd27ULJmufEDr +6rjr6W0tzJF/5xqN2F7dPXmWS04J+vBwb/M3fkdh9dCliN6UdAbKFRAY/andLqgGALI JPzw== 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=No89YRvOLY3gZFTMGST4+ImcbAREif9qWZxv1lSvGWk=; b=kx+hf7rWQptCwQ9uuUaER67jBtuBuTVIB8cSgqGQQJZuVQGLZHAUzo1K5mnEXGkAEZ 5QfjYEqP9MMet17PZojpmmu80vNCcaZcY4vMhcLIdfuP8InTxCV/nuNMqtmRdAEJ1XQz 762h+FM2rg4eNU+tDzL8k38m8h6XX4kkGy3JLuvEptdkAu4XGD9LNC4CgWLKyGZhNzCd S9GKX7CvhqIowCB25SaF8ZUn6hAWhUZePiogQnhsPEn4YHK+g4soiWey+tYw50tn3fYR fRRXrmT/Lm6XwN6j/eUNRhGWBdgdM32QDPs5OgbbXL13b2pDa0fIBeMaLPpoNLZ+60dR XE+Q== X-Gm-Message-State: AKaTC02TXbHqGEa1mvAJQ0eDWF+I9NONJagXBVhXBCsBp+HvXJ+c1bjLKQCjKp1F5i6hoI8n X-Received: by 10.28.138.135 with SMTP id m129mr6466023wmd.36.1480068692679; Fri, 25 Nov 2016 02:11:32 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ab10sm46158572wjc.45.2016.11.25.02.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 02:11:32 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Fri, 25 Nov 2016 11:11:24 +0100 Message-Id: <20161125101127.15260-3-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 2/5] 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 support for dtb and system setup. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- include/configs/omapl138_lcdk.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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