From patchwork Thu Sep 10 19:03:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 516390 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 382061400CB for ; Fri, 11 Sep 2015 05:07:35 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HayUsGI+; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 58B8F4B746; Thu, 10 Sep 2015 21:07:25 +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 MhAZiyIcHq-N; Thu, 10 Sep 2015 21:07:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2AD04B741; Thu, 10 Sep 2015 21:07:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2159A4B739 for ; Thu, 10 Sep 2015 21:04:16 +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 mAKoZInTIaU6 for ; Thu, 10 Sep 2015 21:04:16 +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-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by theia.denx.de (Postfix) with ESMTPS id B51394B737 for ; Thu, 10 Sep 2015 21:04:06 +0200 (CEST) Received: by ykei199 with SMTP id i199so68159268yke.0 for ; Thu, 10 Sep 2015 12:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bQ2vi7ArM+DmaE9gajpNa729SGFXuLd6vPz7V2HmK4c=; b=HayUsGI+RbbN8XdGR5PA7yBlwg3wjNc4eukFqtOh3pBPjcvSjE6yCkGWPnxFqHakif RnxLd00mtD+yhjlf852GEQNLJcDTMeWJPoiKioHvhQShjmQXMpygpxZBXPM+jayObjWC 94YjEN8gEcipdvIgW1oliACNW/B30ElXxZLtOtBNzGn/9XOZFaruIdGYq4QLpwP9G5wn AUGk1YDRhpNjO0u75LmSbpBdsvBD8V/TJGcY3yz8EGjXCyPiWvmrPiBGHpIBdXcnLz7c 6Dovf6uRtbeBoKPOsa9Ls7c8+rhN/15PhJkGooRrtvQ2Ix5VlESd7vmGgEu6EJc0/06a QtJA== X-Received: by 10.170.216.136 with SMTP id i130mr47853366ykf.71.1441911844753; Thu, 10 Sep 2015 12:04:04 -0700 (PDT) Received: from localhost.localdomain ([179.159.191.85]) by smtp.gmail.com with ESMTPSA id y205sm10262094ywa.29.2015.09.10.12.04.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 12:04:04 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Thu, 10 Sep 2015 16:03:38 -0300 Message-Id: <1441911818-10730-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH] mx6sabre_common: Add Fastboot support 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" From: Fabio Estevam Tested basic fastboot commands, such as: On the mx6qsabresd U-boot prompt: => fastboot 0 On the host PC: $ fastboot getvar bootloader-version -i 0x0525 bootloader-version: U-Boot 2015.10-rc2-23960-g2462cce-dirty finished. total time: 0.000s $ fastboot reboot -i 0x0525 --> board reboots fine. Signed-off-by: Fabio Estevam --- include/configs/mx6sabre_common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index 6a57841..c5b4d30 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -238,6 +238,12 @@ #define CONFIG_G_DNL_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 #define CONFIG_G_DNL_MANUFACTURER "FSL" + +#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 0x07000000 #endif #endif /* __MX6QSABRE_COMMON_CONFIG_H */