4 bool "Fastboot support"
6 default y if ARCH_SUNXI && USB_MUSB_GADGET
10 config USB_FUNCTION_FASTBOOT
11 bool "Enable USB fastboot gadget"
13 select USB_GADGET_DOWNLOAD
14 imply ANDROID_BOOT_IMAGE
17 This enables the USB part of the fastboot gadget.
20 bool "Enable FASTBOOT command"
22 This enables the command "fastboot" which enables the Android
23 fastboot mode for the platform's USB device. Fastboot is a USB
24 protocol for downloading images, flashing and device control
25 used on Android devices.
27 See doc/README.android-fastboot for more information.
29 if USB_FUNCTION_FASTBOOT
31 config FASTBOOT_BUF_ADDR
32 hex "Define FASTBOOT buffer address"
33 default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
34 default 0x81000000 if ARCH_OMAP2PLUS
35 default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
36 default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
37 default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
39 default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
41 default 0x280000 if ROCKCHIP_RK3368
42 default 0x100000 if ARCH_ZYNQMP
44 The fastboot protocol requires a large memory buffer for
45 downloads. Define this to the starting RAM address to use for
48 config FASTBOOT_BUF_SIZE
49 hex "Define FASTBOOT buffer size"
50 default 0x8000000 if ARCH_ROCKCHIP
51 default 0x6000000 if ARCH_ZYNQMP
52 default 0x2000000 if ARCH_SUNXI
55 The fastboot protocol requires a large memory buffer for
56 downloads. This buffer should be as large as possible for a
57 platform. Define this to the size available RAM for fastboot.
59 config FASTBOOT_USB_DEV
60 int "USB controller number"
63 Some boards have USB OTG controller other than 0. Define this
64 option so it can be used in compiled environment (e.g. in
68 bool "Enable FASTBOOT FLASH command"
70 The fastboot protocol includes a "flash" command for writing
71 the downloaded image to a non-volatile storage device. Define
72 this to enable the "fastboot flash" command.
74 config FASTBOOT_FLASH_MMC_DEV
75 int "Define FASTBOOT MMC FLASH default device"
76 depends on FASTBOOT_FLASH && MMC
77 default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
78 default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
80 The fastboot "flash" command requires additional information
81 regarding the non-volatile storage device. Define this to
82 the eMMC device that fastboot should use to store the image.
84 config FASTBOOT_GPT_NAME
85 string "Target name for updating GPT"
86 depends on FASTBOOT_FLASH
89 The fastboot "flash" command supports writing the downloaded
90 image to the Protective MBR and the Primary GUID Partition
91 Table. (Additionally, this downloaded image is post-processed
92 to generate and write the Backup GUID Partition Table.)
93 This occurs when the specified "partition name" on the
94 "fastboot flash" command line matches the value defined here.
95 The default target name for updating GPT is "gpt".
97 config FASTBOOT_MBR_NAME
98 string "Target name for updating MBR"
99 depends on FASTBOOT_FLASH
102 The fastboot "flash" command allows to write the downloaded image
103 to the Master Boot Record. This occurs when the "partition name"
104 specified on the "fastboot flash" command line matches the value
105 defined here. The default target name for updating MBR is "mbr".
107 endif # USB_FUNCTION_FASTBOOT