From patchwork Wed Nov 16 16:33:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 82558 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp249896qge; Wed, 16 Nov 2016 08:33:57 -0800 (PST) X-Received: by 10.194.203.135 with SMTP id kq7mr3102841wjc.26.1479314037865; Wed, 16 Nov 2016 08:33:57 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id m4si7138675wmf.85.2016.11.16.08.33.57; Wed, 16 Nov 2016 08:33:57 -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 39CA1B3831; Wed, 16 Nov 2016 17:33:54 +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 5pzry2UhvzxI; Wed, 16 Nov 2016 17:33:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D226B3832; Wed, 16 Nov 2016 17:33:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 503ED4B98B for ; Wed, 16 Nov 2016 17:33:44 +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 GZTPUuaxQNsr for ; Wed, 16 Nov 2016 17:33:44 +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-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by theia.denx.de (Postfix) with ESMTPS id 0E45F4B98A for ; Wed, 16 Nov 2016 17:33:41 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id a197so250476277wmd.0 for ; Wed, 16 Nov 2016 08:33:41 -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=5ELMQamilRbDBAon1Luc3yU4fXbJhwrXkKfKK7ed3Ts=; b=Rzk8wyPEGKdC9DnE+0FXW/mjqM2BFSZX67BoZf+z6v4iCvK5O9Xw/VHCs49/Seual2 fb20mpK1+vuPGpwwjoGcufjyQONQzOI85auh08+rYVdDNbSK3xT9a2KJBjGb4tNV0P+W gA9RfOguqQipeV5MlU81ZAUd01CQuaZNDEfVO3VTQY3697Jb/PkmEz8pX8+3Q5ER8owv VECgdY7ldIDcteic93RD9FtAqbblCDd+/awyXK3G4HszF6uAhsOH5pDsRfm00PTDJ45X lOA5aPxg4I8sCvyPCDp9fwG8fLVNU8E1Gy/ysykCTNKHRZHCyEfP+wtg2yT+ljTIox0K 7YDQ== 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=5ELMQamilRbDBAon1Luc3yU4fXbJhwrXkKfKK7ed3Ts=; b=FHkY8Vrcjbmdlu8t+0KKsK/RbJFi9A3U7NFRZLFFj+kuPjV8R0jmGm06ylR9yvsd1O PDmrbFafudM2NGbfnT9Z3YLVYaq7t5u69ZSkmgVdBvMeUkqkGJT1WgQy6pOCrjRb8x8i R3kg+8nLntcFpp8kIufOdINcJiw3OiTQiOJkRU1IZ3BCxj85Fzdc6trk1ezUu8ZMlXoU ZA5xibksxQINCnlbqqPfkYi4AyPjWrE4kxT4S0l0K18b/ip5kFbFkROZ42Sh2nA6WXAn IUMO6WstT6u04e4qPIiH0BHZaYEGaryT4MdeoKdlnmvFI9H8vOuXljUhyRdbKyhYaIA9 3PzA== X-Gm-Message-State: ABUngvf5OEBsRUS9JaJ4Rkv27ZFo8AJuBHvVOA/C/6KJ34VuoOL7Ex38Ub924IU4OL3ppYev X-Received: by 10.28.213.74 with SMTP id m71mr10760903wmg.39.1479314021473; Wed, 16 Nov 2016 08:33:41 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w66sm11017457wme.4.2016.11.16.08.33.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 08:33:41 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Wed, 16 Nov 2016 17:33:35 +0100 Message-Id: <20161116163335.4560-3-fparent@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161116163335.4560-1-fparent@baylibre.com> References: <20161116163335.4560-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 3/3] davinci: omapl138_lcdk: add MMC/SD SPL boot support 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" Define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR in order to be able to boot from MMC/SD. The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 8 ++++++++ 1 file changed, 8 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 91ddbb1..0964176 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -272,6 +272,14 @@ #define CONFIG_SPL_PAD_TO 32768 #endif +/* Load U-Boot Image From MMC */ +#ifdef CONFIG_SPL_MMC_LOAD +#define SPL_SECTOR 0x75 +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR (SPL_SECTOR + \ + CONFIG_SPL_PAD_TO / 512) +#undef CONFIG_SPL_SPI_LOAD +#endif + /* AIS Image */ #define CONFIG_AIS_CONFIG_FILE "board/davinci/da8xxevm/omapl138_lcdk_ais.cfg"