blob: 89b9e73440c8dd7ab0082ac550f4b72378c62c24 [file] [log] [blame]
Steve Rae437689f2016-08-15 17:26:26 -07001comment "FASTBOOT"
2
Yann E. MORIN3d2561f2016-11-13 22:26:13 +01003menuconfig FASTBOOT
4 bool "Fastboot support"
Steve Rae437689f2016-08-15 17:26:26 -07005
Yann E. MORIN3d2561f2016-11-13 22:26:13 +01006if FASTBOOT
Steve Rae437689f2016-08-15 17:26:26 -07007
8config USB_FUNCTION_FASTBOOT
9 bool "Enable USB fastboot gadget"
10 help
11 This enables the USB part of the fastboot gadget.
12
13config CMD_FASTBOOT
14 bool "Enable FASTBOOT command"
15 help
16 This enables the command "fastboot" which enables the Android
17 fastboot mode for the platform's USB device. Fastboot is a USB
18 protocol for downloading images, flashing and device control
19 used on Android devices.
20
21config ANDROID_BOOT_IMAGE
22 bool "Enable support for Android Boot Images"
23 help
24 This enables support for booting images which use the Android
25 image format header.
26
27if USB_FUNCTION_FASTBOOT
28
29config FASTBOOT_BUF_ADDR
30 hex "Define FASTBOOT buffer address"
31 help
32 The fastboot protocol requires a large memory buffer for
33 downloads. Define this to the starting RAM address to use for
34 downloaded images.
35
36config FASTBOOT_BUF_SIZE
37 hex "Define FASTBOOT buffer size"
38 help
39 The fastboot protocol requires a large memory buffer for
40 downloads. This buffer should be as large as possible for a
41 platform. Define this to the size available RAM for fastboot.
42
Semen Protsenko97bb3f82016-10-24 18:41:10 +030043config FASTBOOT_USB_DEV
44 int "USB controller number"
45 default 0
46 help
47 Some boards have USB OTG controller other than 0. Define this
48 option so it can be used in compiled environment (e.g. in
49 CONFIG_BOOTCOMMAND).
50
Steve Rae437689f2016-08-15 17:26:26 -070051config FASTBOOT_FLASH
52 bool "Enable FASTBOOT FLASH command"
53 help
54 The fastboot protocol includes a "flash" command for writing
55 the downloaded image to a non-volatile storage device. Define
56 this to enable the "fastboot flash" command.
57
58config FASTBOOT_FLASH_MMC_DEV
59 int "Define FASTBOOT MMC FLASH default device"
Petr Kulhavy4ed1eca2016-09-09 10:27:18 +020060 depends on FASTBOOT_FLASH
Steve Rae437689f2016-08-15 17:26:26 -070061 help
62 The fastboot "flash" command requires additional information
63 regarding the non-volatile storage device. Define this to
64 the eMMC device that fastboot should use to store the image.
65
Petr Kulhavy4ed1eca2016-09-09 10:27:18 +020066config FASTBOOT_GPT_NAME
67 string "Target name for updating GPT"
68 depends on FASTBOOT_FLASH
69 default "gpt"
70 help
71 The fastboot "flash" command supports writing the downloaded
72 image to the Protective MBR and the Primary GUID Partition
73 Table. (Additionally, this downloaded image is post-processed
74 to generate and write the Backup GUID Partition Table.)
75 This occurs when the specified "partition name" on the
76 "fastboot flash" command line matches the value defined here.
77 The default target name for updating GPT is "gpt".
78
79config FASTBOOT_MBR_NAME
80 string "Target name for updating MBR"
81 depends on FASTBOOT_FLASH
82 default "mbr"
83 help
84 The fastboot "flash" command allows to write the downloaded image
85 to the Master Boot Record. This occurs when the "partition name"
86 specified on the "fastboot flash" command line matches the value
87 defined here. The default target name for updating MBR is "mbr".
88
Steve Rae437689f2016-08-15 17:26:26 -070089endif # USB_FUNCTION_FASTBOOT
90
Yann E. MORIN3d2561f2016-11-13 22:26:13 +010091endif # FASTBOOT