xref: /rk3399_rockchip-uboot/cmd/fastboot/Kconfig (revision 2a792753d6a1fe8f2310928ebd5534e4d87a8030)
1comment "FASTBOOT"
2
3menuconfig FASTBOOT
4	bool "Fastboot support"
5
6if FASTBOOT
7
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
43config 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
51config 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"
60	depends on FASTBOOT_FLASH
61	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
66config 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
89endif # USB_FUNCTION_FASTBOOT
90
91endif # FASTBOOT
92