From patchwork Mon Nov 6 13:16:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 118035 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2756263qgn; Mon, 6 Nov 2017 05:17:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+TqPbHPOocEyAzFbkW15wewN4y7nPC0njzFcJlshGQY+RHb56RVjcAOPJOMsBjj1MzDF4gk X-Received: by 10.80.149.221 with SMTP id x29mr19641954eda.4.1509974261244; Mon, 06 Nov 2017 05:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509974261; cv=none; d=google.com; s=arc-20160816; b=iaf/sOD3zniZuyPXXrNh0w/TGRuM78SC13PFiz4yBqBljsbJ2Y/WzySfH7hvsUo1M+ 0WYv5rmLPtRdQ3V9c6aU7epCsN4iFfxuYroAd8y/amJbmQpiGih/snrguqJZEjaX7NaL jQCZkLe3mwUIsxlBtPMNbuoBHPbPmY5On1YE1Cdy9/nosMv6hS8ER5hnu5PFVRtpafi2 zZMcYWDhKjeYSnLzduaO05jpqH9XLnliXAF/0W233nWP+tMvgJbFm3BKvPcBVQEzgnDH mQP+4c78/dm+1UQ4coOyGIMD3ORz0qXjYuFEpobrsJtbUTc85kKNatySE2xah+PSimHO tmbA== 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:arc-authentication-results; bh=HI70FMNIQ5iriRTaCVC91mnY5wDzZc4dMIF7wfckF1c=; b=qrquY+LBDatTIUmG5wlRmAJ/XEu1G0dg99Kqka9/YOZMFlz/2eykWR7mjCRSmS2lew wKuVWSJEPMdGtxR7BSgv2jmPm87nxE8/pCoEqwPeDN92iEA6FPVgLoFr6sFwE82u/x94 TT0OYrNnALWNYOiFwEJvUZe3uDIcTn6Y9mEY4KxXL07zHt5I92slFrjtmjzT3KBK6gAm OMXmzWNnFWcBdv7tloChHMbK7hNbacEq2vQXgRVEG5FKoz9YaaW/BoR9fzidV4OjwGAP D5Kpqmkq2lHptiWlobWbNoIAbsRgUxoh8fPnaZ+8pBfUNjdvwFYZwGzrYVpQwLS42fLs 1K0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VwXeIsaq; 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=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id q31si472343eda.85.2017.11.06.05.17.40; Mon, 06 Nov 2017 05:17:41 -0800 (PST) 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=@linaro.org header.s=google header.b=VwXeIsaq; 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=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id D99DEC21D84; Mon, 6 Nov 2017 13:17:09 +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=RCVD_IN_MSPIKE_H2, 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 9E8B3C21F18; Mon, 6 Nov 2017 13:16:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4A2F6C21D8C; Mon, 6 Nov 2017 13:16:47 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id E71B1C21D84 for ; Mon, 6 Nov 2017 13:16:46 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id k61so2725729wrc.4 for ; Mon, 06 Nov 2017 05:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Rsd1iCiGVFUfe9xvS7twafz+hPyxaiA9G/ri4m6yqwU=; b=VwXeIsaqPB+m6ChbbGTRDvwdycRsnWM4jWG7RurMQ34ezPbbp2dQ7CpynhLU2Y2S5l 3SMe+Nlt3oeSb2qodabKU/SzxHwe5teMaSM6BHjlcx189rrOOcPP9m6j7nxPgHeWuuML zLw4ipx0VlJShuh2jfluTdMjh/qJiwBMrdRuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Rsd1iCiGVFUfe9xvS7twafz+hPyxaiA9G/ri4m6yqwU=; b=UKfi509XzUCJOc8XOWVTevDr4wL7FPYa1PEV3eIidrt4ITUrH12OatNGYjCMFJcZt3 wD9GhJ2qE2wKR9OFS2AThWTs9Z4LbLmMD3+C2hISNe5LASxWsT2enjKe0gABLrW07M4P uC21Fcl8ntI7cTvWXGbjGeijgKQn10s+s/bB2a3TJIP3GOuMj2TtsnJlU2mOEvwsFCng i8L1ZhXhPGAOJy7bBLjoQdeqiiQFVC1N8nu8axw+il3RUkvi/upYFz63Fk37Uh9qV9y+ 1Ex/fYx6oG6rY68ehIlgGmOjvhiMlnsTS6stkN91oitjk2gYfXiN8VUUvfzobmMqqSZF 64FA== X-Gm-Message-State: AMCzsaXBqZJOke5z0EcqcGJA72zIMuYMHZ4FwfO8K9RPeWUsvU4No1T4 fxcP6GQTP05u0VSrxK8xjgasvw== X-Received: by 10.223.147.39 with SMTP id 36mr11783724wro.175.1509974206526; Mon, 06 Nov 2017 05:16:46 -0800 (PST) Received: from localhost.localdomain ([90.68.73.7]) by smtp.gmail.com with ESMTPSA id 141sm11210302wmr.45.2017.11.06.05.16.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Nov 2017 05:16:45 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de Date: Mon, 6 Nov 2017 14:16:38 +0100 Message-Id: <1509974198-14831-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509974198-14831-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1509974198-14831-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Cc: nicolas.dechesne@linaro.org, daniel.lezcano@linaro.org Subject: [U-Boot] [PATCH 2/2] configs: dragonboard410c: Save environment data on eMMC 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" Save the environment data at the end of the boot partition on emmc Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm/dts/dragonboard410c-uboot.dtsi | 7 +++++++ configs/dragonboard410c_defconfig | 2 ++ include/configs/dragonboard410c.h | 1 + 3 files changed, 10 insertions(+) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index cc2c175..c3475c4 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -6,6 +6,13 @@ * SPDX-License-Identifier: GPL-2.0+ */ +/ { + config { + u-boot,mmc-env-partition = "boot"; + }; +}; + + &pm8916_gpios { usb_hub_reset_pm { gpios = <&pm8916_gpios 2 0>; diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index a85aa74..4c04544 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -43,3 +43,5 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_OF_CONTROL=y +CONFIG_ENV_IS_IN_MMC=y diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index 6b5d59d..d2447b2 100644 --- a/include/configs/dragonboard410c.h +++ b/include/configs/dragonboard410c.h @@ -100,6 +100,7 @@ REFLASH(dragonboard/u-boot.img, 8)\ BOOTENV #define CONFIG_ENV_SIZE 0x2000 +#define CONFIG_SYS_MMC_ENV_DEV 0 /* mmc0 = emmc, mmc1 = sd */ #define CONFIG_ENV_VARS_UBOOT_CONFIG /* Size of malloc() pool */