]> git.ipfire.org Git - people/ms/u-boot.git/blame - cmd/fastboot/Kconfig
Kconfig: Migrate all of cmd/fastboot/Kconfig to defconfigs
[people/ms/u-boot.git] / cmd / fastboot / Kconfig
CommitLineData
e016f0b2
SR
1comment "FASTBOOT"
2
c2948731
YM
3menuconfig FASTBOOT
4 bool "Fastboot support"
48f6232e 5 depends on USB_GADGET
e016f0b2 6
c2948731 7if FASTBOOT
e016f0b2
SR
8
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
00fd59dd
SG
22 See doc/README.android-fastboot for more information.
23
e016f0b2
SR
24if USB_FUNCTION_FASTBOOT
25
26config FASTBOOT_BUF_ADDR
27 hex "Define FASTBOOT buffer address"
48f6232e
TR
28 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
e016f0b2
SR
38 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"
48f6232e
TR
45 default 0x8000000 if ARCH_ROCKCHIP
46 default 0x6000000 if ARCH_ZYNQMP
47 default 0x2000000 if ARCH_SUNXI
48 default 0x7000000
e016f0b2
SR
49 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
9af5ba87
SP
54config 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
e016f0b2
SR
62config 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"
48f6232e 71 depends on FASTBOOT_FLASH && MMC
e016f0b2
SR
72 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
6f6c8630
PK
77config 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
e016f0b2
SR
100endif # USB_FUNCTION_FASTBOOT
101
c2948731 102endif # FASTBOOT