From patchwork Tue Oct 22 17:54:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 863 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B97EC3F047 for ; Tue, 22 Oct 2019 19:55:27 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id q1sf13084944pgj.3 for ; Tue, 22 Oct 2019 10:55:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766926; cv=pass; d=google.com; s=arc-20160816; b=czZ488t7WAphV5hio8WCd3Lc0UgHdCAl90Tz18qkIu9myPtMQlFFHEYD6aaF+HsfIc fM3ltWIxOubE415fI+jWgW7zu2NiHsCABY2xSPNSvx0kQOEg6QpEvW1gjpb5PxG+U2m8 7W+LvHdEgivGt6OIIAGugYQyJOeUbZJk/n6M4BTwEYK/TX1I6JVDjcy4OYBRJx03vRcW t//LwOUQp1rQgoDbt4vYIscOZyRkQcs01/gESW03YldDccsb4Z29G5qZ3ndmefEk6OF8 tcZ9yGpF/GOCPWo3uzmpSLKNcSsqayIAVec+xHXHThmJeajs3HZLMQZozcOROWO/79W5 yJJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kS7pJukSaEIJZMn8i2yf8JzW+07DlL7eQ5NqOIdTrqg=; b=At//AinLK6gzbXNPnxiJXgepc8VvEQsZA7MoSomcOeJEobinuRntb50JdYyyWlx0Ed HM+jLbh24TrGiKmJeGovzKyx0iOYwO71JVJsyY4G4CawMVdNaaKl3SquZsWifW2XRMfs G5v7j4VJBgQ5y/WinjG/vHoB4iAXvpparWofsiMv3upmzs53nvjzRSv8q7i84yY+VBpm IFKVpqt7vX3mjuOHrCZsvsQsKqt5VG0/4jclOAP1v5WFfQpdzE5uNFhoySIV3HE0am+D y9TEwMsS0EnfewbAzouNGSPLAw3nsAj9/bJ0ueTnKkCaviRnYwm+OxGh5ONWXCTOwGzx xl4A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EX8rg5XU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=kS7pJukSaEIJZMn8i2yf8JzW+07DlL7eQ5NqOIdTrqg=; b=ld3AWz6btZPYreE3ipTg646bBX0PpmnwnLIgSH6PNEgDHilNeFqZ1dN90cV1eBXBSf b+ZZWQ7WVVMCazi5QGHYBLKWQc+fD3bHI7YdSsgFcXs9DcfRLETXBqZq0ij6+7j7q3m2 yWzYHeoSQQHky108lSWTegREfEyPy23Gla5EI= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=kS7pJukSaEIJZMn8i2yf8JzW+07DlL7eQ5NqOIdTrqg=; b=aZG9adRUnq61ZyKrrHqEWf/GZD8JA2KycxmWuVtfL1klj6xzE9B/T2gb/+v5jMHy5p QMSnKzrXZG6IgeliAeUXTUHuhqUOD0ON0aYdyf2iPXHqxA0EWWlPxO2Iqbg8pSRCZI/D neAh4fa/iTqLeiEeXVI278I96pSnZji1/9YsMkjwCEbPsZuhUSIQxTAN9IXWC3hwtOcb l0LOZr76tFDub9eUP2vuXh410vlDyWKkadAXc+TwJnmDYNDXTI669RkY1AUCcXl4pAiC jHOn9NpSVFnheyD2qvVYSV+8K35b5F4pfJXjI9xYzWP0EJugh5GOlEIRdT07r2JdBNVz RmJA== X-Gm-Message-State: APjAAAXa1lrk5mLJoBo59pXmttKIhR+h+nQAaYT6tO6iU/jG4ENQ9wKr ZV19+dORt3ktCWzxlBhmxMHtr33E X-Google-Smtp-Source: APXvYqyggD6RBRLafYX1jcnFlYyeshJiqACW+E95l6ch4QCuUEc8+/ttDc4hh1o69xMz+UAQfMcs/Q== X-Received: by 2002:a63:4e09:: with SMTP id c9mr4922612pgb.98.1571766925772; Tue, 22 Oct 2019 10:55:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:c086:: with SMTP id o6ls1114208pjs.4.canary-gmail; Tue, 22 Oct 2019 10:55:25 -0700 (PDT) X-Received: by 2002:a17:90a:718a:: with SMTP id i10mr6160001pjk.54.1571766925277; Tue, 22 Oct 2019 10:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766925; cv=none; d=google.com; s=arc-20160816; b=DgJD3G6x+9bmnQWlhPjKDP+Zyw4nJrH8xRf/u86Y9Jx29S55HiK4xPafsvX/OORp49 tgPkefuSWrBXwUsJWlUv7bVAu2AfjTi5b6RjIAqPUlrOeJ1RuQL2VPh5Nwts/n0//v51 AyuaXXWgoIVjGtFpLal9M4HTJX5XA5qsM28BBopDXzvsFjuLmj0OFA1i5M2Pb9x5tmuC mmPQL3vDS1ST3skzE1LkTggR86GuVkvGxQf997bqrImUvXW1pMt9+o6Y5ZDqvQlY+1SZ AiELYF2dp6irxfd6uHCkfJtj1c7IRRAw8+E2vJsB6orxmglShJUvw5EdoozvXh5AA0JP MEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=PdCBo5rbmAI2jMy++P5hBEg7D83CbEs9rcXBuyu9L1c=; b=wbgEA1YKPQHs25RW3Yvq5bRozkcD1gx67BVHXFHJS1ibdmtuU1QG6hjOxmMhrAJyb2 bi6u41J6OFRU1SmPQFmKcYWFhEOTqiyRl3akQj7/Y8CiHcadplTacAszkysc3gwFhPc3 G/eeYnSNEXBQaa7S63Y+ph7pBoYb334lYDHb3Ca7M6oMaVsMBz/PvLO+t1ax1aAuPrR0 co0JmHMXC2JTKwYPJRQ2ERMxNpWaFIIU8JDcptGLKnTS3wr0n8mjQ6vX43iDdDztzyGK kpplrKmRFcrr0un7sHM5wyjVgrY/cRhSdC95inkWIashL+hhnun5SynAigXhpeL9TTr6 wu6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EX8rg5XU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r19sor17582659pgn.32.2019.10.22.10.55.24 for (Google Transport Security); Tue, 22 Oct 2019 10:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:3d41:: with SMTP id k62mr4970782pga.129.1571766923806; Tue, 22 Oct 2019 10:55:23 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:23 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/9] gadget: Select USB_GADGET_MANUFACTURER for rockchip Date: Tue, 22 Oct 2019 23:24:50 +0530 Message-Id: <20191022175458.22604-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EX8rg5XU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Select the gadget manufacturer as 'Rockchip' for all rockchip platform SoC's. This eventually drop the explicit defined added on supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig | 1 - configs/evb-rk3036_defconfig | 1 - configs/evb-rk3229_defconfig | 1 - configs/evb-rk3288_defconfig | 1 - configs/evb-rk3328_defconfig | 1 - configs/evb-rv1108_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - configs/kylin-rk3036_defconfig | 1 - configs/miqi-rk3288_defconfig | 1 - configs/phycore-rk3288_defconfig | 1 - configs/popmetal-rk3288_defconfig | 1 - configs/rock2_defconfig | 1 - configs/rock64-rk3328_defconfig | 1 - configs/tinker-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 1 + 16 files changed, 1 insertion(+), 15 deletions(-) diff --git a/configs/elgin-rv1108_defconfig b/configs/elgin-rv1108_defconfig index b3d8d28bea..c9d703a0f5 100644 --- a/configs/elgin-rv1108_defconfig +++ b/configs/elgin-rv1108_defconfig @@ -49,7 +49,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x110a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index 2e7f57ae95..4df2a90b92 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -54,7 +54,6 @@ CONFIG_SYSRESET=y # CONFIG_SPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index 9c8c084178..be91ba1e0c 100644 --- a/configs/evb-rk3229_defconfig +++ b/configs/evb-rk3229_defconfig @@ -64,7 +64,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 043ee32bb4..a52e0af79d 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 37610774c1..6f9a3a3e72 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/evb-rv1108_defconfig b/configs/evb-rv1108_defconfig index 2e28871f37..36bd7eb0f1 100644 --- a/configs/evb-rv1108_defconfig +++ b/configs/evb-rv1108_defconfig @@ -46,7 +46,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x110a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 29935d869c..4a1d7a6648 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -78,7 +78,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index dc587070d3..41ad46f12a 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -58,7 +58,6 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig index 7b4e3f7f3a..3e761e9983 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index 2914ede36c..ce8a0e5268 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -77,7 +77,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/popmetal-rk3288_defconfig b/configs/popmetal-rk3288_defconfig index 67dd3f3f2d..89400dd5de 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/rock2_defconfig b/configs/rock2_defconfig index 80d6db5d83..953d760155 100644 --- a/configs/rock2_defconfig +++ b/configs/rock2_defconfig @@ -74,7 +74,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 3ab0af1158..d86456e363 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -89,7 +89,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index eff3b06b5c..aa9f86d6f8 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-rk3288_defconfig @@ -79,7 +79,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/configs/vyasa-rk3288_defconfig b/configs/vyasa-rk3288_defconfig index 89921e6836..3a8cc9e722 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -71,7 +71,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_MANUFACTURER="Rockchip" CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 26b4d12a09..1959a390f3 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -39,6 +39,7 @@ if USB_GADGET config USB_GADGET_MANUFACTURER string "Vendor name of the USB device" default "Allwinner Technology" if ARCH_SUNXI + default "Rockchip" if ARCH_ROCKCHIP default "U-Boot" help Vendor name of the USB device emulated, reported to the host device. From patchwork Tue Oct 22 17:54:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 864 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 736433F047 for ; Tue, 22 Oct 2019 19:55:29 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id s137sf13927820pfs.18 for ; Tue, 22 Oct 2019 10:55:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766928; cv=pass; d=google.com; s=arc-20160816; b=jQuPsltpPFvg5gtl1w+h8YtSDtlzoGl8zKSB5NAtH+mvEcqKzOIiIzVv2Gctba9oQS jhYGTwV3+R8Nx+0sNDONwrHd3NoUbauFCnB3UnmXFs5j6cQA7OKkQkS/iLfF1bmaFDGz xal8Sg0qMiYtlRFNP0Bdx2WgNhMHv063Yj5FO33aSPC6aYj7iBysEoPMhlmHRvYj6RHc HHI3qaO7vBplS6oSfGAV6tkqyAjeOF+dYYP88mVNtU/RV/DfOBeEImoRDbqrjpvwPXDi pgulrps8mzCMCciK9Rf4stPF4QqonLuqs76PvgrGgVVaG+pYMDiauY9wu9/JyzFAjv75 RyTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=HBbfmmCgerxPtFZu69nLZe09L+A7RAoAQs2OmZpQDMI=; b=aLUQUtMX5dClZbZ+FzkJ3sd2LnGz4CBTh4uiLaogoVJhGEarUhz8hvq3xsVzg5Dado hwF2QUgJIF5QqwIyL59hXMbgvcaoJB9a4hTE4I++FTg+x22Ba2Slyt2Hj9AM+L3tInJA skYpN+KhUrPd61Gyfrc+zyswwlf+whClvVQsuowM7G+tpjp1QsEuhcC9UUZPCVVB9Sxi FyboIgOfopkqurR/5yBlk0NWAeg6qPuKotN2yw1FaIeGCQt8Mt3G6qTRTJaJTRzqhCd9 j+l6NAT2dgKWSMgueFnfbO2R/gU87K+rJ7NoDBh3blsT9GMto57cbky3/Fw5AOpOah5z vKIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FYoCO42/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=HBbfmmCgerxPtFZu69nLZe09L+A7RAoAQs2OmZpQDMI=; b=aydZFM60pLw8C0l6hlLRCvcNVrFDrQrTnyixV7qvaXq74RsZkqhyXxIVX+QK0vrl/x SP59ssxTUQletodGONLNhvQnsttpXfIZ5VMXnaVaK4ZF5vpBgM31n14KHSUEMCZGGf5j xCls+5p+vFEHzAvsPpuMlh0ooBjctN1H83Oes= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=HBbfmmCgerxPtFZu69nLZe09L+A7RAoAQs2OmZpQDMI=; b=Z8DsXi/ss5XD4/LzzPEvy/XAxdEepv95sHZSFFKRmEBoIrg0PPBijIXaxF0DT70QJE 9dDjLLUYNea2L7DZBn5G/AmEA+Pv0Ef7wOmN/4a9WkOMOCFv51n7dvmuECRBDGdBNC5h XqnD34B45TIBPk+B6VLsNl2r1+/Y3P0NCcH3FsI+DhWh6ZYaeHzz4FK0m8zwdwRf8mxO QZ5oZdrJ/As6w8qFku3BQVUh9CKbRKgwrqFU9/RPnabvkeSmtZ+2L75atk8/tWTuqmqr wCTaCMzWQx56bRPSBAvQYa9Uo+qssbSeJE9ZJn2fDmSgS+WvVdvQxt8jtWrippfiGRia Il8w== X-Gm-Message-State: APjAAAX2/85Kelvgj0Z5804ziCX/tByim9VFt+6sU++DFj7ZNCvxdezB R1Zc9IjTtEWcpwAQ4CiRX3mpwdGQ X-Google-Smtp-Source: APXvYqwVRKkpR8iEV5/raTBPF6DVbFmD84j5MnpYPd3qJuyUNmQdzRufRUgFOIJMO1aBGiD9GQWGLQ== X-Received: by 2002:a17:902:b495:: with SMTP id y21mr4833520plr.119.1571766928239; Tue, 22 Oct 2019 10:55:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:1103:: with SMTP id g3ls4658978pgl.11.gmail; Tue, 22 Oct 2019 10:55:27 -0700 (PDT) X-Received: by 2002:a62:7d57:: with SMTP id y84mr5905932pfc.90.1571766927756; Tue, 22 Oct 2019 10:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766927; cv=none; d=google.com; s=arc-20160816; b=lFFz4Uj37PjmyyjLpkIMp8IIOsP+4NIiJkunNm+03VMsr4+a6PvlEJrFPiZSV8dWVh eOz5KIXppcttMbEwTbazg+be1q79DR0m532ny7iRINKkyHwg8M8VqeAlq22Hon+1ij1N 5QAIwbAoZe65zwsDcO+X9BT1jM3JZ5BBKQbrqFr2TdxYvpnrueQT2QOVbbk+SyV6RtLu 0XQI/4JklGQ3cJS2IB9vnhxmvnzsQC59VHH5zyQxwEwhFMT5k9g7uwNJFh75ICdz7oXm Jy7wHtJpAxctswsvQUVkIOmYII7KYHEYiJsy9jr7SKSuorpWJUdYzqBe8Y12JkPTnBtY 9kVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8XAFpPBlZ2p44rI9zoyW5SxbNh5PFCfyvuWBoC2mquM=; b=FlDEMANByIZZcT38w+BhKBAYWXJwyzGzn736frTXiT6wi4lKNH+Zx7TIuBE+GUlp/I a6Not6KMTp824qY8CArFtyd7mUpaYwA4BrPfleCBOul2b+7GSgWPzM2o/M415WJhjnyl HfhWZB+A9b71VEZJXD9sAJ4FTc/s99rKfBnlQeasqmsO3tfazxXOJmzZFMFyVusIj+G8 t8pSyEnh0cdH440dAJCORFvhFwdmyK0Nwse9kbK42T3aN0nxd9pVL6bgKSc77GMOMRLu NR1pYi//O9jEL1ApQ2ew/ImNZ1yYWntzP84yuO/lp0B635mZ2mUSMLjHrEIVyvFWvJVQ RTWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FYoCO42/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e23sor22290095pjr.19.2019.10.22.10.55.27 for (Google Transport Security); Tue, 22 Oct 2019 10:55:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:8d13:: with SMTP id c19mr6205913pjo.63.1571766927110; Tue, 22 Oct 2019 10:55:27 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:26 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/9] gadget: Select USB_GADGET_VENDOR_NUM for rockchip Date: Tue, 22 Oct 2019 23:24:51 +0530 Message-Id: <20191022175458.22604-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FYoCO42/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Gadget vendor number, 0x2207 is common across all platfroms supported in Rockchip SoC. So, select the same number globally, if ARCH_ROCKCHIP. This eventually drop the explicit configs defined in supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig | 1 - configs/evb-rk3036_defconfig | 1 - configs/evb-rk3229_defconfig | 1 - configs/evb-rk3288_defconfig | 1 - configs/evb-rk3328_defconfig | 1 - configs/evb-rv1108_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - configs/kylin-rk3036_defconfig | 1 - configs/miqi-rk3288_defconfig | 1 - configs/phycore-rk3288_defconfig | 1 - configs/popmetal-rk3288_defconfig | 1 - configs/rock2_defconfig | 1 - configs/rock64-rk3328_defconfig | 1 - configs/tinker-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 1 + 16 files changed, 1 insertion(+), 15 deletions(-) diff --git a/configs/elgin-rv1108_defconfig b/configs/elgin-rv1108_defconfig index c9d703a0f5..48351bb1dd 100644 --- a/configs/elgin-rv1108_defconfig +++ b/configs/elgin-rv1108_defconfig @@ -49,7 +49,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x110a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_ERRNO_STR=y diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index 4df2a90b92..a3720e6423 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -54,7 +54,6 @@ CONFIG_SYSRESET=y # CONFIG_SPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index be91ba1e0c..593d7559c7 100644 --- a/configs/evb-rk3229_defconfig +++ b/configs/evb-rk3229_defconfig @@ -64,7 +64,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_TPL_TINY_MEMSET=y diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index a52e0af79d..99d97de770 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_DM_VIDEO=y diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 6f9a3a3e72..3d9db4b8f5 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/evb-rv1108_defconfig b/configs/evb-rv1108_defconfig index 36bd7eb0f1..0b4e391111 100644 --- a/configs/evb-rv1108_defconfig +++ b/configs/evb-rv1108_defconfig @@ -46,7 +46,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x110a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_ERRNO_STR=y diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 4a1d7a6648..ea0bf9402c 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -78,7 +78,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index 41ad46f12a..2393b8cf77 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -58,7 +58,6 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig index 3e761e9983..a0b82376c6 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index ce8a0e5268..b892e65c0a 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -77,7 +77,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/popmetal-rk3288_defconfig b/configs/popmetal-rk3288_defconfig index 89400dd5de..45b48f64f3 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/rock2_defconfig b/configs/rock2_defconfig index 953d760155..71342540de 100644 --- a/configs/rock2_defconfig +++ b/configs/rock2_defconfig @@ -74,7 +74,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_DM_VIDEO=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index d86456e363..bf2c52ae20 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -89,7 +89,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index aa9f86d6f8..03a36c1d24 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-rk3288_defconfig @@ -79,7 +79,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y diff --git a/configs/vyasa-rk3288_defconfig b/configs/vyasa-rk3288_defconfig index 3a8cc9e722..d5ac57be0a 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -71,7 +71,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_VENDOR_NUM=0x2207 CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_FUNCTION_MASS_STORAGE=y diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 1959a390f3..844c3be16f 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -48,6 +48,7 @@ config USB_GADGET_MANUFACTURER config USB_GADGET_VENDOR_NUM hex "Vendor ID of the USB device" default 0x1f3a if ARCH_SUNXI + default 0x2207 if ARCH_ROCKCHIP default 0x0 help Vendor ID of the USB device emulated, reported to the host device. From patchwork Tue Oct 22 17:54:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 865 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 79D703F047 for ; Tue, 22 Oct 2019 19:55:32 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id a2sf13953482pfo.12 for ; Tue, 22 Oct 2019 10:55:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766931; cv=pass; d=google.com; s=arc-20160816; b=ws/QBE07E4FYVVS79K+1m1GCh/Ns4jsHtNYMWQaeMiYkSEhXywRw0ikEfQ+P2YLR5n qCvAKORKrANQi0k+WdLIffDHGi3Tj7NPzRIeD2EmUrHl1TLioSTJ6j2LhNnzAVOUS5f9 iN0kZ4qymdZVufQrq2VcOxajvM64FSMgTNPoefT8wsmrn4URuNcHuDZeVgTecoMS2hLN ++h5kl3179gdmp4/FD2mwZUVHzYRQtylU1L/abMh5PXD2g2/hv6hakJrb32UP01lVdpl 690Vmu6MWcatGtja6B0ZdsCMxd/gLLPs0g4v3ahq8l+ksfhGSIPZHVLcT3SABdCfyxOT o9Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FHwJiLF0OAWDfmSBryI6BjxdHJj/Fb68NVrZMtvC2ys=; b=e0hqOxZQBE684SduG9EGJrFUuTJ/xaMu56ENTHBiAtgDIYAUlHdqrvo9HhZflloe5c ZCloEfekdGjJlQcxa6YYp/6xJwSeuv9P1iO/HTx2m2HF4wj6fuEZyac4co3t09R0QlcD 2doDj0p85pOw2ZUng0LioH/CXQcJqUaCZv0PgKKykXX7lEfMjycjEe2gzHSsPCBSVjEl xvkBxWgI63oD60f/6AK4knTDP3CMADCFH54rX7w73EpYmVtonyx0Of7+sRlGfHfFqDxK 1QX+Eq8atwyALM0ibeVa087a3GIWPMgvjXosRaykTtXy7InDyJbSpB57DCYg+PpS30Kj DLWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J6/6LjGD"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=FHwJiLF0OAWDfmSBryI6BjxdHJj/Fb68NVrZMtvC2ys=; b=dAjc5nCdBAZJem0X7zLXK2QkWVdBk8QUpgdYbSgMmwyDrhW0wM0cMdXLYEj1OZZnzn bU1dCwf2AvSd1AWMYyfEp83wuF2IJtM4OrolYBHVlblCq60x8zws4SXutvWtR9ijgS8J jSYAg8ViOhUhmYhcg7dg/r6uvt2pXPC90CDzw= 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:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=FHwJiLF0OAWDfmSBryI6BjxdHJj/Fb68NVrZMtvC2ys=; b=L4/z7ebU42HPst7Az0zS09TD6xpVoRUbvaQXtX+eAbZSp0mhypn9gKucXUmANScCVn 2OeGp4lIA7Ji5SRpNb/uR+NeqgZLSknLLv3mKGmtt7zPAAxmKhCRvyJbxxU3m2lzbZwT FDN8b25uJr7JW2GqbKILy/EQ6UJUXUiVke9IoAf5sIJODF4RqH/mChg1DptQMoffNUF2 1kJ/6LB0bv0Tj8WNxeYeYQkT8hlE/XZmer0wJerXCzsPmeIXfGzC9FU9rQTUBJvMnDvw /WwaMN4orabhbGvYfkRqFcUjOS6jUNdnOfJAFQkdswp/triRKoydkdbkAmL8NXkqyWYa +34A== X-Gm-Message-State: APjAAAXOgiT7RexNZqijxDdIVPr1CHUzoV9Hm5lfX6e1uBw/FaUX5Ni1 IkZbe7g61KF5WqyMmdMUvV7sOxIq X-Google-Smtp-Source: APXvYqzeeWLh9jF/bH/3of7iSjVH0p+xA5N0eMsoQzbRkBAVMJxx3FypWrc9WnQz4jH5okwTWsvKug== X-Received: by 2002:a63:2049:: with SMTP id r9mr5248364pgm.257.1571766931246; Tue, 22 Oct 2019 10:55:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:3265:: with SMTP id k92ls1119176pjb.1.canary-gmail; Tue, 22 Oct 2019 10:55:30 -0700 (PDT) X-Received: by 2002:a17:90a:ab0e:: with SMTP id m14mr6253407pjq.78.1571766930814; Tue, 22 Oct 2019 10:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766930; cv=none; d=google.com; s=arc-20160816; b=wlTHBF/exHQRfxEqDUE1opp5umTpqebYet1s+mDRSWxd8DpKPBgpcjLVEICQWwSjjp +922DhGFV0JhvYuFgqxoATYhdVtiiPEs+UgDVxUaJrzMsZmTqXX1Sq9be4KUyn2rN1sA 9EkN3PosJoiUVw9M4eW9kpIppkQ9gqiO6i/THIjtVfOOthOebk5RoBBPY23aINkbxzn/ eTzN5hVkKrmDC+k3qvZScmfN5IY2owESwYfbD9ygEbY8ooizz0awWY8hRslIxtLaQ8p0 lx0L5tKyy0cl4VF59VOkX1nQCVmomMqWIYzUBzYSVSBUazZB7r87OxtDNdm3EMzOSvB1 itww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=PU65Icb8YUn9f9WvDCy00COMY0WEdsQYL0poK/xy3IQ=; b=eG6Dg8Lmn8IDXI4KuIej2+UC7exbdhKL7q3cTVuNyIT4P0kHn8dfJajBWsUlxaGE4w ONJaiqQumNUl8XOk8tBIsOXes1AsiZozrvviOd0r+FN2lGm3sqzDOhMxF1CmL8+jK07L p7P6ze/e3r/wfUDvdb8OigRaGU0++3C/0wUJXkQh498rCCGAUbyyEoQhDr0cwvzPtg1O Og6fyBb4Mujssy4px8oJQZZ8PkmRik+EXgLat/dF8QiGAECQzLxqfUGpLc+ZhFcZCx1Q 5I+rN/rAMirtRgrRwcxO1ZZh/Blm4gDLdQIr8Vw4AkVKsdo7cfBMHQ32zILE5KE8e/tK SD3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J6/6LjGD"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q198sor19722239pfq.55.2019.10.22.10.55.30 for (Google Transport Security); Tue, 22 Oct 2019 10:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:1214:: with SMTP id h20mr5196793pgl.202.1571766930291; Tue, 22 Oct 2019 10:55:30 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:29 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/9] gadget: rockchip: USB_GADGET_PRODUCT_NUM Date: Tue, 22 Oct 2019 23:24:52 +0530 Message-Id: <20191022175458.22604-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J6/6LjGD"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rockchip support differnet or common gadget product number between Rockchip SoCs like, 0x310a - rk3036 0x320a - rk3229, rk3288 0x330a - rk3328 So, select them on Kconfig based on platform specific config defined.     This eventually drop the explicit configs defined in supporting board defconfig files. Signed-off-by: Jagan Teki --- configs/evb-rk3036_defconfig | 1 - configs/evb-rk3229_defconfig | 1 - configs/evb-rk3288_defconfig | 1 - configs/evb-rk3328_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - configs/kylin-rk3036_defconfig | 1 - configs/miqi-rk3288_defconfig | 1 - configs/phycore-rk3288_defconfig | 1 - configs/popmetal-rk3288_defconfig | 1 - configs/rock64-rk3328_defconfig | 1 - configs/tinker-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 3 +++ 13 files changed, 3 insertions(+), 12 deletions(-) diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index a3720e6423..c02ef6af4e 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -54,7 +54,6 @@ CONFIG_SYSRESET=y # CONFIG_SPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y CONFIG_CMD_DHRYSTONE=y diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index 593d7559c7..e7b813d627 100644 --- a/configs/evb-rk3229_defconfig +++ b/configs/evb-rk3229_defconfig @@ -64,7 +64,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_TPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 99d97de770..a6c57dfaa6 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_DM_VIDEO=y CONFIG_DISPLAY=y diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 3d9db4b8f5..c9d056b4b9 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y CONFIG_TPL_TINY_MEMSET=y diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index ea0bf9402c..2de166ae90 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -78,7 +78,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index 2393b8cf77..ff20dea0fc 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -58,7 +58,6 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x310a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig index a0b82376c6..fbafbb857a 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index b892e65c0a..70e3bdc621 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -77,7 +77,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/popmetal-rk3288_defconfig b/configs/popmetal-rk3288_defconfig index 45b48f64f3..611aff5e1d 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -73,7 +73,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index bf2c52ae20..5e64003dd3 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -89,7 +89,6 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x330a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y CONFIG_TPL_TINY_MEMSET=y diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index 03a36c1d24..467065e3ad 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-rk3288_defconfig @@ -79,7 +79,6 @@ CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y diff --git a/configs/vyasa-rk3288_defconfig b/configs/vyasa-rk3288_defconfig index d5ac57be0a..d623520017 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -71,7 +71,6 @@ CONFIG_USB_DWC2=y CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y -CONFIG_USB_GADGET_PRODUCT_NUM=0x320a CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USB_HOST_ETHER=y diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 844c3be16f..e120b48b33 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -58,6 +58,9 @@ config USB_GADGET_VENDOR_NUM config USB_GADGET_PRODUCT_NUM hex "Product ID of the USB device" default 0x1010 if ARCH_SUNXI + default 0x310a if ROCKCHIP_RK3036 + default 0x320a if ROCKCHIP_RK3229 || ROCKCHIP_RK3288 + default 0x330a if ROCKCHIP_RK3328 default 0x0 help Product ID of the USB device emulated, reported to the host device. From patchwork Tue Oct 22 17:54:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 866 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A6CCA3F047 for ; Tue, 22 Oct 2019 19:55:35 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id r24sf13036648pgj.17 for ; Tue, 22 Oct 2019 10:55:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766934; cv=pass; d=google.com; s=arc-20160816; b=V7g2SnELu08VFfQpUZBBpimB65Hjg1Mq57o3PuTS2gsiyrzb2uxqYi1P0RzwV+oAfW 4iLB1hsBKw0a7NWFVjPUlTcUPEKzPG4kcGuQQh5r0nZDTrL37ZxAjQsodZ/XIv7+lKGL u/ouhaLf9AANMPRYbHFzPin37zbi0+ar3B0DOkpIXzwJVa9dyezZ/j6J0ZlMxTck3jmk d8EV+1IuQc1qdRHzF7eN4Nl2mKXpPGLgn0kDIS8N0e58McG23x1AizEB4SQZjLEzOFOS w/emDicDXbnwQ5FotvnmwS6C0fNy5mQwjDxVTIU4WHcD9xqy1e8jAcYDJ7zEhNKg7gEt HNKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cXN7wlVT8awGucEwR2z7HGswMkRX+bAWvZTuXpTBJUI=; b=wcAdcfrDpAiewD1cx9Fi7SEe8KQNlLIhKJ5KX4F0HDU3fUyXjk1Mzb3Zm8rxCUq/R6 Wx6QgolbA8ISfsqFL3xSTlA7uY55tWHZ8WBS50T8IzR58wUNSxuQi+6kg+SHT/LMiQnj SM3JfJqdvem3JHln3aLP96aLEbZvzoqqQC6G5dBG4ZCrcY2m+6uZrTHTiaI81FEzyaMS CeqNzhNj85etEFE6ym5uOp8faB0iESlVQS0nqhHvGy1+9Ui4iab0RFnVIa4g0+L0wbN4 Stx7Aj1+6bRUtTrRXiNZyinXSqjurBY3RLuiJnZXbtqb2op83lfNZLjfYhJD6Fu73xjI sQDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f00a+OHu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=cXN7wlVT8awGucEwR2z7HGswMkRX+bAWvZTuXpTBJUI=; b=jDR7ZEI54O+ZzRmw6C6kr4EcbsGQ4e00QKQ1gG0y3Vdla0/cs56V1163X2MvzUloPR RQiKTMSEDrBg7rr30kC2gHLxtXu9PAXRayuBaUSo0gQGv1I5sf8lgO5czX0v4ZVBhPEU 6HLl0iC6UtrSTRnzEftVaGqjYvllmGLCfy34k= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=cXN7wlVT8awGucEwR2z7HGswMkRX+bAWvZTuXpTBJUI=; b=rgoKVkTudMQN4fDEW+VMc1Sh0Ylh/xMH+YJG2EOAiM0NoILS5ckCRZ/9pg3EwJmtO+ faiCE/K2HlFXMzxcHE0+uKkY5LPk6u6eYDl5sofBjUILNT3nZQ6qbbOUJXRtkpsLKSmu gl2RKFWTS7NHzU2j4C+ZdK8+HLkJX+aFHiP1o0vPTQKExczRr9kOxRXpgUOCWsKknPPz 069WJ8dQN8/9Psr3IDgmNkDHIfSScJZ8YOyS+tLLMz6nHjQS3zJ3TPv+I5rJ/If8RAer AFyexnYm5EIlUG7DF0bOcaInFZHZQcA/615MlLAiZXAIoKRih3GRwtZ+d2yfANFgXQAD zgFw== X-Gm-Message-State: APjAAAVM1wbromcVhK++zNtXrBCyLSJtrVZLLzjjL4DUgyfL+/loiGHL xVOSZtrnV+nDZF3AYAu2TvxAr5MP X-Google-Smtp-Source: APXvYqxPNOsJ0euy4gaYZscddn9YuCD7YbernEP59fQV67s9xBDWDe8gNBo25F0lvDRqWqQ0Ru6BDA== X-Received: by 2002:a17:902:8f92:: with SMTP id z18mr4804647plo.230.1571766934480; Tue, 22 Oct 2019 10:55:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7e45:: with SMTP id a5ls4612913pln.8.gmail; Tue, 22 Oct 2019 10:55:34 -0700 (PDT) X-Received: by 2002:a17:90b:d98:: with SMTP id bg24mr5961485pjb.99.1571766934000; Tue, 22 Oct 2019 10:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766933; cv=none; d=google.com; s=arc-20160816; b=R1qKY/el/+kE12L/fqwkeePZIhGpK/SIR6PzSFO0bDrvz/iebuvWRPCBWQ8iWHHJzu 54ScNuK6D7+MM1XB3m7iL2xSpgVtVTbpNKmolWRRd2ZXX5IZIpOOtNlDx44gO0udjKDh A5a0wM724RSAx1h5wIyjkywha49mcO9ZgJOXMkQliIOI6iSYn16lKEL1nvlv/usPk+m2 cHqfBmFV87GknuwbJnmHelzQgctyG5j1yeVXKrYp/Lv8f8NKocaRD9VpFh9icNPxxzG3 KbuPPlIp+L35koqKXFgNsFzSDyms7Phy0SOfxlb24bMZE3FxT/Y/rL0Gg6N5rXwCfbF+ 6OoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2IkWZzRngJxet0AIm/pNtj01aHuaBruy9KU220UwSH8=; b=U+gmYia2wFob2P4fbTKiLVeXOCo6FnzfPhdacDHKTrFEF3T2TrcUh4VN8O69nN6DZV ginRc9dIwMUkjy92n2cVg8nu9LBtRK91yxliJkX+OQT3B0aRA+FP/fUTYED8ud0SHJ7I UWtEIanapOgzOqz4pdHMav8JKeMlfLgZgUnqPOu6HXV2PSWAwtpcFSuWDUmBY/DnhN+D ILnqcTT7+CrnJ5Kn07yhJ2ozEWXX/TAztUQEv6VemQQvbODDn01AXHfuGsnu1aJH+C71 65+gIYMs65P1c/AOpcN8zdINR/k9uMTNnt11Z0N6aXP4HVzQrfnhRGMR1MGv08C7VklK AraQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f00a+OHu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o18sor2459397pgc.33.2019.10.22.10.55.33 for (Google Transport Security); Tue, 22 Oct 2019 10:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:7c14:: with SMTP id x20mr2151802pgc.208.1571766933545; Tue, 22 Oct 2019 10:55:33 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:33 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 4/9] gadget: rockchip: Add rk3128 USB_GADGET_PRODUCT_NUM Date: Tue, 22 Oct 2019 23:24:53 +0530 Message-Id: <20191022175458.22604-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f00a+OHu; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add 0x310c for rk3128 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index e120b48b33..2da8b40e05 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -59,6 +59,7 @@ config USB_GADGET_PRODUCT_NUM hex "Product ID of the USB device" default 0x1010 if ARCH_SUNXI default 0x310a if ROCKCHIP_RK3036 + default 0x310c if ROCKCHIP_RK3128 default 0x320a if ROCKCHIP_RK3229 || ROCKCHIP_RK3288 default 0x330a if ROCKCHIP_RK3328 default 0x0 From patchwork Tue Oct 22 17:54:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 867 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 472B23F047 for ; Tue, 22 Oct 2019 19:55:39 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id q13sf2537328plr.18 for ; Tue, 22 Oct 2019 10:55:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766938; cv=pass; d=google.com; s=arc-20160816; b=XJjVbc+u0qDRw8NBQtGFn7+xRNFOUHGVjh9M87apq6BDRnA8jXhL/9PotstF2Dj6LD 8KJ6BuSEUg+HRYNtu3Kri9mm+kuVbquDBNDYzYBq3G0kve+Epj2S1VCIEoJLciO3c18k EzUt5lhPynYZbUfzUQcmVCt4Q7A+qAExUSNdPe6bTVMH62Y3se9HgB48zkLdXLvwRpVI Xu8E2mBdvfFDdCynBD8iJSVVhKCdjq7ybdu9eW5Oe0iiaDvWGZ0U6N+e6+RBNM0YHcl5 DooWzMtZr5OC+Mb/zP/n0mSZOp1TgWmHDoy1wlJtdrkw1eMlcCbD8ern9zU0PYCdiJiJ ypAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=eyZMN7QYhaYrYNkWFERwQkF9Lu158Bh+B5mUTPziwqU=; b=KaNGGGW8B9vzGuVONtlwPzvOvH8dLLnpYyWPlVWQoD11RWfkHX7TIZqXxyVdKZuhp9 w0lG3b1w/yZ+TXJb1WZyQeQhl/CRz1UpUaG+eZosklpQ+jodYN30KVP4es3nUt1v9fQo LL/1nane6q2+IOwiP7lhbnYF3ZbyspwzpJGFHE/zd5uWMQPQ4KZXVH8TJ4rNBqxgHfX9 DEtCabwese3zk3bCybZSE6AGPvXefLoGXb33OJnMBeXWaBUZPgiBb2H9G4PKl29UEn7t U70/hC8ceFqCX2aviyXnB1FL/UF8yshwRL7arwFITAhZZezTXKDClEuDWo9jWRQqYURk vXGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TCTDvvGe; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=eyZMN7QYhaYrYNkWFERwQkF9Lu158Bh+B5mUTPziwqU=; b=VLnWMVx7z72IuEGg8thbPtIWrfoa2mX8yGCDt25xmWMXM1oubVcmjY8S4aspZvWq/2 OEXE6j61e9l9+1Nr9VF2sWqb0/s8fRnv3T+w2UQT4JU1a1rLhplkgHLvJ+zl0IUG4POY o6oS3QYIZH/DJtJy3E+nZpGNHl4KZ3v4d9Hjo= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=eyZMN7QYhaYrYNkWFERwQkF9Lu158Bh+B5mUTPziwqU=; b=rvriTY+WocKMiC/65HoyiDQUN0Gd6oS77l7KIxRBbHNTPBBk19+9TrL5dLc5qocz9B AvRmubvlhTZuhGP4r5rhWQzFAPAi7BF6ihufSwQl6JmZ1QJwEFW0J4p5Uuycss6sfmyI Q8P9j8Hv5BDdA6ikfZ51xSeu4j1CqmI3xHaNGv/w1D99N7xdArnsLk2yQ+YL8Y9u/F/d bxeZSXiMH7jcAHSakvwlY34Zl0BJtNT2sVjXrrikyTKHF5MDA1gFZIZi7oHK71tkpxCh 801QCfM8Kce5rdERvVYwgXGqBJ8EvZd54ZQE2ZRBLrvSVxRW3lPhzY8v+aUQNQsj8kde mzgg== X-Gm-Message-State: APjAAAWwFJYP2uqB37HJC0n9AIs2S+PjjQi87v+M/959OI1wXwhic2Kb j2m8m1uwnDxzZzK1iVvP8v0n2oNe X-Google-Smtp-Source: APXvYqwtiz6n90ttkGJ+w6SV6TKLIDTs4+ub0JN2yK94XIUZu+S6rbbE1RnMNpB3Oe80B80KqRRLFA== X-Received: by 2002:aa7:87ca:: with SMTP id i10mr5758071pfo.62.1571766938051; Tue, 22 Oct 2019 10:55:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4b87:: with SMTP id t7ls4655950pgq.5.gmail; Tue, 22 Oct 2019 10:55:37 -0700 (PDT) X-Received: by 2002:a63:ef10:: with SMTP id u16mr5125114pgh.20.1571766937315; Tue, 22 Oct 2019 10:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766937; cv=none; d=google.com; s=arc-20160816; b=moIJ+DqPX8pSAls0gkcJvDiSl02tdG9tF05tnxy3kebnPWMhy3+/GiFzrlNves28wJ 4Bh4UZgjCU8q7i/DGlM9RBddKzCaGsxIDQHRDQtCGPVjDIC21Pi3+tDaWiFRiqv3+Pp2 5Y4xaPRZtTqMxkiJ3jqt4GrPf0TJ2w2cs3kj8ZgZjKap6mrhNPQWVpbDsR9ETz+v5brv bvUPMTgGqD+sQlNTqFJKqMjR4xHqatHuDPFkOxwgPbh5/bdPNJ880CWOOIjITuLw1tIn UuDN2jsCaS829Gcr9UWPDp8jcCSmkByxnNJiN2gvf+hfg2lP2qp5B/21yMwpSrH+cbLw qpEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zWRJz6rW2RQ3KTi2LD0pRPiuHfQYA+WsBHlu/vU4wOs=; b=1Errpk5dE/V88qsx0Y3ny+l3irWjxIj1qQzLesRnt3m2JqTtcCLUvJwAlr4PcBXUVi 68uwZTLb0bUeJ94LtNsb7RMBXQhQ+SBRUa5Q4N4cVaz9ULR33xJJqkImHbuPi61RQh91 Z3F+RBsxlt/tf2CsRcrUXXlp0VKu4d9+YUdvc8TFYjjbR/cvvoYlMurHxUZGlc2QMUsF ZGSsWrzkjm01IjggpC9sLOmNJu3iknGmV0PZwx++PfOKEKjgHFEq9W8Op26KTyRXJ+PE WG61jSsmp78C5DWmxFsak/QqAc/wObfiLAylSr2L9Zsl9WFqDONfuuOUgk+n3lFOLoMa vUvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TCTDvvGe; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s29sor17436535pgo.82.2019.10.22.10.55.37 for (Google Transport Security); Tue, 22 Oct 2019 10:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:eb08:: with SMTP id t8mr5302110pgh.49.1571766936789; Tue, 22 Oct 2019 10:55:36 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:36 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 5/9] fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV] Date: Tue, 22 Oct 2019 23:24:54 +0530 Message-Id: <20191022175458.22604-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TCTDvvGe; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Select CONFIG_FASTBOOT_FLASH, CONFIG_FASTBOOT_FLASH_MMC_DEV for rockchip SoC plaforms in fastboot Kconfig file instead of defined it in board defconfig. This eventually drop the explicit configs defined in supporting board defconfig files. Signed-off-by: Jagan Teki --- configs/evb-rk3036_defconfig | 2 -- configs/evb-rk3128_defconfig | 2 -- configs/evb-rk3229_defconfig | 2 -- configs/evb-rk3288_defconfig | 2 -- configs/evb-rk3328_defconfig | 2 -- configs/firefly-rk3288_defconfig | 2 -- configs/kylin-rk3036_defconfig | 2 -- configs/miqi-rk3288_defconfig | 2 -- configs/phycore-rk3288_defconfig | 2 -- configs/popmetal-rk3288_defconfig | 2 -- configs/rock64-rk3328_defconfig | 2 -- configs/tinker-rk3288_defconfig | 2 -- drivers/fastboot/Kconfig | 4 +++- 13 files changed, 3 insertions(+), 25 deletions(-) diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index c02ef6af4e..ca2ba9d0d8 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -36,8 +36,6 @@ CONFIG_REGMAP=y CONFIG_SYSCON=y # CONFIG_SPL_BLK is not set CONFIG_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/evb-rk3128_defconfig b/configs/evb-rk3128_defconfig index a3189638a1..9d81d96e68 100644 --- a/configs/evb-rk3128_defconfig +++ b/configs/evb-rk3128_defconfig @@ -22,8 +22,6 @@ CONFIG_SYSCON=y CONFIG_CLK=y CONFIG_FASTBOOT_BUF_ADDR=0x60800800 CONFIG_FASTBOOT_BUF_SIZE=0x04000000 -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index e7b813d627..a365931e47 100644 --- a/configs/evb-rk3229_defconfig +++ b/configs/evb-rk3229_defconfig @@ -44,8 +44,6 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_TPL_CLK=y CONFIG_FASTBOOT_BUF_SIZE=0x04000000 -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index a6c57dfaa6..a88f391b96 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -44,8 +44,6 @@ CONFIG_SYSCON=y CONFIG_SPL_SYSCON=y CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index c9d056b4b9..d133477e62 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -48,8 +48,6 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_TPL_CLK=y CONFIG_FASTBOOT_BUF_ADDR=0x800800 -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=1 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 2de166ae90..4bd81048e9 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -46,8 +46,6 @@ CONFIG_SPL_SYSCON=y # CONFIG_SPL_SIMPLE_BUS is not set CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index ff20dea0fc..79188c16b7 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -38,8 +38,6 @@ CONFIG_REGMAP=y CONFIG_SYSCON=y # CONFIG_SPL_BLK is not set CONFIG_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig index fbafbb857a..1b55008a96 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -46,8 +46,6 @@ CONFIG_SPL_SYSCON=y # CONFIG_SPL_SIMPLE_BUS is not set CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index 70e3bdc621..f44974b191 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -48,8 +48,6 @@ CONFIG_SPL_SYSCON=y # CONFIG_SPL_SIMPLE_BUS is not set CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/popmetal-rk3288_defconfig b/configs/popmetal-rk3288_defconfig index 611aff5e1d..af70684045 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -46,8 +46,6 @@ CONFIG_SPL_SYSCON=y # CONFIG_SPL_SIMPLE_BUS is not set CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 5e64003dd3..fc9079eb4e 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -51,8 +51,6 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_TPL_CLK=y CONFIG_FASTBOOT_BUF_ADDR=0x800800 -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=1 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index 467065e3ad..a624270aff 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-rk3288_defconfig @@ -48,8 +48,6 @@ CONFIG_SPL_SYSCON=y # CONFIG_SPL_SIMPLE_BUS is not set CONFIG_CLK=y CONFIG_SPL_CLK=y -CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig index d63ecdd27e..34864ca613 100644 --- a/drivers/fastboot/Kconfig +++ b/drivers/fastboot/Kconfig @@ -64,7 +64,7 @@ config FASTBOOT_USB_DEV config FASTBOOT_FLASH bool "Enable FASTBOOT FLASH command" - default y if ARCH_SUNXI + default y if ARCH_SUNXI || ARCH_ROCKCHIP depends on MMC || (NAND && CMD_MTDPARTS) select IMAGE_SPARSE help @@ -89,6 +89,8 @@ endchoice config FASTBOOT_FLASH_MMC_DEV int "Define FASTBOOT MMC FLASH default device" depends on FASTBOOT_FLASH_MMC + default 1 if ROCKCHIP_RK3328 + default 0 if ARCH_ROCKCHIP default 0 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1 default 1 if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1 help From patchwork Tue Oct 22 17:54:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 868 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7426C3F047 for ; Tue, 22 Oct 2019 19:55:42 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id f2sf13962398pfk.13 for ; Tue, 22 Oct 2019 10:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766941; cv=pass; d=google.com; s=arc-20160816; b=POZS2ET5JjUOEaBNzYTv+sbH0xKoBHW+qnE+xVLrIVwPi8HyQN4oQaiYiQtbBwjmI8 9L2Bn5UyHPl7igjSAQIa7GaKSP/EAtEYg/i5lV8aLZSA346Zyh6y1x83R5vRe6pthk3v y5X2Q35FU29tf/03T/w6d6Y+10bne4R/WLcsi+6odoGH9CIdaXGHc0zTqzaX/3VWPUVt F89RCQpWqul8ZQyqa4JG7VgjqWoayD1JEWX/ECdDhd9B8SQJ+EDTpfC9z3o4e1KbqUIn +LcUo9nrCzrlOgnXDgI897khQgNkD7DP8m3bVx9YO0s5bLD7Wpi0MxpURIsPIuyQrobI IUKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=nW2e+zeomohK9BdL5Kq6YwGYCL+633gDfupq04eZwwc=; b=IqD4VZCTEe7Vy1/zvImGfcpEHZdDBbh2p8SjyIsKWuWIiKkb5doyqvhMcidS2pHIvY 11hb6eR8ohTliLChdJSRnQy/ucrnZABbMmsKXrFEar+0Y5qbZLZm9G/YmmUr9hfp7++u 6TPR6w01Aa9D+qN5bCEivFB3nRWYNSHjZ1aW8GqC7o2oJX5HhpmXgdAPATCe8gZOfZ+J 7O9nIuIE8NMeUJbINOR1LlUFq1wr9SqvTkxyCqmVGFezdSIqS52xA68u5nQ4dEL0nwxI +GP2+/auocrdsWqNjX8mL0CnibfLyhXz2vabD0tdVDLOhgwF4egYuxERJlCwgHLOSsdw Ki0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=muO1CP3w; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=nW2e+zeomohK9BdL5Kq6YwGYCL+633gDfupq04eZwwc=; b=WguCbI92flMdi3Qvodk9gtG3x9BZt/ME4idZ76rOJi/h0WAVBFOsWIVlxF2rw3b9X6 qHI98udXRfXcH1sj7v68Ktxg2hwOUCqRb+ibaVsyC1nLnOx0pdqlfv7df6MnbuP/vIMQ JlHK6jSKGbgPqHbf1zUnZ624jker3zeFGrAzY= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=nW2e+zeomohK9BdL5Kq6YwGYCL+633gDfupq04eZwwc=; b=evsr4c86jcmdsbVZZCQZQA0nI4mdcITuSB3WLrLwP+d89dbfB9o1AkHfzlJnZMbe0o JUtcyfd+pNwaPBeJ6NARlOWh8nZKD9ahlV0D6N9my2NdPYOjYIzOYCEH64p3is5XItMe tFKAWmRz/vdEYnbCktdSOSwHgnEig6Tb4hDjPLewc+u8hfOp8YRvb8lAafG1D8aoLy8q IuPJUo+2y+F+TqDz0QtDMIZEATHEmpgFQqZjrzTC7kSE0hJC+OQg/vF0+tkXKoVA54gS +hZR1GxtkVqAZ7ZNuQK8dXnr5LczGtg0vhHzbXt+eeTGRaeMyzXuUo0Y6mKvAwsrQiyN s/zg== X-Gm-Message-State: APjAAAVqSQOfEz7JVIq1Y1kIXZlBaUSbrOl5L39kdvhU5MhsuM0edYi+ X1P/ty8bsV77Igt7bQXNIg0Vul8a X-Google-Smtp-Source: APXvYqz9thLq4BpUeIEQDXCB6/Us/f4tW50cL/tab6BQn7tL4ufLEGjtvuDGmxtXZM/Wr2v1qUq8zA== X-Received: by 2002:a17:902:9a92:: with SMTP id w18mr5000119plp.223.1571766941220; Tue, 22 Oct 2019 10:55:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:1e09:: with SMTP id e9ls4622560pge.7.gmail; Tue, 22 Oct 2019 10:55:40 -0700 (PDT) X-Received: by 2002:a62:1d8e:: with SMTP id d136mr5862876pfd.49.1571766940769; Tue, 22 Oct 2019 10:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766940; cv=none; d=google.com; s=arc-20160816; b=UIGlaiETtZuqxLOmzlnE0o2krML4lU8HW8efAT9bn0RuvfY9sjpDo2Xj5RXF3c6KOb 1tCQxFFRnstNA5b07FQ0VKTrNwX0opbillHkHoGjCHg+0trsJv3pA14t+emN2l7es1tK Ozbu1zpXEPnKZuUvYrHblW0CmGHny+cJxnv2hXqFuSR8zOAwsw7GB5+JvWwQwpDR4jaX VViY6JxEBxSpVQoaOr0TwATO6FeAZJ7N6BKxzDSpKjo7E498FSD9WzLdRV/3PSK10V1P NZEIBk0dvxyUb7xDxZl2oJEiMSslwhdby7hElw+dJg6T1Mg+DHBRkI3BGFzkvE8oxx05 AQmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=M3uVs6fLUV6Sa+n4FIF1RzYQSumPilQCihG7VaENJHw=; b=l8B2tNmZgrCzdzm4AveNqZ7VFYDeima7UjM7Yw7RWl8XIwlWJ2AMBjuLrXaYn/rhtC FQOus5aoUEA5CxCNiTWZIvaJOq6w5YmiUY8ZIwDGqmcj4krcwpsaZe5teTHK+MesQIXt J0Md2Wjs3+nefjPw0WtY5F8Z9sKPdOWF34WH74JZ0l0uXNRmYjs2NOrNWMPGhXpvVegK LAoYwIaqrLAMVp1T5K4spFCJdzkb8jX4+xk2arJLu6zxjP57RezhuXz9unKJ6GbvcJsZ f+1Fg5XIL0986/uNJXwWXm9R7kHvte46J1Ji24Sa0E8doJyr8jJ29k5VQS6z3I+cnqqK Vn6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=muO1CP3w; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w18sor22996350plp.50.2019.10.22.10.55.40 for (Google Transport Security); Tue, 22 Oct 2019 10:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:fe8c:: with SMTP id x12mr5207965plm.55.1571766940354; Tue, 22 Oct 2019 10:55:40 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:39 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , Marek Vasut Subject: [PATCH 6/9] usb: dwc3: Add phy interface for dwc3_uboot Date: Tue, 22 Oct 2019 23:24:55 +0530 Message-Id: <20191022175458.22604-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=muO1CP3w; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , U-Boot has two different variants of dwc3 initializations, - with dm variant gadget, so the respective dm driver would call the dwc3_init in core. - with non-dm variant gadget, so the usage board file would call dwc3_uboot_init in core. The driver probe would handle all respective gadget properties including phy interface via phy_type property and then trigger dwc3_init for dm-variant gadgets. So, to support the phy interface for non-dm variant gadgets, the better option is dwc3_uboot_init since there is no dedicated controller for non-dm variant gadgets. This patch support for adding phy interface like 8/16-bit UTMI+ code for dwc3_uboot. This change used Linux phy.h enum list, to make proper code compatibility. Cc: Marek Vasut Signed-off-by: Jagan Teki --- drivers/usb/dwc3/core.c | 26 ++++++++++++++++++++++++++ drivers/usb/dwc3/core.h | 12 ++++++++++++ include/dwc3-uboot.h | 2 ++ include/linux/usb/phy.h | 19 +++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 include/linux/usb/phy.h diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 2498f0efb1..3e2295d75c 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -600,6 +600,30 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc) } } +static void dwc3_uboot_hsphy_mode(struct dwc3_device *dwc3_dev, struct dwc3 *dwc) +{ + enum usb_phy_interface hsphy_mode = dwc3_dev->hsphy_mode; + u32 reg; + + /* Set dwc3 usb2 phy config */ + reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); + reg |= DWC3_GUSB2PHYCFG_PHYIF; + reg &= ~DWC3_GUSB2PHYCFG_USBTRDTIM_MASK; + + switch (hsphy_mode) { + case USBPHY_INTERFACE_MODE_UTMI: + reg |= DWC3_GUSB2PHYCFG_USBTRDTIM_8BIT; + break; + case USBPHY_INTERFACE_MODE_UTMIW: + reg |= DWC3_GUSB2PHYCFG_USBTRDTIM_16BIT; + break; + default: + break; + } + + dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); +} + #define DWC3_ALIGN_MASK (16 - 1) /** @@ -708,6 +732,8 @@ int dwc3_uboot_init(struct dwc3_device *dwc3_dev) goto err0; } + dwc3_uboot_hsphy_mode(dwc3_dev, dwc); + ret = dwc3_event_buffers_setup(dwc); if (ret) { dev_err(dwc->dev, "failed to setup event buffers\n"); diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index cfe29884e7..c6888064b4 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -162,6 +162,18 @@ /* Global USB2 PHY Configuration Register */ #define DWC3_GUSB2PHYCFG_PHYSOFTRST (1 << 31) #define DWC3_GUSB2PHYCFG_SUSPHY (1 << 6) +#define DWC3_GUSB2PHYCFG_PHYIF (1 << 3) + +/* Global USB2 PHY Configuration Mask */ +#define DWC3_GUSB2PHYCFG_USBTRDTIM_MASK (0xf << 10) + +/* Global USB2 PHY Configuration Offset */ +#define DWC3_GUSB2PHYCFG_USBTRDTIM_OFFSET 10 + +#define DWC3_GUSB2PHYCFG_USBTRDTIM_16BIT (0x5 << \ + DWC3_GUSB2PHYCFG_USBTRDTIM_OFFSET) +#define DWC3_GUSB2PHYCFG_USBTRDTIM_8BIT (0x9 << \ + DWC3_GUSB2PHYCFG_USBTRDTIM_OFFSET) /* Global USB3 PIPE Control Register */ #define DWC3_GUSB3PIPECTL_PHYSOFTRST (1 << 31) diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h index 9941cc37a3..3c9e204cf0 100644 --- a/include/dwc3-uboot.h +++ b/include/dwc3-uboot.h @@ -10,10 +10,12 @@ #define __DWC3_UBOOT_H_ #include +#include struct dwc3_device { unsigned long base; enum usb_dr_mode dr_mode; + enum usb_phy_interface hsphy_mode; u32 maximum_speed; unsigned tx_fifo_resize:1; unsigned has_lpm_erratum; diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h new file mode 100644 index 0000000000..158ca9cd85 --- /dev/null +++ b/include/linux/usb/phy.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * USB PHY defines + * + * These APIs may be used between USB controllers. USB device drivers + * (for either host or peripheral roles) don't use these calls; they + * continue to use just usb_device and usb_gadget. + */ + +#ifndef __LINUX_USB_PHY_H +#define __LINUX_USB_PHY_H + +enum usb_phy_interface { + USBPHY_INTERFACE_MODE_UNKNOWN, + USBPHY_INTERFACE_MODE_UTMI, + USBPHY_INTERFACE_MODE_UTMIW, +}; + +#endif /* __LINUX_USB_PHY_H */ From patchwork Tue Oct 22 17:54:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 869 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4E5E33F047 for ; Tue, 22 Oct 2019 19:55:46 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id u12sf13949790pfn.19 for ; Tue, 22 Oct 2019 10:55:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766945; cv=pass; d=google.com; s=arc-20160816; b=fwVaq49jIkGdvnakwaZO1hq1xfvhApRnvxUO+mPkIK78Tx3m+JMa+o1U7NzFe0pr51 hKgSD7DiDQUfPvSaMgGszasXYMBMwKg3GesAMhsFLnxTeZ+e+u1sjck4G8WPbSQzZLov AaPXsltY5estwHLhkkiJQb0H6JhCbEAkk/9eeSXP0fN2PKEzKHCFSYtSM1WjWYngsC+T A72zfpSeX6b+ADGaXh3fH9KKfFM/SHge1dPhN8GA8JlIGBTYy5cKIIwlsGCe+n5ERlCw FgwlaA3mY7Eyozp+0z8m4mZxzwBHO2G/ORRQfcEqO3kxVGws3cJQV8cqgqvWSDdBWQop SURg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=czpC7zsqjSTFAb1TSgL6coyFStOfF39/NWuOB6O9pDs=; b=pK7LJerFfmRKCVIE/pxeu/YtSVyNfYa+8aiQzG/k+xHbXgN6R9CePP7RloKN2fsIS1 +4SYz5Kuv13aNWTEVdGmZ/s+Ykvg21JgAwlXoK3Zs6kxekWmZByCsQlKXoWPRNhgyJwh z7bPKdkFVzRIAkFs7GSxhyrP4w9glteYDZyNYooHkxYg/iNUgNGG3UK7sGo0izfW/Mq+ s1+piauXFtFtG3CcuaFZahMOEyEVzRLllxDJ8EtFOO08a7dGJSYWzBthpFkGTgy/zjVe nbvgq2Uc48OnJdt+F1CWj/4ZutUWKBWa9LCWaoKcBRiY26BldZEpvDcgh4/mVCG53wCs aISw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=neUGHhPU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=czpC7zsqjSTFAb1TSgL6coyFStOfF39/NWuOB6O9pDs=; b=LwX4glaZweyJ3M78EbNaZDCyp0Xpfsw3stIZdOJxxt2zVBF6v5vkGOXGsLoZmqHkef 8GNZMjQVe/gkYSKobY41YvopfnJAGEAO+Qn2/yqI8rKHSAczT8Qo3Ms8oBm6c5uDlaKm PdSBJKOanj6UNLvInaTaaNK3OSlAZMPq3zv0w= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=czpC7zsqjSTFAb1TSgL6coyFStOfF39/NWuOB6O9pDs=; b=bFXjV2xwIpDjBiFsfoRpXEutHu3clGySDBR1bVfjb7iyeyCnjkH66D/zX8ixJ1SFe4 VZHOYbA+ij6vpX+j8MeWavEJIg74j2evx4oE6cqg5VFuXXYytGLWA8YCrjMqCHwObnFU f3b5pXcIFMHtsaD3vM7CHv8bikXfC77thqd8/sy1pOMDRp2V4xESkc90xcpb6ranSCpm ac92boqLzuLyFauEJZ7ztQWip3p8IiwK9jBV0CDCDkouvMQsx4+QDSFvZzm/v/nQzJOj sp1iq1nL7jZWCVIjDXaZ8pS2zTJ3J/XcTXmpI0hJYg1tDh+fYtdzbatsA8Q3VYb+52uO ue+w== X-Gm-Message-State: APjAAAWLBjpy3X8op4BpPJP3aH1h/tdci4RZPj/Vb0s/yL0vp8+pcWy7 c+/1fyR8+posPs9037dIAi8tAXYa X-Google-Smtp-Source: APXvYqz+7GmFuv8GqU9KcYmkjT5L5Ut/fRQkiYmSY+28ZNSZ0hfMFFLp40KwEdIMpIjL1ZJXBEUR7Q== X-Received: by 2002:a63:2d43:: with SMTP id t64mr5132116pgt.428.1571766945048; Tue, 22 Oct 2019 10:55:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9684:: with SMTP id n4ls2770596plp.11.gmail; Tue, 22 Oct 2019 10:55:44 -0700 (PDT) X-Received: by 2002:a17:902:6bc4:: with SMTP id m4mr5104535plt.103.1571766944484; Tue, 22 Oct 2019 10:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766944; cv=none; d=google.com; s=arc-20160816; b=N5WLPEL0Ipau3XsiLDuHvmH9Ltpl+yJz/QEq46rTPMgGVtKVxcMl6/g4V5YW4uLMHd ssqFu3niDpUlFXIZrJ1B3/wrZ1Z3SMxFzchHeLx9PLgN5N5MchD2WzavM6/ZGjHt4qxF kaGSG1tsOVH2JhBAbuMmZbSkTK7qwI+HgPYocz9AyfgfCqEPBagLQFGubFx6h4SMQByY HH20nLpM4pAnFSoh9QuxRehKvNVTM0Ltyvq3a1VckqyWKmU6ti/u5C6mx7k1yf4q9Erd CYy0D2JzYWutXyNDV8EE+/JEDQ5UDeCS7LtHEc00iAQRwd0yefvFaIERytIYoj/FUMcw yGzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xaXVYnQV60TcMl3kjiVPjabM6ky1sc7ktGjIybdCnTE=; b=qyBK7xXyLycf1hRrKC4ggcFAIx7j+RxlN9zwp0cgOOy5zuti9xi6V/NzmunLZZMein FMHsVNxZKX7KKPKX0xv2EX5ACAr1ThKk4vBPVawAKWNXq856Mf4YwQbbWtTIMZE+Rvox THj9sydC1WKN2nju45xj4wukOUilgArrIA5w5GASi3+dCYQ4yxbJ6Gu74CVuKhJOJcBg mWpaL1EUgjru9cne8nyOJSQbXcTl2g6Qp8IZ7bs6seHXCIKXqJtc4JAPuvdMglkuGm2u JTF6sn62yeGUuG72tOJMfG+t2PoEIEb/zvAD4ZvGlPuHTi23eCN/5djdI2FQVKrghQg7 d+/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=neUGHhPU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w7sor20560316pfn.71.2019.10.22.10.55.44 for (Google Transport Security); Tue, 22 Oct 2019 10:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:5284:: with SMTP id g126mr5686246pfb.95.1571766943815; Tue, 22 Oct 2019 10:55:43 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:43 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 7/9] gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM Date: Tue, 22 Oct 2019 23:24:56 +0530 Message-Id: <20191022175458.22604-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=neUGHhPU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add 0x330a for rk3399 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 2da8b40e05..b0e61f3fcd 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -61,7 +61,7 @@ config USB_GADGET_PRODUCT_NUM default 0x310a if ROCKCHIP_RK3036 default 0x310c if ROCKCHIP_RK3128 default 0x320a if ROCKCHIP_RK3229 || ROCKCHIP_RK3288 - default 0x330a if ROCKCHIP_RK3328 + default 0x330a if ROCKCHIP_RK3328 || ROCKCHIP_RK3399 default 0x0 help Product ID of the USB device emulated, reported to the host device. From patchwork Tue Oct 22 17:54:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 870 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A704F3F047 for ; Tue, 22 Oct 2019 19:55:49 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id g11sf10921748plm.22 for ; Tue, 22 Oct 2019 10:55:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766948; cv=pass; d=google.com; s=arc-20160816; b=gwE1QYRTOZ4k/NgRmQPxZHEu2TB0G2+uE2MmGBSwm27MSSjk0FvruE4BiHwln9Dvl1 Tt2SXpqlrJpW/MWnyrTCSgOsmLWUb3X31PelSRaslZQU7e9yFP/VPfhscAACmq4NG7mt 1fcfI0TmEijj5PD/VR9UAKkcgl4S6fCUDWR8v/eZMpE+0bALDdlSCvBXjC63n0psBQN4 KXTZV8J7RgXoBMQSzK3FmLzLt4HdvBPj15so9HNgMiVjoQh5pbAownz67HLawRmg2CPQ IIHu56cE23J2YdT4gQFEw0e/gJK4hSdkjzvRhB4u/02/qBqBtBsWhvOQxwUBqsRUe7h4 1ajw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=drUJTiRUrxks22dQebVqRArsxWHTkCkiRNxdcR2cfhs=; b=xmclS31hWfYzH/fQB42UKVdvfH3sdxvAjwmFZdcXJDolRVlABHkfcf2zQHlKPvjEw5 Rcsjgoqdh1Nrm9vbc3Rbt3nPgt9QbBS+gJgu7OMiDQ+527CUm33ZCAYT7opVI3zrZXQR rEJUbP3pPl5bI3DZ9BaNN/97fdtOj+RrJbH9bjwZNxItQ9mh2hSEz0A/AmmFKlpx+VIb 3aNqqOuEOps2onrAdWCUDhyBcM098VgvBbJ4rJJB+SWHwgsTSa4KWaZTbnnt5jz44xIw ytxKUG3QroHrOvj3oO0kKHO1F4vTWyQ/EG5i1w/KECi0mNI36Bq6qu5PzbjyZYhNhIGA GMrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJSGeqOh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=drUJTiRUrxks22dQebVqRArsxWHTkCkiRNxdcR2cfhs=; b=U3HEh7Fwits4tVZskAR/vNOBtfu8PVqQq9yu1iUuIGg/QWAIHE5xbwuK/uQ2w88O+t 8EKJDoKXuijsrnu0r7ppgwsakp3o8tLJCivNZ/qDxwXG8vpHD8ErjvkTDDTQDlIpAS0c 9Ha1t2daAUnAo+tZyKxQo7yplxpAkDvUGibEo= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=drUJTiRUrxks22dQebVqRArsxWHTkCkiRNxdcR2cfhs=; b=afweqP1zpeWZiamgkNqKmtNkqwLOqDpj3Lmk7QocNOTZwKg6ACVf9/UF53pQ7V3pl3 ywag4IQfcCTeRC/uCpUPlP8V73v7eZdUwClcav8pYpi+tYVoqbFh4DmLJSAGGth6W5tF ZlkybNmlGYgsx6av2re3ThZfCoCHdUc/0WMLxANeoWXxnplBSjKkBmZiXll2uVGMhsrR uuXcOlS82mN1KJwf1nk8QFupQ3wszN/x4F+mzvqXY4iLYxU7NhCDpcfOMl9KadgQP/X7 UX4Qf/g8d0N19qNMbn+dOjL96OEjECVfWXjS1e7J2NyxtrqLKfBb9EokQ5uVAdBcmmpp 3/cg== X-Gm-Message-State: APjAAAWAfeGaMjE+dHT14RXm7isABhpGE9RuXubRQNF+ykPmIikf10le dw9kmVkATy43UamUCPgDQ5T47Yfx X-Google-Smtp-Source: APXvYqwBeINa2nQuuFhzTbio3F9XZjVhkhADgt9Ta1kBJsWU6wJSMEeAfaGIK53VnaRtG+OyThYhSw== X-Received: by 2002:a63:9543:: with SMTP id t3mr2419733pgn.350.1571766948337; Tue, 22 Oct 2019 10:55:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:bd03:: with SMTP id a3ls4878400pff.10.gmail; Tue, 22 Oct 2019 10:55:47 -0700 (PDT) X-Received: by 2002:a65:6811:: with SMTP id l17mr5110181pgt.434.1571766947560; Tue, 22 Oct 2019 10:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766947; cv=none; d=google.com; s=arc-20160816; b=SgOxCFwUV0cLb6cpBopsB02kemVwZ/fx8kiA6VJaQoYgp3pFQqnILlASfrNo418736 SZexWd8Ts5i8kppfvswg25IuIoxDDPOqrJu6UQzVGNCYjn7CRs3iTbelaZ8WaQXZ4xkZ 5U/97vSeaBcyBiupYmh8oZr0Af7JWptK3ZcV+rl98ahRYcYP8/uPhO+YIjbpsGaTY5r/ bY0sw5e6WZ1pROYlT53ski4He5TKHqw98Uy6USl86ts296qc3GxPmvqCfdEbf5GkY7b1 FOu9w9Hu6CiBb9/WXBUE/qfNbQB2PMIkjkaATiu8PYyWKdeNXft4OfiTCNGohvhMajhP +V7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=BtTMKjhJzleq7Qa5QXDZ9D1oShzfx86EjT4LQD8bWg4=; b=GRIGEPI1LRFrQBl0JAdoR/Vm9xDdIGLrxuuSdziZBwNpFZqldzi3SggxT/ExIolmik 392u/fPCEatNoiotyxRn3L9LGxroG0bo8F5WILrshVDfCd9I7/vp6vqRHjj3zxOV1+D2 HL//o26dIhMX/+MIh41K09c9QC+Na8HAFhQbUfAMnNdkN7ZNJ3L226sAybiRf7ZiRQuF hdoBZY8PA7XhqYEQYNSUW7GBUuoVxlydBi3k74z38xYF82Rn8VfLi+kdeKeRo099BITy CcbKrk/sU2aGQLFKVX9beJvBTokDmaBmW83GzB6iavPEuQVz1sm7SRtNrLiuZ2zlzcN1 akuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJSGeqOh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i26sor20518895pfq.67.2019.10.22.10.55.47 for (Google Transport Security); Tue, 22 Oct 2019 10:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:1709:: with SMTP id 9mr3855741pfx.83.1571766947215; Tue, 22 Oct 2019 10:55:47 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:46 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , Marek Vasut Subject: [PATCH 8/9] rockchip: Setup dwc3_device (for non-dm gadgets) Date: Tue, 22 Oct 2019 23:24:57 +0530 Message-Id: <20191022175458.22604-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJSGeqOh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Setup dwc3_device structure for non-dm gadgets, which is used in rk3399 platforms. dwc3_device would have basic regbase, dr_mode, high speed and 16-bit UTMI+ etc. Cc: Marek Vasut Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/board.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index 8ca3463731..1468f1da80 100644 --- a/arch/arm/mach-rockchip/board.c +++ b/arch/arm/mach-rockchip/board.c @@ -49,8 +49,10 @@ void enable_caches(void) } #endif -#if defined(CONFIG_USB_GADGET) && defined(CONFIG_USB_GADGET_DWC2_OTG) +#if defined(CONFIG_USB_GADGET) #include + +#if defined(CONFIG_USB_GADGET_DWC2_OTG) #include static struct dwc2_plat_otg_data otg_data = { @@ -91,7 +93,33 @@ int board_usb_cleanup(int index, enum usb_init_type init) { return 0; } -#endif +#endif /* CONFIG_USB_GADGET_DWC2_OTG */ + +#if defined(CONFIG_USB_DWC3) && !defined(CONFIG_DM_USB_GADGET) +#include + +static struct dwc3_device dwc3_device_data = { + .maximum_speed = USB_SPEED_HIGH, + .base = 0xfe800000, + .dr_mode = USB_DR_MODE_PERIPHERAL, + .index = 0, + .dis_u2_susphy_quirk = 1, + .hsphy_mode = USBPHY_INTERFACE_MODE_UTMIW, +}; + +int usb_gadget_handle_interrupts(void) +{ + dwc3_uboot_handle_interrupt(0); + return 0; +} + +int board_usb_init(int index, enum usb_init_type init) +{ + return dwc3_uboot_init(&dwc3_device_data); +} +#endif /* CONFIG_USB_DWC3 */ + +#endif /* CONFIG_USB_GADGET */ #if CONFIG_IS_ENABLED(FASTBOOT) int fastboot_set_reboot_flag(void) From patchwork Tue Oct 22 17:54:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 871 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 989523F047 for ; Tue, 22 Oct 2019 19:55:52 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id t65sf13948128pfd.14 for ; Tue, 22 Oct 2019 10:55:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766951; cv=pass; d=google.com; s=arc-20160816; b=04AwwuNJTL3tIUjQ2WoC4Wy2bBqd14WLxHSs9UkMf6OrQ1CRTO6k48zG1U2yQHeKlK zgWBAUMUdrVvo9Pizul9NTDKPROQhVOnCOu0eUlfM3nK3jr7g7aSmkWtWTTpLT0ExbDc n3P1kCfxrRL6szSGBRTvrIvGazOdKed86tAGhL+RuXFpcgLcG8mOPPds3jKjx+cuwfng FiQzNNxV+E9Vi2Y3TqconA3voVGseytQS9jDNJUP5Bv8xXCxWpA8fRSf9Lq6dlAmAlVr 6YkuMGHVCQn+7GXEz+q9DzFi1qNEMZcy3sflTtyv7ZMReuH9jrO9BikLPpsAE/fUVjyS 5how== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sneZe7AHudJB3efvVaHFK2PFtJvBV337ehqff3mgyRc=; b=c1uwja63As7d/1USwpTtr/mHSFDu0rtug3mfgY1ABbrfktFSYHxUtz1Db6QJgu6lgh JbVTrsV+jzsRCrT9YMQKuM/kxIFrsIns9Choni6C0WM4W9Y4vuhon3rxK9xtM/w6HSAn ZVbvugbMKCk8XAVzf2IzW93jPdZLyNtRfS5c1IiXgIQdbRtROoYrnILuL3qOpB7J2fZj vW3IZB5stJ149K+LNsc5ehUexe5V9ITGRTRowuPiKehcQsE6TXxMCN//AcT2I2HfXMpH +5qjyFi78tFBMpzTaXe6E8vPofSSVtlD1hg04t4HdD2jDJmj48rSVUZHmuKg9/nbYl4/ VPBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YJRC7uiP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sneZe7AHudJB3efvVaHFK2PFtJvBV337ehqff3mgyRc=; b=aep9fmIQXsbe5pnIwVpxIq9eAJ9QenkzRSmC/6ys4WeQR/ZH01cEGHob1QZIDipeEq 3FUU3kxShNIQq8vi+g9mScO7FZptYPyCVhDmxuWR/q8W5HY08ThK7jHP2luLcmpH86lt K/4I7bOG0HDfQ5KFCm2gdudueN26rqLUxuqPQ= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sneZe7AHudJB3efvVaHFK2PFtJvBV337ehqff3mgyRc=; b=a/oWsLaQDdEW6kufu5CF2RAs+BJBx2nnx88vg0qvZl19CLlfm77PaWeX3S2YRwAcLb 3WtyhCszeAtHxr8RGqNwMM/Enwc1i7orM43Ssc2TMnjZQAclnW6k9mFCIOn75z9xmdlN pccbG7JSdz3lwHolK5AxgOwqGbxXozHZVKeHAOa48aX2OzpSyTdc+IbYyHp09C0P6NcD LWXC6dH+coOEZIjrH8UwNr4RB1Lj3FF27RShZejHtfLIJWFXhO+x/bLASXR5dYaOQVb0 IRYcZIB1deq5VomUUtaKLHr5ZP1GFkA3a3kKKqpYKZJVkO5ubYNm+XT9cQhc1t00jtr5 6Qcg== X-Gm-Message-State: APjAAAV7iutgSz4bZyfmIgl6X9aoFXtYJbXGRgVBPShep0BrETflTKyP Eq+FkTxutNMLQTSMWnhx9JzY43dI X-Google-Smtp-Source: APXvYqx4SlPPDqNBfeU3GOVDhMgD5G2WMcAT/C1w5We/rLWY1shnLdXW03nuBmnXn6R0F5XlAOfa3Q== X-Received: by 2002:a63:1b59:: with SMTP id b25mr5186021pgm.267.1571766951302; Tue, 22 Oct 2019 10:55:51 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:85cd:: with SMTP id z13ls817154pfn.15.gmail; Tue, 22 Oct 2019 10:55:50 -0700 (PDT) X-Received: by 2002:aa7:8ece:: with SMTP id b14mr5749761pfr.113.1571766950799; Tue, 22 Oct 2019 10:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766950; cv=none; d=google.com; s=arc-20160816; b=f0gVZMti/wFsLWD5P/vT5ofrFy4B7+6V2FzSoT9733IyZXn0RSlUL2y0kHQYzpDVjq JxO9fguZH3xHfJP6bjTAXN/6NXhQxt28T/qVnMASxjF/TV9H1KCrC1xWpTWTNT6phlyM XHyOjURGHVj1HmmK9dbA+LE4JhqCu7yfuequYlTw5jfFRbswb0kcMvnIlI+1lmpWMe0Y fsEX5kcnh48cbZnlyqH7Pm7sZ7UfxbnSxphfRv8FfHevoj28fKd6FOlDlIWp9hToGzzR A6uoz3/7GD4JRKA5exZy+X6QHHzwnno5pfdQBXbSxESaG3wfFLOfAl1P0EaRm0OKdU7f e10g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=lRDKt8xfey6dz+nEQkZBANYmiCJVoJzwKsd1QzvrGjs=; b=bRTjk2Fx7/bRGYQx2KZ1KcuxSfb6dFNbZmn+nVaoXesvQnAHETrD8EOQ0iLSlEvgQz Q/VTpmJNQf/kPU4TBESMuauvKqPaM2uOY7ia0M6ocHfzLVPOzQzYf1cnF1qHtbm2fb7M vyMLtLRdrc6rr3hYIWv0Ylx3pAoRfCEfrxlyY45YU8kz3t/IRrwqT+zGP6p/egzXQK8Y 6ONVzosxGmwGzUEbJeKwET8aosMnFZdkww5iiclH2Bwkao8PoVOGuu1wL3SXjtGLqGSw QYrTSqLUz/wzGy/VzA7wDDHqn/q5VP7/a+IDblIH/g0XkpC0OcsCzVgW0bokXIEveMnm 9AGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YJRC7uiP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e15sor17286470pgt.34.2019.10.22.10.55.50 for (Google Transport Security); Tue, 22 Oct 2019 10:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:4e09:: with SMTP id c9mr4923940pgb.98.1571766950396; Tue, 22 Oct 2019 10:55:50 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:49 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH 9/9] rockchip: rk3399: Enable fastboot Date: Tue, 22 Oct 2019 23:24:58 +0530 Message-Id: <20191022175458.22604-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191022175458.22604-1-jagan@amarulasolutions.com> References: <20191022175458.22604-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YJRC7uiP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable fastboot on NanoPC-T4 and ROC-PC based rk3399 boards. Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 3 +++ configs/roc-rk3399-pc_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 1d4c8f8a02..608f7fad30 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -53,5 +53,8 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_GADGET=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GADGET=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y diff --git a/configs/roc-rk3399-pc_defconfig b/configs/roc-rk3399-pc_defconfig index 28b18333d7..571df0ff14 100644 --- a/configs/roc-rk3399-pc_defconfig +++ b/configs/roc-rk3399-pc_defconfig @@ -54,5 +54,8 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_GADGET=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GADGET=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y