aboutsummaryrefslogtreecommitdiff
path: root/cmd/fastboot/Kconfig
diff options
context:
space:
mode:
authorSteve Rae2016-08-15 17:26:26 -0700
committerTom Rini2016-08-20 14:03:23 -0400
commite016f0b2c2e1dc6287b205905ff232c32f8c9e92 (patch)
tree7973736b0763d0f7d940b459ae4676747f0c826f /cmd/fastboot/Kconfig
parent3c1dcef62adca0e0ff83ab925ca0b4b8c5fbc573 (diff)
fastboot: implement Kconfig
implement Kconfig for the 'fastboot' feature set Signed-off-by: Steve Rae <steve.rae@raedomain.com>
Diffstat (limited to 'cmd/fastboot/Kconfig')
-rw-r--r--cmd/fastboot/Kconfig60
1 files changed, 60 insertions, 0 deletions
diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig
new file mode 100644
index 00000000000..a93d1c09e71
--- /dev/null
+++ b/cmd/fastboot/Kconfig
@@ -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