Re: [U-Boot] [PATCH 2/5] arm: am57xx: cl-som-am57x: add MMC as a boot devices for spl

2016-12-01 Thread Tom Rini
On Thu, Dec 01, 2016 at 10:28:13AM +0200, Uri Mashiach wrote:

> From: Dmitry Lifshitz 
> 
> Use spl alternate boot device feature to define fallback to
> the main boot device as it is defined by hardware.
> 
> Signed-off-by: Dmitry Lifshitz 
> Signed-off-by: Uri Mashiach 
> Acked-by: Igor Grinberg 
> ---
>  include/configs/cl-som-am57x.h | 10 ++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/include/configs/cl-som-am57x.h b/include/configs/cl-som-am57x.h
> index 1be55e5..dfceebb 100644
> --- a/include/configs/cl-som-am57x.h
> +++ b/include/configs/cl-som-am57x.h
> @@ -53,6 +53,16 @@
>  #define CONFIG_SPL_SPI_FLASH_SUPPORT
>  #define CONFIG_SPL_SPI_LOAD
>  
> +/* SD/MMC RAW boot */
> +#undef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
> +#undef CONFIG_SYS_MMCSD_FS_BOOT_PARTITION
> +#undef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
> +#undef CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS
> +
> +/* Offsets: 128K - SPL1, 256K - SPL2, 384K - U-Boot */
> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /*  0x6 - 384K */
> +#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS  0x400 /* 512 K */
> +
>  /* Environment */
>  #define CONFIG_ENV_SIZE  (16 << 10) /* 16 KiB env size */
>  #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG

This has migrated to Kconfig recently, please re-work.

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/5] arm: am57xx: cl-som-am57x: add MMC as a boot devices for spl

2016-12-01 Thread Uri Mashiach
From: Dmitry Lifshitz 

Use spl alternate boot device feature to define fallback to
the main boot device as it is defined by hardware.

Signed-off-by: Dmitry Lifshitz 
Signed-off-by: Uri Mashiach 
Acked-by: Igor Grinberg 
---
 include/configs/cl-som-am57x.h | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/include/configs/cl-som-am57x.h b/include/configs/cl-som-am57x.h
index 1be55e5..dfceebb 100644
--- a/include/configs/cl-som-am57x.h
+++ b/include/configs/cl-som-am57x.h
@@ -53,6 +53,16 @@
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
 
+/* SD/MMC RAW boot */
+#undef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
+#undef CONFIG_SYS_MMCSD_FS_BOOT_PARTITION
+#undef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
+#undef CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS
+
+/* Offsets: 128K - SPL1, 256K - SPL2, 384K - U-Boot */
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /*  0x6 - 384K */
+#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS  0x400 /* 512 K */
+
 /* Environment */
 #define CONFIG_ENV_SIZE(16 << 10) /* 16 KiB env size */
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot