fastboot: implement Kconfig
authorSteve Rae <steve.rae@raedomain.com>
Tue, 16 Aug 2016 00:26:26 +0000 (17:26 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 20 Aug 2016 18:03:23 +0000 (14:03 -0400)
implement Kconfig for the 'fastboot' feature set

Signed-off-by: Steve Rae <steve.rae@raedomain.com>
cmd/Kconfig
cmd/fastboot/Kconfig [new file with mode: 0644]
drivers/usb/gadget/Kconfig

index e219246..d28da54 100644 (file)
@@ -114,6 +114,8 @@ config AUTOBOOT_STOP_STR_SHA256
 
 endmenu
 
+source "cmd/fastboot/Kconfig"
+
 comment "Commands"
 
 menu "Info commands"
diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig
new file mode 100644 (file)
index 0000000..a93d1c0
--- /dev/null
@@ -0,0 +1,60 @@
+comment "FASTBOOT"
+
+config FASTBOOT
+       bool ""
+
+menu "Fastboot support"
+       depends on FASTBOOT
+
+config USB_FUNCTION_FASTBOOT
+       bool "Enable USB fastboot gadget"
+       help
+         This enables the USB part of the fastboot gadget.
+
+config CMD_FASTBOOT
+       bool "Enable FASTBOOT command"
+       help
+         This enables the command "fastboot" which enables the Android
+         fastboot mode for the platform's USB device. Fastboot is a USB
+         protocol for downloading images, flashing and device control
+         used on Android devices.
+
+config ANDROID_BOOT_IMAGE
+       bool "Enable support for Android Boot Images"
+       help
+         This enables support for booting images which use the Android
+         image format header.
+
+if USB_FUNCTION_FASTBOOT
+
+config FASTBOOT_BUF_ADDR
+       hex "Define FASTBOOT buffer address"
+       help
+         The fastboot protocol requires a large memory buffer for
+         downloads. Define this to the starting RAM address to use for
+         downloaded images.
+
+config FASTBOOT_BUF_SIZE
+       hex "Define FASTBOOT buffer size"
+       help
+         The fastboot protocol requires a large memory buffer for
+         downloads. This buffer should be as large as possible for a
+         platform. Define this to the size available RAM for fastboot.
+
+config FASTBOOT_FLASH
+       bool "Enable FASTBOOT FLASH command"
+       help
+         The fastboot protocol includes a "flash" command for writing
+         the downloaded image to a non-volatile storage device. Define
+         this to enable the "fastboot flash" command.
+
+config FASTBOOT_FLASH_MMC_DEV
+       int "Define FASTBOOT MMC FLASH default device"
+       help
+         The fastboot "flash" command requires additional information
+         regarding the non-volatile storage device. Define this to
+         the eMMC device that fastboot should use to store the image.
+
+endif # USB_FUNCTION_FASTBOOT
+
+endmenu
index ae62476..40839d8 100644 (file)
@@ -43,6 +43,11 @@ config USB_GADGET_ATMEL_USBA
          USBA is the integrated high-speed USB Device controller on
          the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
 
+config USB_GADGET_BCM_UDC_OTG_PHY
+       bool "Broadcom UDC OTG PHY"
+       help
+         Enable the Broadcom UDC OTG physical device interface.
+
 config USB_GADGET_DWC2_OTG
        bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
        select USB_GADGET_DUALSPEED