summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-11-21 18:58:52 (GMT)
committerTom Rini <trini@konsulko.com>2016-11-29 00:49:49 (GMT)
commit5991703e88f320767d9390d64a6a9bd62560696b (patch)
treee2a99538d5c50353ae141025e8b45f2fce2fbaaf /common/spl
parent34ee947ac3be7a79b89fa8bb690379651cc9598a (diff)
downloadu-boot-5991703e88f320767d9390d64a6a9bd62560696b.tar.xz
spl: dfu: move DFU Kconfig to SPL Kconfig
The DFU Kconfig menu entries should be part of the SPL Kconfig file. Also avoid using the top level Makefile by moving the config dependent build artifacts to the driver/ and driver/usb/gadget/ Makfiles. With that, DFU can be built again in SPL if CONFIG_SPL_DFU_SUPPORT is enabled. Fixes: 6ad6102246d8 ("usb:gadget: Disallow DFU in SPL for now") Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/Kconfig26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index df9e0ce..77eadf9 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -524,6 +524,32 @@ config SPL_USB_SUPPORT
config options. This enables loading from USB using a configured
device.
+config SPL_DFU_SUPPORT
+ bool "Support DFU (Device Firmware Upgarde)"
+ depends on SPL
+ select SPL_HASH_SUPPORT
+ help
+ This feature enables the DFU (Device Firmware Upgarde) in SPL with
+ RAM memory device support. The ROM code will load and execute
+ the SPL built with dfu. The user can load binaries (u-boot/kernel) to
+ selected device partition from host-pc using dfu-utils.
+ This feature is useful to flash the binaries to factory or bare-metal
+ boards using USB interface.
+
+choice
+ bool "DFU device selection"
+ depends on SPL_DFU_SUPPORT
+
+config SPL_DFU_RAM
+ bool "RAM device"
+ depends on SPL_DFU_SUPPORT
+ help
+ select RAM/DDR memory device for loading binary images
+ (u-boot/kernel) to the selected device partition using
+ DFU and execute the u-boot/kernel from RAM.
+
+endchoice
+
config SPL_WATCHDOG_SUPPORT
bool "Support watchdog drivers"
depends on SPL