From patchwork Mon Aug 31 06:34:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 52886 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id BA0D122EB3 for ; Mon, 31 Aug 2015 08:41:50 +0000 (UTC) Received: by labth1 with SMTP id th1sf37705692lab.2 for ; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=WmvkmGx6qDOFj5K+gqM0aeG2LeVphfbtnHapboeU7C4=; b=Vkc1YQSaT80VdD4qzjJBVFXPVgg/NoJxqBlCvQAprSDR8sbCj3sUPjfxiwLK+x+CSp yiHeLYH8hnjtSh16MHjrRuIX7ewkMXB3qZ6Iy8uNAP1JVdaMAt32NmiDCaV+7PnoeWh3 nEObAmX4pAuzAWeSVTA7HAsRXCiffMRUTbaocsbRKuZCT/Z2t8R2GPgC8r20/BBbHCnZ b81tEqJLNZPY943HUXZN99D05izkHKzJ5tgCGIsNsgIHuOoGx8vzvfTP27ddOXn6N4uY 6vm3bvG5eKYPh/oIY/fWy/wPV524BpbnABQaCT+YgwCC24FMYlGCAni59OnmJEbjgqu5 QZYw== X-Gm-Message-State: ALoCoQlSjpl5r7RXL8cTy+S0ZfWWjkX7dV9E6XjhL7J8yp3J4Ck+rYOIURR/yAmypcaf41bviIb7 X-Received: by 10.112.54.166 with SMTP id k6mr6032074lbp.0.1441010509706; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.166 with SMTP id n6ls406997laf.86.gmail; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) X-Received: by 10.112.129.72 with SMTP id nu8mr5316215lbb.81.1441010509570; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id e1si12628129laa.33.2015.08.31.01.41.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Aug 2015 01:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbtg9 with SMTP id tg9so56516987lbb.1 for ; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) X-Received: by 10.152.43.198 with SMTP id y6mr1767121lal.41.1441010509446; Mon, 31 Aug 2015 01:41:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.151.194 with SMTP id us2csp1480550lbb; Mon, 31 Aug 2015 01:41:48 -0700 (PDT) X-Received: by 10.195.12.76 with SMTP id eo12mr28640764wjd.51.1441010508364; Mon, 31 Aug 2015 01:41:48 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id o20si25568261wjr.199.2015.08.31.01.41.47; Mon, 31 Aug 2015 01:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9862E4B6F2; Mon, 31 Aug 2015 10:41:46 +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 RQFmDI7U9FVs; Mon, 31 Aug 2015 10:41:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BA72E4B6C6; Mon, 31 Aug 2015 10:41:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A05494B67D for ; Mon, 31 Aug 2015 08:35:04 +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 ryLuK7Nyfx7A for ; Mon, 31 Aug 2015 08:35:04 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 2EAE84B67B for ; Mon, 31 Aug 2015 08:35:00 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t7V6YwBj027391; Mon, 31 Aug 2015 01:34:58 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7V6YwOV028495; Mon, 31 Aug 2015 01:34:58 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Mon, 31 Aug 2015 01:34:58 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7V6Yt16032397; Mon, 31 Aug 2015 01:34:56 -0500 From: Kishon Vijay Abraham I To: , , Date: Mon, 31 Aug 2015 12:04:55 +0530 Message-ID: <1441002895-17186-1-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 31 Aug 2015 10:41:44 +0200 Cc: nsekhar@ti.com, kishon@ti.com Subject: [U-Boot] [PATCH] include: configs: Enable DWC3 and DFU in OMAP5 uEVM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Enabled dwc3, dwc3-omap and PHY to get DWC3 functional in OMAP5 uEVM. Also enabled support for DFU. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini --- include/configs/omap5_uevm.h | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h index 8647921..18a2924 100644 --- a/include/configs/omap5_uevm.h +++ b/include/configs/omap5_uevm.h @@ -19,6 +19,47 @@ "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}" #endif +#define DFU_ALT_INFO_MMC \ + "dfu_alt_info_mmc=" \ + "boot part 0 1;" \ + "rootfs part 0 2;" \ + "MLO fat 0 1;" \ + "MLO.raw raw 0x100 0x100;" \ + "u-boot.img.raw raw 0x300 0x400;" \ + "spl-os-args.raw raw 0x80 0x80;" \ + "spl-os-image.raw raw 0x900 0x2000;" \ + "spl-os-args fat 0 1;" \ + "spl-os-image fat 0 1;" \ + "u-boot.img fat 0 1;" \ + "uEnv.txt fat 0 1\0" + +#define DFU_ALT_INFO_EMMC \ + "dfu_alt_info_emmc=" \ + "rawemmc raw 0 3751936;" \ + "boot part 1 1;" \ + "rootfs part 1 2;" \ + "MLO fat 1 1;" \ + "MLO.raw raw 0x100 0x100;" \ + "u-boot.img.raw raw 0x300 0x400;" \ + "spl-os-args.raw raw 0x80 0x80;" \ + "spl-os-image.raw raw 0x900 0x2000;" \ + "spl-os-args fat 1 1;" \ + "spl-os-image fat 1 1;" \ + "u-boot.img fat 1 1;" \ + "uEnv.txt fat 1 1\0" + +#define DFU_ALT_INFO_RAM \ + "dfu_alt_info_ram=" \ + "kernel ram 0x80200000 0x4000000;" \ + "fdt ram 0x80f80000 0x80000;" \ + "ramdisk ram 0x81000000 0x4000000\0" + +#define DFUARGS \ + "dfu_bufsiz=0x10000\0" \ + DFU_ALT_INFO_MMC \ + DFU_ALT_INFO_EMMC \ + DFU_ALT_INFO_RAM + #include #define CONFIG_CONS_INDEX 3 @@ -58,6 +99,27 @@ #define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 80 #define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 79 +/* USB GADGET */ +#define CONFIG_USB_DWC3_PHY_OMAP +#define CONFIG_USB_DWC3_OMAP +#define CONFIG_USB_DWC3 +#define CONFIG_USB_DWC3_GADGET + +#define CONFIG_USB_GADGET +#define CONFIG_USB_GADGET_DOWNLOAD +#define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments" +#define CONFIG_G_DNL_VENDOR_NUM 0x0403 +#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00 +#define CONFIG_USB_GADGET_DUALSPEED + +/* USB Device Firmware Update support */ +#define CONFIG_USB_FUNCTION_DFU +#define CONFIG_DFU_RAM +#define CONFIG_CMD_DFU + +#define CONFIG_DFU_MMC + /* Enabled commands */ #define CONFIG_CMD_DHCP /* DHCP Support */