]> git.sur5r.net Git - u-boot/blobdiff - cmd/fastboot/Kconfig
pl011: Convert CONFIG_PL011_SERIAL to Kconfig
[u-boot] / cmd / fastboot / Kconfig
index 89b9e73440c8dd7ab0082ac550f4b72378c62c24..cbb9183ea266ed275aef91a90e30c01b5fa71208 100644 (file)
@@ -2,11 +2,17 @@ comment "FASTBOOT"
 
 menuconfig FASTBOOT
        bool "Fastboot support"
+       depends on USB_GADGET
+       default y if ARCH_SUNXI && USB_MUSB_GADGET
 
 if FASTBOOT
 
 config USB_FUNCTION_FASTBOOT
        bool "Enable USB fastboot gadget"
+       default y
+       select USB_GADGET_DOWNLOAD
+       imply ANDROID_BOOT_IMAGE
+       imply CMD_FASTBOOT
        help
          This enables the USB part of the fastboot gadget.
 
@@ -18,16 +24,22 @@ config CMD_FASTBOOT
          protocol for downloading images, flashing and device control
          used on Android devices.
 
-config ANDROID_BOOT_IMAGE
-       bool "Enable support for Android Boot Images"
-       help
-         This enables support for booting images which use the Android
-         image format header.
+         See doc/README.android-fastboot for more information.
 
 if USB_FUNCTION_FASTBOOT
 
 config FASTBOOT_BUF_ADDR
        hex "Define FASTBOOT buffer address"
+       default 0x82000000 if MX6SX || MX6SL || MX6UL || MX6SLL
+       default 0x81000000 if ARCH_OMAP2PLUS
+       default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I
+       default 0x22000000 if ARCH_SUNXI && MACH_SUN9I
+       default 0x60800800 if ROCKCHIP_RK3036 || ROCKCHIP_RK3188 || \
+                               ROCKCHIP_RK322X
+       default 0x800800 if ROCKCHIP_RK3288 || ROCKCHIP_RK3329 || \
+                               ROCKCHIP_RK3399
+       default 0x280000 if ROCKCHIP_RK3368
+       default 0x100000 if ARCH_ZYNQMP
        help
          The fastboot protocol requires a large memory buffer for
          downloads. Define this to the starting RAM address to use for
@@ -35,6 +47,10 @@ config FASTBOOT_BUF_ADDR
 
 config FASTBOOT_BUF_SIZE
        hex "Define FASTBOOT buffer size"
+       default 0x8000000 if ARCH_ROCKCHIP
+       default 0x6000000 if ARCH_ZYNQMP
+       default 0x2000000 if ARCH_SUNXI
+       default 0x7000000
        help
          The fastboot protocol requires a large memory buffer for
          downloads. This buffer should be as large as possible for a
@@ -50,6 +66,7 @@ config FASTBOOT_USB_DEV
 
 config FASTBOOT_FLASH
        bool "Enable FASTBOOT FLASH command"
+       default y if ARCH_SUNXI
        help
          The fastboot protocol includes a "flash" command for writing
          the downloaded image to a non-volatile storage device. Define
@@ -57,12 +74,24 @@ config FASTBOOT_FLASH
 
 config FASTBOOT_FLASH_MMC_DEV
        int "Define FASTBOOT MMC FLASH default device"
-       depends on FASTBOOT_FLASH
+       depends on FASTBOOT_FLASH && MMC
+       default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
+       default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
        help
          The fastboot "flash" command requires additional information
          regarding the non-volatile storage device. Define this to
          the eMMC device that fastboot should use to store the image.
 
+config FASTBOOT_FLASH_NAND_DEV
+       int "Define FASTBOOT NAND FLASH default device"
+       depends on FASTBOOT_FLASH && NAND
+       depends on CMD_MTDPARTS
+       default 0 if ARCH_SUNXI && NAND_SUNXI
+       help
+         The fastboot "flash" command requires additional information
+         regarding the non-volatile storage device. Define this to
+         the NAND device that fastboot should use to store the image.
+
 config FASTBOOT_GPT_NAME
        string "Target name for updating GPT"
        depends on FASTBOOT_FLASH