From patchwork Wed Jul 22 08:45:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 498460 X-Patchwork-Delegate: marek.vasut@gmail.com 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 BC1091402B8 for ; Wed, 22 Jul 2015 18:48:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ADBEC4B617; Wed, 22 Jul 2015 10:47:52 +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 bnLk0RV02ZLG; Wed, 22 Jul 2015 10:47:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 46BE34B666; Wed, 22 Jul 2015 10:47:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C0DC44B6F5 for ; Wed, 22 Jul 2015 10:47:49 +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 4zSPLYDsORlV for ; Wed, 22 Jul 2015 10:47:49 +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 gagarine.paulk.fr (gagarine.paulk.fr [109.190.93.129]) by theia.denx.de (Postfix) with ESMTPS id 142214B617 for ; Wed, 22 Jul 2015 10:47:39 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 65534) id D332E200BD; Wed, 22 Jul 2015 10:47:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 689E2200DB; Wed, 22 Jul 2015 10:45:45 +0200 (CEST) From: Paul Kocialkowski To: u-boot@lists.denx.de Date: Wed, 22 Jul 2015 10:45:35 +0200 Message-Id: <1437554735-11728-12-git-send-email-contact@paulk.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437554735-11728-1-git-send-email-contact@paulk.fr> References: <1437554735-11728-1-git-send-email-contact@paulk.fr> Cc: Marek Vasut , Ian Campbell Subject: [U-Boot] [PATCH 12/12] sunxi: MUSB gadget config provisions, with fastboot and USB mass storage 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" This adds some config options to the sunxi-common config to enable the USB download gadget and the fastboot and USB mass storage functions. Signed-off-by: Paul Kocialkowski Acked-by: Hans de Goede --- include/configs/sunxi-common.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 3d57129..b2eb306 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -329,6 +329,36 @@ extern int soft_i2c_gpio_scl; #define CONFIG_USB_MUSB_PIO_ONLY #endif +#ifdef CONFIG_USB_MUSB_GADGET +#define CONFIG_USB_GADGET +#define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 0 + +#define CONFIG_USB_GADGET_DOWNLOAD +#define CONFIG_USB_FUNCTION_FASTBOOT +#define CONFIG_USB_FUNCTION_MASS_STORAGE +#endif + +#ifdef CONFIG_USB_GADGET_DOWNLOAD +#define CONFIG_G_DNL_VENDOR_NUM 0x1f3a +#define CONFIG_G_DNL_PRODUCT_NUM 0x1010 +#define CONFIG_G_DNL_MANUFACTURER "Allwinner Technology" +#endif + +#ifdef CONFIG_USB_FUNCTION_FASTBOOT +#define CONFIG_CMD_FASTBOOT +#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR +#define CONFIG_FASTBOOT_BUF_SIZE 0x2000000 + +#define CONFIG_FASTBOOT_FLASH +#define CONFIG_FASTBOOT_FLASH_MMC_DEV 0 +#define CONFIG_EFI_PARTITION +#endif + +#ifdef CONFIG_USB_FUNCTION_MASS_STORAGE +#define CONFIG_CMD_USB_MASS_STORAGE +#endif + #if defined CONFIG_USB_EHCI_HCD || defined CONFIG_USB_MUSB_HOST #define CONFIG_CMD_USB #endif