[U-Boot] [PATCH v4 0/3] spl: USB Gadget cleanup

Stefan Agner stefan at agner.ch
Mon Nov 21 19:58:50 CET 2016


From: Stefan Agner <stefan.agner at toradex.com>


This patchset cleans up the SPL USB Gadget Kconfig and Makfile.
The first two patches are actual fixes and we might consider to
add these two for the v2016.11 release. The third one adds a new
config option for cleaner structure. I plan to add another USB
function with SPL support which is the reason I looked into
this...

Build tested using buildman for all boards on powerpc mips and
arm. No new errors or warnings:
Building 4 commits for 1072 boards (8 threads, 1 job per thread)
 4044    0  244 /4288   P1022DS_NAND

This patchset is probably most interesting for
am335x_evm_usbspl_defconfig (CONFIG_SPL_USBETH_SUPPORT)
And the board with which SPL DFU support has been introduced
dra7xx_evm_defconfig (CONFIG_SPL_DFU_SUPPORT, not set by default)

A follow-up patchset which moves RAM boot support into a separate
file is in preparation.

--
Stefan

Changes in v4:
- Use correct config CONFIG_SPL_RAM_DEVICE to descide whether to add
  BOOT_DEVICE_RAM to linker list.

Changes in v3:
- Fix depends on SPL_USB_GADGET_SUPPORT and use if statement

Changes in v2:
- Use CONFIG_SPL_RAM_SUPPORT to descide whether to compile the
  function in first place.
- Leave DWC3 config in top level SPL Makefile (as U-Boot does)

Stefan Agner (3):
  spl: add RAM boot device only if it is actually defined
  spl: dfu: move DFU Kconfig to SPL Kconfig
  spl: add USB Gadget config option

 Kconfig                             | 27 ------------------
 common/spl/Kconfig                  | 57 ++++++++++++++++++++++++++++++-------
 common/spl/spl.c                    |  2 ++
 configs/am335x_evm_usbspl_defconfig |  1 +
 drivers/Makefile                    |  4 ++-
 drivers/usb/gadget/Makefile         |  9 ++++--
 include/configs/dra7xx_evm.h        |  1 -
 scripts/Makefile.spl                |  5 +---
 8 files changed, 60 insertions(+), 46 deletions(-)

-- 
2.10.2



More information about the U-Boot mailing list