From patchwork Thu Apr 6 09:22:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 96914 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp642317qgd; Thu, 6 Apr 2017 02:24:41 -0700 (PDT) X-Received: by 10.28.61.198 with SMTP id k189mr23894766wma.71.1491470681655; Thu, 06 Apr 2017 02:24:41 -0700 (PDT) Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m7si28217964wma.89.2017.04.06.02.24.41; Thu, 06 Apr 2017 02:24:41 -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=@ti.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 1D4C7C21C3F; Thu, 6 Apr 2017 09:23:31 +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 4E2DCC21C59; Thu, 6 Apr 2017 09:23:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CA12FC21C41; Thu, 6 Apr 2017 09:23:13 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id 2AA97C21C37 for ; Thu, 6 Apr 2017 09:23:11 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v369N72W005789; Thu, 6 Apr 2017 04:23:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491470587; bh=k6rjqXU3OMjCqXsjD39uutZjjK4YduXo0b4N5el8zd4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tEYoon31vRP0uo/m4xlC2G78Wliiv51nnIvluuWLMvt8lRHUBraDL2cayGrZ2f9mh g/9qHjoxOHoY6UhXGdvlLwinv0J8JTWaksrKogqcqvLyVFVM8PeO3DHgWWur+gpAvY BuPAHcN9egynBCQ3oefxI6dgqzX7F0KUyIN2Wt3I= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v369N7FL028432; Thu, 6 Apr 2017 04:23:07 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Thu, 6 Apr 2017 04:23:07 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v369MvS3011120; Thu, 6 Apr 2017 04:23:05 -0500 From: Sekhar Nori To: Tom Rini , Peter Howard , Lokesh Vutla , Vitaly Andrianov Date: Thu, 6 Apr 2017 14:52:55 +0530 Message-ID: <20170406092257.15541-4-nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170406092257.15541-1-nsekhar@ti.com> References: <20170406092257.15541-1-nsekhar@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 3/5] davinci: omapl138_lcdk: use environment variables for memory addresses 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use environment variables for various memory addresses used on OMAP-L138 LCDK board. This makes it easy to customize the boot process. Signed-off-by: Sekhar Nori Reviewed-by: Lukasz Majewski Reviewed-by: Tom Rini --- include/configs/omapl138_lcdk.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index f6aca0482527..599fd5b7a874 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -266,15 +266,21 @@ "if mmc rescan; then " \ "run mmcboot; " "fi" -#define CONFIG_EXTRA_ENV_SETTINGS \ + +#define DEFAULT_LINUX_BOOT_ENV \ + "loadaddr=0xc0700000\0" \ "fdtaddr=0xc0600000\0" \ + "scriptaddr=0xc0600000\0" + +#define CONFIG_EXTRA_ENV_SETTINGS \ + DEFAULT_LINUX_BOOT_ENV \ "fdtfile=da850-lcdk.dtb\0" \ - "fdtboot=bootz 0xc0700000 - ${fdtaddr};\0" \ + "fdtboot=bootz ${loadaddr} - ${fdtaddr};\0" \ "mmcboot=" \ - "if fatload mmc 0 0xc0600000 boot.scr; then " \ - "source 0xc0600000; " \ + "if fatload mmc 0 ${scriptaddr} boot.scr; then " \ + "source ${scriptaddr}; " \ "else " \ - "fatload mmc 0 0xc0700000 " \ + "fatload mmc 0 ${loadaddr} " \ __stringify(CONFIG_BOOTFILE) "; " \ "fatload mmc 0 ${fdtaddr} ${fdtfile}; " \ "run fdtboot; " \