From patchwork Thu Sep 22 18:52:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 76808 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp187220qgf; Thu, 22 Sep 2016 11:52:21 -0700 (PDT) X-Received: by 10.28.29.4 with SMTP id d4mr3700301wmd.111.1474570340951; Thu, 22 Sep 2016 11:52:20 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id x188si3855158wmx.16.2016.09.22.11.52.20; Thu, 22 Sep 2016 11:52:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E76A0A7669; Thu, 22 Sep 2016 20:52:19 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VTzwVwynDS0g; Thu, 22 Sep 2016 20:52:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F8A9A7663; Thu, 22 Sep 2016 20:52:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EB8BA7663 for ; Thu, 22 Sep 2016 20:52:13 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GacH6hStaXpM for ; Thu, 22 Sep 2016 20:52:13 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by theia.denx.de (Postfix) with ESMTPS id 21C2EA765D for ; Thu, 22 Sep 2016 20:52:09 +0200 (CEST) Received: by mail-lf0-f42.google.com with SMTP id g62so75763113lfe.3 for ; Thu, 22 Sep 2016 11:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vm6+dTUGS4ZYcMPwwx4ZHb6fZVrnmqmBftE76LMqm0k=; b=dWbPpNuXyPMrCB3t4wlWU0PzUl1GsC9S2BXRgTlywgWQK2SYbGVT0rbWvmSii9BUy2 +rxxjh7DR5iUGiA4kHcdxH1RrT6xa8HmESmKDr3lO8WyW5+8vD4zdYhsLL5yCK0UWt3F 97EkP8bXETz0GYY2Q2Ki0LbhLAGlkRXzLrwyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vm6+dTUGS4ZYcMPwwx4ZHb6fZVrnmqmBftE76LMqm0k=; b=VuFm3svlsaDnYfKOicD/UGSTBy5jhYFWavJZ6msH+g9qRQwME8BdKhiXcOSV2kqdhZ bHPgPrXUQcK2Rb7mSCKi581JtqwqtezjF1CDld7zTB828QI2N5JxxM7d6dTrTjiOA4Le X58e9N+5siJpRayJnFDRtzvQGvTx72+FLYDG/H92bLUXU3LlFohRdCW0jhwf5PqxaihH oJ5N+22VxDPuJPPIfZt1puw4wolqz51KxVQwYB28BICPUMuuP9TO5qFjCg97ntbLrONs srrtu3vBuyEK/1JHgXeEmwput+DDlMo4D7fJPeWQf4cSeF/a2dzopNwdmzzBrCKLVvF3 w7Vg== X-Gm-Message-State: AE9vXwPm3VvYdgExX/6Pax9sDdledd0r7TsVtGeH6cEVJ6pMAL+KZSpb4nP2VmZTRAB4q5Nh X-Received: by 10.46.32.200 with SMTP id g69mr1386212lji.8.1474570328377; Thu, 22 Sep 2016 11:52:08 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id s125sm566782lja.14.2016.09.22.11.52.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Sep 2016 11:52:07 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 22 Sep 2016 21:52:07 +0300 Message-Id: <20160922185207.4261-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH] arm: dra7xx: Move fastboot options to defconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Now that fastboot options are available in Kconfig, we can migrate them from DRA7 header to corresponding DRA7 defconfigs. Signed-off-by: Sam Protsenko --- configs/dra7xx_evm_defconfig | 8 ++++++++ configs/dra7xx_hs_evm_defconfig | 8 ++++++++ include/configs/dra7xx_evm.h | 18 +++++++++--------- 3 files changed, 25 insertions(+), 9 deletions(-) -- 2.9.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig index 64df490..321ac45 100644 --- a/configs/dra7xx_evm_defconfig +++ b/configs/dra7xx_evm_defconfig @@ -14,6 +14,14 @@ CONFIG_SPL=y CONFIG_SPL_STACK_R=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_HUSH_PARSER=y +CONFIG_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_CMD_FASTBOOT=y +CONFIG_ANDROID_BOOT_IMAGE=y +CONFIG_FASTBOOT_BUF_ADDR=0x82000000 +CONFIG_FASTBOOT_BUF_SIZE=0x2f000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set CONFIG_CMD_ASKENV=y diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig index 5fdc2b7..c0485e0 100644 --- a/configs/dra7xx_hs_evm_defconfig +++ b/configs/dra7xx_hs_evm_defconfig @@ -18,6 +18,14 @@ CONFIG_SPL=y CONFIG_SPL_STACK_R=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_HUSH_PARSER=y +CONFIG_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_CMD_FASTBOOT=y +CONFIG_ANDROID_BOOT_IMAGE=y +CONFIG_FASTBOOT_BUF_ADDR=0x82000000 +CONFIG_FASTBOOT_BUF_SIZE=0x2f000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set CONFIG_CMD_ASKENV=y diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 194804c..273374a 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -121,15 +121,15 @@ DFU_ALT_INFO_EMMC \ DFU_ALT_INFO_RAM \ DFU_ALT_INFO_QSPI - -/* Fastboot */ -#define CONFIG_USB_FUNCTION_FASTBOOT -#define CONFIG_CMD_FASTBOOT -#define CONFIG_ANDROID_BOOT_IMAGE -#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR -#define CONFIG_FASTBOOT_BUF_SIZE 0x2F000000 -#define CONFIG_FASTBOOT_FLASH -#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1 +#else +/* Discard fastboot in SPL build, to spare some space */ +#undef CONFIG_FASTBOOT +#undef CONFIG_USB_FUNCTION_FASTBOOT +#undef CONFIG_CMD_FASTBOOT +#undef CONFIG_ANDROID_BOOT_IMAGE +#undef CONFIG_FASTBOOT_BUF_ADDR +#undef CONFIG_FASTBOOT_BUF_SIZE +#undef CONFIG_FASTBOOT_FLASH #endif #include