blob: fb0c5da94cdb36b70cf67b0a2df110e3299f7055 [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"
Tom Rinib5bf5622017-08-25 17:50:27 -04005 depends on USB_GADGET
Steve Rae437689f2016-08-15 17:26:26 -07006
Yann E. MORIN3d2561f2016-11-13 22:26:13 +01007if FASTBOOT
Steve Rae437689f2016-08-15 17:26:26 -07008
9config USB_FUNCTION_FASTBOOT
10 bool "Enable USB fastboot gadget"
11 help
12 This enables the USB part of the fastboot gadget.
13
14config CMD_FASTBOOT
15 bool "Enable FASTBOOT command"
16 help
17 This enables the command "fastboot" which enables the Android
18 fastboot mode for the platform's USB device. Fastboot is a USB
19 protocol for downloading images, flashing and device control
20 used on Android devices.
21
Simon Glass663b0cc2017-08-04 16:35:06 -060022 See doc/README.android-fastboot for more information.
23
Steve Rae437689f2016-08-15 17:26:26 -070024if USB_FUNCTION_FASTBOOT
25
26config FASTBOOT_BUF_ADDR
27 hex "Define FASTBOOT buffer address"
Tom Rinib5bf5622017-08-25 17:50:27 -040028 default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
29 default 0x81000000 if ARCH_OMAP2PLUS
30 default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
31 default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
32 default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
33 ROCKCHIP_RK322X
34 default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
35 ROCKCHIP_RK3399
36 default 0x280000 if ROCKCHIP_RK3368
37 default 0x100000 if ARCH_ZYNQMP
Steve Rae437689f2016-08-15 17:26:26 -070038 help
39 The fastboot protocol requires a large memory buffer for
40 downloads. Define this to the starting RAM address to use for
41 downloaded images.
42
43config FASTBOOT_BUF_SIZE
44 hex "Define FASTBOOT buffer size"
Tom Rinib5bf5622017-08-25 17:50:27 -040045 default 0x8000000 if ARCH_ROCKCHIP
46 default 0x6000000 if ARCH_ZYNQMP
47 default 0x2000000 if ARCH_SUNXI
48 default 0x7000000
Steve Rae437689f2016-08-15 17:26:26 -070049 help
50 The fastboot protocol requires a large memory buffer for
51 downloads. This buffer should be as large as possible for a
52 platform. Define this to the size available RAM for fastboot.
53
Semen Protsenko97bb3f82016-10-24 18:41:10 +030054config FASTBOOT_USB_DEV
55 int "USB controller number"
56 default 0
57 help
58 Some boards have USB OTG controller other than 0. Define this
59 option so it can be used in compiled environment (e.g. in
60 CONFIG_BOOTCOMMAND).
61
Steve Rae437689f2016-08-15 17:26:26 -070062config FASTBOOT_FLASH
63 bool "Enable FASTBOOT FLASH command"
64 help
65 The fastboot protocol includes a "flash" command for writing
66 the downloaded image to a non-volatile storage device. Define
67 this to enable the "fastboot flash" command.
68
69config FASTBOOT_FLASH_MMC_DEV
70 int "Define FASTBOOT MMC FLASH default device"
Tom Rinib5bf5622017-08-25 17:50:27 -040071 depends on FASTBOOT_FLASH && MMC
Steve Rae437689f2016-08-15 17:26:26 -070072 help
73 The fastboot "flash" command requires additional information
74 regarding the non-volatile storage device. Define this to
75 the eMMC device that fastboot should use to store the image.
76
Petr Kulhavy4ed1eca2016-09-09 10:27:18 +020077config FASTBOOT_GPT_NAME
78 string "Target name for updating GPT"
79 depends on FASTBOOT_FLASH
80 default "gpt"
81 help
82 The fastboot "flash" command supports writing the downloaded
83 image to the Protective MBR and the Primary GUID Partition
84 Table. (Additionally, this downloaded image is post-processed
85 to generate and write the Backup GUID Partition Table.)
86 This occurs when the specified "partition name" on the
87 "fastboot flash" command line matches the value defined here.
88 The default target name for updating GPT is "gpt".
89
90config FASTBOOT_MBR_NAME
91 string "Target name for updating MBR"
92 depends on FASTBOOT_FLASH
93 default "mbr"
94 help
95 The fastboot "flash" command allows to write the downloaded image
96 to the Master Boot Record. This occurs when the "partition name"
97 specified on the "fastboot flash" command line matches the value
98 defined here. The default target name for updating MBR is "mbr".
99
Steve Rae437689f2016-08-15 17:26:26 -0700100endif # USB_FUNCTION_FASTBOOT
101
Yann E. MORIN3d2561f2016-11-13 22:26:13 +0100102endif # FASTBOOT