From patchwork Tue Dec 18 09:52:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 154131 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3504521ljp; Tue, 18 Dec 2018 01:54:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/VjeVFeLKbyRec7BgMLwfhwjFbyivA4lmuSr4WAYCFWhbjkmbheKWo7foJrA9MbgvRLM0L2 X-Received: by 2002:a50:b7ad:: with SMTP id h42mr2825688ede.210.1545126861199; Tue, 18 Dec 2018 01:54:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545126861; cv=none; d=google.com; s=arc-20160816; b=spxqfbZtPZOVxYQpuZeuwYyrJAucj1zsh5No4V21rzaL/8fMVE8d7Qf0QXPQujWekv tCkcTRPyVUvYflmH49PFOi8GD1H1MnhLSRpGJBR8Da8jKz+UQ1KdUhrSQwy4KANU1iYY irhkWrZ8tpXPrierZsKCK69fzjEtQZ7+4ol7422sJcN/MAktYSv2Wxw/xHJ73tIMoQl+ 4YLObKxPcbjYJNsxRSlSuN+aOsF16d0kTGreRvPXox/Cn+YSPP879AF30gNfv2x26EjF XUwINuR0BMnBrO2WSiB4eBlbY4MuFdsF18KBULaKfpL5k/4gwA4pEwPqdu+fw7cItL/A 8L2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=H1Hf3ASpsLIyBwbvzbv4Q/pBN4W5bEwNjrjQCeJOV6s=; b=wMPe51fL40tX1T1seRyOYhQP5YCBGh3fVE+vj+a3U1KWfDUl43peBm0RsSC6njA2vl EC5AClz4xvS+HPp2UYRVPwqeW/ApGXL7eW+VzjOao7MH+CnV5X+Qa2FAlXr+5JB4/IsR ez7jamAWHmJolUKbdWscEHRILCqhMPmdcfki1egzXeFE88/H91L7IacC0iyGhumay72T Vsgu8BgsQM4oIBoyPg9zHQnQqzo1OL7uZreFnNudOx0yuxpgTiUPAmYJwxi3pEOkOMjd KrqnH+R9GWx7HYxX3LgkZzNP0xTr5aG5Dg6VOcCZmbEb2fQY8Je9i3pVNq+d0UgD7qyA qkaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iT7ASDho; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h23si2152054edb.114.2018.12.18.01.54.20; Tue, 18 Dec 2018 01:54:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iT7ASDho; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id BF673C22088; Tue, 18 Dec 2018 09:53:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 17DE3C221AA; Tue, 18 Dec 2018 09:53:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2E038C221B1; Tue, 18 Dec 2018 09:53:30 +0000 (UTC) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by lists.denx.de (Postfix) with ESMTPS id 86E84C220BA for ; Tue, 18 Dec 2018 09:53:26 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id y1so7572334plp.9 for ; Tue, 18 Dec 2018 01:53:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1C9K48wLdROqVc6Zhn1t2cHrV9TUP0r6FFrerc2DYho=; b=iT7ASDho0B0IptkP4q5LYUNyVo3GPCsiC2p2QXqEeyWMAOKhkZAj95pHO2fGxuA2e2 VY0FVq8gpxEsOfa5qwAfbEK7WLb7QB+CW82qVz62d3mYDYEuq6iXD1XQlK/8KGgLKuou 6PMpWq1rWbO3TCnG3gV7AATtHCB8H7agbHz+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1C9K48wLdROqVc6Zhn1t2cHrV9TUP0r6FFrerc2DYho=; b=n2aLDB9Qw8GcrttIvRgX5GjmsTCuBPtlWCSVAEtkbT3zLDDRv5HV/ld8S4vEVuGbDN DhBZ+xGxqkKu4wFedLvgazJESHYXQiyKudI30ldc0Zsxv6my22awyrSAUarqucNNhkUJ tQtBdq4qPFhEbk9Ibmftu+ejYnh3G+AVwwnN8K1cLmwjNTiqSYGXW0LN2P2JeWZ5OSV6 dOozYnZ3EMEEjWubW+BfffWSazl+qI9OcTBHxc1nTKtV18QMV8dw72UnQf04VrUdkZ9Y qWfylJ1MPANL/QtFOIheGvyBHy/BtecW/+tytvsSigRus62sPkVlUgMU2reyQb5BQt+k PGbQ== X-Gm-Message-State: AA+aEWZV/eGnx8wOX8FbIhJLAyQQ1usJZKhKtCpe2zkudoWoNEfl/HG2 3OBmbcZccBKtE6cKW5tQBlEHkoINjF6MGA== X-Received: by 2002:a17:902:7791:: with SMTP id o17mr15531212pll.60.1545126805175; Tue, 18 Dec 2018 01:53:25 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id l69sm30817514pfb.75.2018.12.18.01.53.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Dec 2018 01:53:24 -0800 (PST) From: Shawn Guo To: Tom Rini Date: Tue, 18 Dec 2018 17:52:07 +0800 Message-Id: <20181218095207.11620-3-shawn.guo@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181218095207.11620-1-shawn.guo@linaro.org> References: <20181218095207.11620-1-shawn.guo@linaro.org> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] poplar_defconfig: enable fastboot support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" It enables fastboot support on Poplar board by using DWC2 OTG gadget driver. Signed-off-by: Shawn Guo --- configs/poplar_defconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configs/poplar_defconfig b/configs/poplar_defconfig index 946e7caf6bea..48e9c6eaac26 100644 --- a/configs/poplar_defconfig +++ b/configs/poplar_defconfig @@ -6,6 +6,13 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_NR_DRAM_BANKS=2 # CONFIG_DISPLAY_CPUINFO is not set CONFIG_SYS_PROMPT="poplar# " +CONFIG_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_CMD_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x20000000 +CONFIG_FASTBOOT_BUF_SIZE=0x10000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_CMD_MMC=y CONFIG_CMD_USB=y # CONFIG_ISO_PARTITION is not set @@ -18,6 +25,13 @@ CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_DWC2_OTG=y +CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y +CONFIG_USB_GADGET_DOWNLOAD=y +CONFIG_USB_GADGET_MANUFACTURER="HiSilicon" +CONFIG_USB_GADGET_VENDOR_NUM=0x18d1 +CONFIG_USB_GADGET_PRODUCT_NUM=0xd00d CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_FAT_WRITE=y