提交 cdb1808a 编写于 作者: B B, Ravi 提交者: Marek Vasut

dra7x: configs: enable SPL-DFU support

This patch enables the SPL-DFU support for
dra7x platform.
Signed-off-by: NRavi Babu <ravibabu@ti.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 6f8387f1
...@@ -132,6 +132,23 @@ ...@@ -132,6 +132,23 @@
#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1 #define CONFIG_FASTBOOT_FLASH_MMC_DEV 1
#endif #endif
#ifdef CONFIG_SPL_BUILD
#undef CONFIG_CMD_BOOTD
#ifdef CONFIG_SPL_DFU_SUPPORT
#define CONFIG_SPL_LOAD_FIT_ADDRESS 0x80200000
#define CONFIG_SPL_ENV_SUPPORT
#define CONFIG_SPL_HASH_SUPPORT
#define DFU_ALT_INFO_RAM \
"dfu_alt_info_ram=" \
"kernel ram 0x80200000 0x4000000;" \
"fdt ram 0x80f80000 0x80000;" \
"ramdisk ram 0x81000000 0x4000000\0"
#define DFUARGS \
"dfu_bufsiz=0x10000\0" \
DFU_ALT_INFO_RAM
#endif
#endif
#include <configs/ti_omap5_common.h> #include <configs/ti_omap5_common.h>
/* Enhance our eMMC support / experience. */ /* Enhance our eMMC support / experience. */
...@@ -209,9 +226,10 @@ ...@@ -209,9 +226,10 @@
#define CONFIG_USB_FUNCTION_DFU #define CONFIG_USB_FUNCTION_DFU
#define CONFIG_DFU_RAM #define CONFIG_DFU_RAM
#ifndef CONFIG_SPL_BUILD
#define CONFIG_DFU_MMC #define CONFIG_DFU_MMC
#define CONFIG_DFU_RAM
#define CONFIG_DFU_SF #define CONFIG_DFU_SF
#endif
/* SATA */ /* SATA */
#define CONFIG_BOARD_LATE_INIT #define CONFIG_BOARD_LATE_INIT
......
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
#define DFUARGS #define DFUARGS
#endif #endif
#ifndef CONFIG_SPL_BUILD
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
#define CONFIG_EXTRA_ENV_SETTINGS \ #define CONFIG_EXTRA_ENV_SETTINGS \
DEFAULT_LINUX_BOOT_ENV \ DEFAULT_LINUX_BOOT_ENV \
...@@ -128,7 +127,6 @@ ...@@ -128,7 +127,6 @@
"setenv mmcroot /dev/mmcblk0p2 rw; " \ "setenv mmcroot /dev/mmcblk0p2 rw; " \
"run mmcboot;" \ "run mmcboot;" \
"" ""
#endif
/* /*
* SPL related defines. The Public RAM memory map the ROM defines the * SPL related defines. The Public RAM memory map the ROM defines the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册