From: Fabien Parent Date: Wed, 16 Nov 2016 17:33:35 +0100 Subject: [U-Boot] [PATCH 3/3] davinci: omapl138_lcdk: add MMC/SD SPL boot support In-Reply-To: <20161116163335.4560-1-fparent@baylibre.com> References: <20161116163335.4560-1-fparent@baylibre.com> Message-ID: <20161116163335.4560-3-fparent@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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(+) 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" -- 2.10.2