blob: b84529a3744a6edf97b5c068073c77b7e84ba369 [file] [log] [blame]
Steve Raee016f0b2016-08-15 17:26:26 -07001comment "FASTBOOT"
2
Yann E. MORINc2948732016-11-13 22:26:13 +01003menuconfig FASTBOOT
4 bool "Fastboot support"
Steve Raee016f0b2016-08-15 17:26:26 -07005
Yann E. MORINc2948732016-11-13 22:26:13 +01006if FASTBOOT
Steve Raee016f0b2016-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
Simon Glass00fd59d2017-08-04 16:35:06 -060021 See doc/README.android-fastboot for more information.
22
Steve Raee016f0b2016-08-15 17:26:26 -070023config ANDROID_BOOT_IMAGE
24 bool "Enable support for Android Boot Images"
25 help
26 This enables support for booting images which use the Android
27 image format header.
28
29if USB_FUNCTION_FASTBOOT
30
31config FASTBOOT_BUF_ADDR
32 hex "Define FASTBOOT buffer address"
33 help
34 The fastboot protocol requires a large memory buffer for
35 downloads. Define this to the starting RAM address to use for
36 downloaded images.
37
38config FASTBOOT_BUF_SIZE
39 hex "Define FASTBOOT buffer size"
40 help
41 The fastboot protocol requires a large memory buffer for
42 downloads. This buffer should be as large as possible for a
43 platform. Define this to the size available RAM for fastboot.
44
Semen Protsenko9af5ba82016-10-24 18:41:10 +030045config FASTBOOT_USB_DEV
46 int "USB controller number"
47 default 0
48 help
49 Some boards have USB OTG controller other than 0. Define this
50 option so it can be used in compiled environment (e.g. in
51 CONFIG_BOOTCOMMAND).
52
Steve Raee016f0b2016-08-15 17:26:26 -070053config FASTBOOT_FLASH
54 bool "Enable FASTBOOT FLASH command"
55 help
56 The fastboot protocol includes a "flash" command for writing
57 the downloaded image to a non-volatile storage device. Define
58 this to enable the "fastboot flash" command.
59
60config FASTBOOT_FLASH_MMC_DEV
61 int "Define FASTBOOT MMC FLASH default device"
Petr Kulhavy6f6c8632016-09-09 10:27:18 +020062 depends on FASTBOOT_FLASH
Steve Raee016f0b2016-08-15 17:26:26 -070063 help
64 The fastboot "flash" command requires additional information
65 regarding the non-volatile storage device. Define this to
66 the eMMC device that fastboot should use to store the image.
67
Petr Kulhavy6f6c8632016-09-09 10:27:18 +020068config FASTBOOT_GPT_NAME
69 string "Target name for updating GPT"
70 depends on FASTBOOT_FLASH
71 default "gpt"
72 help
73 The fastboot "flash" command supports writing the downloaded
74 image to the Protective MBR and the Primary GUID Partition
75 Table. (Additionally, this downloaded image is post-processed
76 to generate and write the Backup GUID Partition Table.)
77 This occurs when the specified "partition name" on the
78 "fastboot flash" command line matches the value defined here.
79 The default target name for updating GPT is "gpt".
80
81config FASTBOOT_MBR_NAME
82 string "Target name for updating MBR"
83 depends on FASTBOOT_FLASH
84 default "mbr"
85 help
86 The fastboot "flash" command allows to write the downloaded image
87 to the Master Boot Record. This occurs when the "partition name"
88 specified on the "fastboot flash" command line matches the value
89 defined here. The default target name for updating MBR is "mbr".
90
Steve Raee016f0b2016-08-15 17:26:26 -070091endif # USB_FUNCTION_FASTBOOT
92
Yann E. MORINc2948732016-11-13 22:26:13 +010093endif # FASTBOOT