From patchwork Tue Nov 19 08:26:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 890 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2BE753F1EB for ; Tue, 19 Nov 2019 09:26:43 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id w16sf16227662pfq.14 for ; Tue, 19 Nov 2019 00:26:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152001; cv=pass; d=google.com; s=arc-20160816; b=zt1UBi+lDjIAlfkOV9LgD4Ar0ftiEgrtwXryQ1k0sqjnETc4ebBhl5pGAgLvwEbIDT LMrrCfzG4lXS30vFhYO08oeehd9n+rjkXUTV0l63tWNZ5Vz4dnXIgcQ9jCeMM8zOiCwQ 2KBjkCvZL9ZMuF3ogKFwCiHo6z2MEGDMDd7EXne+lBjfLF2YFyXJrQ4Dw5o5nfEd9wJY igtjDno0mInlN4mPM+uMvFAWntc6ndgEUKfnsy3bpKxvXUdK7O+900Vy8piPDbWr5oBi bDbJTQZQZVa5iG0DsVN25o4MdviX+cCa9SwBtrhbrDT9qvb/VjsMXUFHkeK371vCrauK iV8Q== 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=sMwIMSta/GHQTCF3Pg7uzWEGZc/MYb4UIQBLVueQ+YE=; b=Vm37as99czO53I2jAkzItbsAX3n48g6xx12kVTl4uMb9PZpGbKctYyRfRd2mO5FIiB vecYfNz26r3lkLiDK2faJrZD/T3FHcJDT3g/04RO7ub8zIpWggWLV3ikjTECj7+QG4d0 Clvt3NvztgrQfsS9XKro5H95SObJbdXdQ6cBCw/Hk6rCt8xcU954iJm6JWn8aw1XEaUP QDdRBZyld35ek6WO/XMgkGGmbAnf2jCpmJaONdw7sZ45yH4ch/T0QkGGQ0h2EqQ/XYRO X1hgT82wDT+pjWkmjgLGXoswstD58k6q2lcutR0LEOd3trO+kpGygASH2iTdheb9kZN/ xNyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DikEjt9z; 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=sMwIMSta/GHQTCF3Pg7uzWEGZc/MYb4UIQBLVueQ+YE=; b=J3Gtn/GHZ44gH+xCJuVCAVupKi3m3I6vviAmyMFJ8gg15PDKERL6J/30dIePvB94lr mJrmMjGh7UHikh9mfUHU50HS20E1+fWOLIgGTqyMFxesCGpBrV16H/bqiGReD0p7WYJk MmVg3ajc16ve10+zAn+EjeQR+QbHP7mRJY13E= 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=sMwIMSta/GHQTCF3Pg7uzWEGZc/MYb4UIQBLVueQ+YE=; b=F9BJBm3mVxLrCh1C6HzC4NzZTHR836Kwuvst/XOaMef0TfP+GqH+FnLapNmIMXcf55 yLweb55bz0iks56byKnByBdveFMVzIBwgXjV7OadaMYl6HfGKgxPt0IQHMi5dfPJZ+SA 4t0dtgi9In9Fff7j81SmKE/VvPHnciH4XWyXkDBTAE88TC8SC0HDuI++hKIUJm/WLzto X53UQfHFtR/hUsxjOJ6L69n469s5NHpxv7ypsNg9jmuV3jeAJrb4wzAnncKhLf1SGZz1 biTIfLBrZXi4gnmUPsj5JUwDoU52Ceh2K/jHkPM5vdDY2PTiWgqKcePVJ5nYc9xn9BM9 /7rg== X-Gm-Message-State: APjAAAXkQhJYPeWFm0etxu2NyeU2Lb22vWI5VNJHOj6C2VDsE4C7Bns9 myzy0Bu8ImMLp7MXYRe+AQC9/9Ev X-Google-Smtp-Source: APXvYqz21UMTMaGv3kG2kDIa0CrVP/fKnoAJ4Q7pPKP2PwveT7O3oo8WsLHoHm/zkvmEDdmnxWA1CA== X-Received: by 2002:a17:902:142:: with SMTP id 60mr34310302plb.38.1574152000081; Tue, 19 Nov 2019 00:26:40 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7785:: with SMTP id s127ls4806265pfc.4.gmail; Tue, 19 Nov 2019 00:26:39 -0800 (PST) X-Received: by 2002:a63:6a47:: with SMTP id f68mr4228701pgc.35.1574151999481; Tue, 19 Nov 2019 00:26:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574151999; cv=none; d=google.com; s=arc-20160816; b=EzUNJa300903/BpISGelHQUutqs6S+E7qB179TeO4lfd+R+LijqQYMQEARUtbdkdOZ GM0QINXmbseHdN4sMXrFZB+7qWqp/7bHSKBJPV1JbkIq0m4bVzX4seBCQzazB8W5CRme tUFx4IvgWqThKvKOWHtW/7bepOTKU4Al9tYDbZ+DbJnKIdlcOH7p3URJ281nmq5s9UGV AVCu85CWOIKC9u0FlowvT+IojtJYb35uz6FspTK/pl9YFAaHvpm9AV3xxw6VhLKnhhaV 1BM9NA/JA5ccc9bs75MyCLZpXiXpIFhc4VADOr/C0TMH9AeF4Cb3dZw8wtVTHPPCOuMi YRcw== 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=31T9LySzCPlpUq5lEEELkUot8yqL39B+l57TFVtFUMU=; b=oNyVUJnLetd+boDBf/MnnPL/B3DhvReKgnxcwgXLYD3uC/1ZuDq2tBTmxjTR1LxrRB XDXQRC2bJKsK9RJTq42zKcQ5s9P+cl6THNjFxYfRZu6KTR2BW/vZTlobYM1Ds8pm8xsJ RwyOu/lTvvMHdKFzjNLsHUojT3O4UVdRYh+a4aPOShc6dQlbi3mJoUAbXOCGO3COudYL K3dOxipH+0BRmUWacTIAgskxZv62vuZ03DrqxracclTmTWrHgP2hcUcw3zQQnRlgrtOM jEOMa2pwjETIc7hJtd7r4Kx78qqzuClQS0sD28dq4PHf8e4VzDnUQ9m6O/8sWwVJVwXB 1sEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DikEjt9z; 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 w191sor25478204pfd.69.2019.11.19.00.26.37 for (Google Transport Security); Tue, 19 Nov 2019 00:26:37 -0800 (PST) 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:5c46:: with SMTP id n6mr4096255pgm.75.1574151996395; Tue, 19 Nov 2019 00:26:36 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:35 -0800 (PST) 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 v2 01/10] gadget: Select USB_GADGET_MANUFACTURER for rockchip Date: Tue, 19 Nov 2019 13:56:14 +0530 Message-Id: <20191119082623.6165-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=DikEjt9z; 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. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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/tinker-s-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 1 + 17 files changed, 1 insertion(+), 16 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 5dd5f43f7c..c9882ded98 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -52,7 +52,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 745fdd1c0f..38b2660fb3 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 c2a78bd065..12d454b410 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -71,7 +71,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 a59dab4853..8f97ef2c34 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -86,7 +86,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 037715cbc0..18bc6529ac 100644 --- a/configs/evb-rv1108_defconfig +++ b/configs/evb-rv1108_defconfig @@ -44,7 +44,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 65e839214c..fa3715cf7e 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -75,7 +75,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 1906d1d93f..4fc0c3e491 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -56,7 +56,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 30b05ecf44..c007c90a90 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -71,7 +71,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 d33f079dac..0329a8aa55 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -75,7 +75,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 7642ea38b1..95a0a4b4d1 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -71,7 +71,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 3723a7e0dd..b7f6646381 100644 --- a/configs/rock2_defconfig +++ b/configs/rock2_defconfig @@ -72,7 +72,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 021f982e68..d9a170ba26 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 0fd1612f87..bb561fac23 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-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/tinker-s-rk3288_defconfig b/configs/tinker-s-rk3288_defconfig index c851a93f31..38cb1984d8 100644 --- a/configs/tinker-s-rk3288_defconfig +++ b/configs/tinker-s-rk3288_defconfig @@ -83,7 +83,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 6611080784..081e32d67d 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -69,7 +69,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 Nov 19 08:26:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 891 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 2A10B3F1EC for ; Tue, 19 Nov 2019 09:26:45 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id t11sf15119110pgm.2 for ; Tue, 19 Nov 2019 00:26:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152003; cv=pass; d=google.com; s=arc-20160816; b=LYLIdZqHjXT/0vOEbIGun0dShqSIxEGdsIkJImK3NkSApbR658gufDQB4el44Z0FJR udZNHPuSCdOecQUO49ksH2hLsQNGnqwJW7GN1M5N5fgqtIbFZIlnaxVSBs3kj7vcAKg/ /Ry0JcCY+vdYpwXo1OIFYHYGDTcD9pSeTLWBBzBkYNmrsUfUY3YYw65KRsk7OSkqXQLq dQDJFszauN8r6qssv4gCiJj3NfjdPNTqLvc2dIoHULogJ8oDfAc6g1Uhy1esfWQtmo/0 XlrZHya4T9hPI0TCNEdQiqCJDk/LOBGu/qJAUQQjRaRixQolbwM+nciODYhHpe61mZRp /V/w== 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=kg+koa1rtq6JhlQP/k+714x6UIbTNyVXEZPcCVUVWQs=; b=tJ3vpAVfIUB2iE9kH+nsng28QzazscKtAiB/7X/S2fHAlhx6ryPmK0zJfmH3w1oXGK yixCk4M4d16DdZjRYIqKx8q6w1LGGX9AGH9enRhY4JJ9Iq8f4jBqQLmhYhWuWmamOYr/ sWsJUL7II3mxLuEVHmpwQixdrbf0emReeib3hIyGiKWEE1dB+KHi2nLVaNAJV2xTsn8K 9qZqqohKISHZ+QoUKxw4UNTGmh/i1zw3gfw8c2zr1aF2XdAmeBkOvrpeZ4SU3d23jTZj d/YpKzvn7Ygmrzp4mDCTwfOr7qbABM6PC2JomhliYrgskrOPeHH1o1ub/u3yDds4uFtt 9Aqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r0LT9XUu; 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=kg+koa1rtq6JhlQP/k+714x6UIbTNyVXEZPcCVUVWQs=; b=WrXRpwN6tDBM6gl0eqrglKVx5yUTQRsuFMV6HVTzAH3SFqfuJj5n74NpvSbE7tWiMC m3lZxzQUuIb28kLGDQsikQx4tKDPl7z0CwvuiV1p2unlmXW0Qv2vY/7KNlUrUKjPoqQc loxxVJqwNPtZBNsvMndMpjL0yOs1Mkyy8kvoY= 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=kg+koa1rtq6JhlQP/k+714x6UIbTNyVXEZPcCVUVWQs=; b=g3wZETLoqugt5mFAcfA1CxvJo+oZdnjH/ku3YnNqDSjQLlBqPAXPWSGFGPYOz8h8Uw 5BW1L1nppAp+cTmmWyihN8jEov7Zw3Ax9Obwqr6+7PBH8qSOH2J23nZLJxPuUYLqyGnb S802Yumi+ICKnRjLTyO7KFoMn9aHWlxrZ/qnLPbZgz04sNHOBrGhiUtneiDO+Mxt79Mw Ntt04xyn/gsOLteXaWkyKEEW6CKPqINGxxy/ET0SBi3gXMlpk8QTgJn1i+gpPQC6TP4O 6MEbP92Dm7gma9AitjnpfUIGiSqFqqA3E420KDx0+7Tg/+mViaaxfgh8E6tpDRJykzR+ 6cwQ== X-Gm-Message-State: APjAAAUU1r6CfYDXZsWKytLhPmJV7waduHs280Fk6TESVEGs1VP0ZWvD b2+o2KK29G6YG+SKERziyPdQmqT+ X-Google-Smtp-Source: APXvYqxUiIzzOzr9/LWhtIGbSG2xmjSjv1zsy78hzyCV1Bya4cQKO6mCYWNLZXkKp9qcYoQ627+CTg== X-Received: by 2002:a63:445c:: with SMTP id t28mr1953698pgk.348.1574152002319; Tue, 19 Nov 2019 00:26:42 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:b30b:: with SMTP id d11ls820305pjr.1.gmail; Tue, 19 Nov 2019 00:26:42 -0800 (PST) X-Received: by 2002:a17:90b:30cc:: with SMTP id hi12mr4705301pjb.80.1574152001842; Tue, 19 Nov 2019 00:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152001; cv=none; d=google.com; s=arc-20160816; b=QtxBjmCqR8kVb6JAQZVYuOyunZc4m23qRwmmHG0/2D4GF9Xpg3F4CEx7BnPGwoa5fW nbeVk/JqcQWKy2AdZKGi0tRO5RYpwWImHtqojtSUksN5UR6sNviCIxVV3OGxSnFQpamX Wl/UyfdI39uNNUi0tv+TCYhjYXTKHh+Hy0mFi8JJAEl7rreMB6trSRhe1rHaHKOnlAsS GIlC+uIXTSmWOmqj/bFJ+kj2es9eMLpuxyMtpjqZkTdaPPzx6PX841FDtZTCjd+R9N8O OlMIzederNSVQucBmBw70mb73HDb26fJ9dBFMdLm/0i6DXsIv5ucPkA5WuaPSat3VFQO QYvQ== 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=+sOKpbGGDX9ppnghR7ZITJFjQMSASVJcPIq+9OwxT7U=; b=laG1gl83IT7BojU0YYTedwFcX05Pw/OOubBViohXJFqKl0KzDmG3VKelW3vxUQ3csM +Tm81toGbeQ5p4WaB8ygEHf3He12E0fnxVerzl7wuXWKwU3RITDTeh5jIsZKgXf3hlPJ OP+deUK94vg+xVpgDUo20YJ02t5XYJWJuygxH526L9Srw8C5GOlX0+T69UICvOyTuG57 8E2gnM/AK4G7NsPd9LWGd61M4AFBY8IPjHO9ybkXvH2mrjbRWFusKAn+DdkMHxVETUoT sLYUZJmrQcT+M0adgoL1lVs8M8/d0jAmb7J5WO7C8hKagvDHWMhY+qNw672+YJBoSivf z//g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r0LT9XUu; 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 a7sor2466721pju.25.2019.11.19.00.26.39 for (Google Transport Security); Tue, 19 Nov 2019 00:26:39 -0800 (PST) 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:d352:: with SMTP id i18mr4886823pjx.42.1574151999618; Tue, 19 Nov 2019 00:26:39 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:39 -0800 (PST) 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 v2 02/10] gadget: Select USB_GADGET_VENDOR_NUM for rockchip Date: Tue, 19 Nov 2019 13:56:15 +0530 Message-Id: <20191119082623.6165-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=r0LT9XUu; 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. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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/tinker-s-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 1 + 17 files changed, 1 insertion(+), 16 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 c9882ded98..bb3e2c8f7d 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -52,7 +52,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 38b2660fb3..7bf26f7497 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 12d454b410..8f2f13adae 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -71,7 +71,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 8f97ef2c34..747089435d 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -86,7 +86,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 18bc6529ac..c9cad2bb4a 100644 --- a/configs/evb-rv1108_defconfig +++ b/configs/evb-rv1108_defconfig @@ -44,7 +44,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 fa3715cf7e..92eeffda01 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -75,7 +75,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 4fc0c3e491..08b47c84ef 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -56,7 +56,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 c007c90a90..b06175958e 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -71,7 +71,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 0329a8aa55..a86f689858 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -75,7 +75,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 95a0a4b4d1..0cb67f33fe 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -71,7 +71,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 b7f6646381..1afb12d015 100644 --- a/configs/rock2_defconfig +++ b/configs/rock2_defconfig @@ -72,7 +72,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 d9a170ba26..ec13a7710a 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 bb561fac23..e46eb1cd91 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-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/tinker-s-rk3288_defconfig b/configs/tinker-s-rk3288_defconfig index 38cb1984d8..3acb2ac5f5 100644 --- a/configs/tinker-s-rk3288_defconfig +++ b/configs/tinker-s-rk3288_defconfig @@ -83,7 +83,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 081e32d67d..997d9a3877 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -69,7 +69,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 Nov 19 08:26:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 892 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 7A48D3F1EA for ; Tue, 19 Nov 2019 09:26:46 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id c10sf15133783pgm.14 for ; Tue, 19 Nov 2019 00:26:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152005; cv=pass; d=google.com; s=arc-20160816; b=wCw2fLi5Vo0oD6EyJSSovaWhktXR8iiB5YDlfxPetfRJYAADKYTCRO9swWoWnRNwgB PykknD5YKMFElhnydMHaYQg72QULGLA45Dl6DVBu+j0GvpM6SoW5IWwwzt4cO4tD9z4V EbgHkxj7vF+nnknOdLopdZve9ETmYTgfb+4aou50iRh4Bw/MjG2nG9uHaGPr4blxVIYn LaGeMFAtuLIlELrjzmTEBl97rEk5cQ8JN7SA27pJIXvR5K2Rz3+k6PiU7cFji19ojE/Y qidrW9xvhsXY3SP2OUQxzuuy4U6jy2HSEjrSbUTIrpJi2w0J0AmB39ljCDPn6c82w4Yg f0lw== 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=nVU9d530iAHG4iqnX/Dt4a5oCMObykSudu9yJz/swQg=; b=Y6HoKkXd8bWOTxZs5T/cD6GxuqrOcBq/hUxh5HEVvUmZ/1M8Afz93UwwgRkZxjMY2H 8JuqSHrB/7WZ7zSW95wszDef+qpUPW9hHS7Lc0kCH3H+bedir0dcTRvsNcex/csXrHXt 1WJnTUPuhGitB4/AqGH1GlrLubtmeCBbBy0J23dYENpUP7p8VSnVMoyCzcWymw+fng2K o+MG82sNVgdBNNClS34MWH4OK8HGjIUj7lir2fd4FybcJjiIH4RPcHNnIFvDGLGliWhs p4hjlTpha08ReG7xEohOdFP/QuwxO/Q3PjhSGYj6tr3jbgIXfTcWuVseR5J9NRP8h6lg qLvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Lu6QovSs; 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=nVU9d530iAHG4iqnX/Dt4a5oCMObykSudu9yJz/swQg=; b=YdQZ/bh4eLwafByRgt1s7jSRkAOVCaGRPwXq0tXXz1vsak9MN7pBPWKvY2vQH2aM0z JDbC6H05awpMGWKRBX9H8sMBPTwYuEA2xgrGifiZHx101hVJe8B3JODdLOQu8fXTEIwo pIj6UClPGw+om6mC+iNNu7t7xE4QmXW67zll8= 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=nVU9d530iAHG4iqnX/Dt4a5oCMObykSudu9yJz/swQg=; b=Bx9BapcKr+ONyd0bec5vgGDQuckT/0H+RFX/AcB5fDEVp6H40jLbuZ31yo1b+iHNEE T0aBimDEzqNtz1YIsH4ERuhK88A1CgcVqNIIJo0mGF6p2475COo+INIrk6F+Jms2OXtk otEqTTl2rrZyrLjUKUOcpI9wyEM3HbaWMKY2gi22TG/pqkSRLc4pb0NgJAL5fTiVQ4uD 4bFFIekzl1f//LGHftChKwYfIIOusbKtqEfSMC4fjjkhwLmPqQuueliAi0ELYWd0X83K cDCd+V+US6XIyOmMsk8b38Fjz4Bny0Z7inW82H5vXEE7hnPq+SbUFdtZNVQjwAEA6Bae j4Hg== X-Gm-Message-State: APjAAAXHbeuaVMLNCUGRxTyDS9ByWVfbtNVFipd7GMz80bzozsmWL6nA jzZdSqj0kgNLKuPwqIT8F86B20w4 X-Google-Smtp-Source: APXvYqwcMtGREX7TlbSagYnktewv8ZGZjehk87ZKopN8OhPp+/wFz5otTn4a9djyVdsgIK4yAPZSyQ== X-Received: by 2002:a17:90a:c56:: with SMTP id u22mr4658493pje.24.1574152005244; Tue, 19 Nov 2019 00:26:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:e70a:: with SMTP id s10ls4801884pfh.6.gmail; Tue, 19 Nov 2019 00:26:43 -0800 (PST) X-Received: by 2002:a63:db15:: with SMTP id e21mr4193459pgg.21.1574152003175; Tue, 19 Nov 2019 00:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152003; cv=none; d=google.com; s=arc-20160816; b=jzZX90EISbWABTjKqzencHrlRZ9/BjEXkMYEeRsoaWXCl3AFak2mgMOo7UmyBsdWsT 9i/HrPEm+gzFkD4R2GsvQHcYDOfB22gI2kdPEO9U21q9Fe9D6rIfEd36opt0yMJgPqNX AuTKYvwWOx9AzuT89KjV3yGJvYRL+XmhcTT6VJqjqhjVfQE6gFiWZo552WczRZoUErjq iYEkhp20OFdmxpDjLTdRmYnAH6ZzQG9CzI32+5zRVkuGO3eEXxgtGC1+7weRsNVY61Ll vAr5Hckqk23StwtVJfBvYC5jm5A5l9qYUrCFD4s6Si2Cc20dIF67TkQ4ALz98EJgz0fH qLbg== 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=qK78oWbHw4kKKjCqniOZnjPWnX/rx2hmJVVfTXaS4w0=; b=rvJ3SeqxZF4TXnW4QZ7yuKb6L90lvr1qLfsauD2y4PjnDOd0Rby/QbyN7OKDdQ1r9P JLsWajKMHaQppt9iVU2DzVIIkAadAsjFC/MWuhS84mLUox7a960HkcvzO9R+N5wjigST sOdRwLdpF+/H5eLgG4Bw09O02gZTLQ9gXjIbPbQfxA6GwQIwB3KpckUfmkK5NBATEidL kTLUuquht+pWDx702PXIdMyliOEMb0cPRbq+R57ah5O0/8twRcGztXWPpNdScWliyOT/ SQSw4nxxr8rO6M/8J2bAY/PHiB8uRaFPRSGIKyq0InV+c7CFX9Wi/mr/puSQ2sibc4M2 Ifnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Lu6QovSs; 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 t6sor24750589plj.15.2019.11.19.00.26.43 for (Google Transport Security); Tue, 19 Nov 2019 00:26:43 -0800 (PST) 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:b58b:: with SMTP id a11mr17830730pls.175.1574152002728; Tue, 19 Nov 2019 00:26:42 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:42 -0800 (PST) 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 v2 03/10] gadget: rockchip: USB_GADGET_PRODUCT_NUM Date: Tue, 19 Nov 2019 13:56:16 +0530 Message-Id: <20191119082623.6165-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=Lu6QovSs; 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. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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/tinker-s-rk3288_defconfig | 1 - configs/vyasa-rk3288_defconfig | 1 - drivers/usb/gadget/Kconfig | 3 +++ 14 files changed, 3 insertions(+), 13 deletions(-) diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index bb3e2c8f7d..79e413145f 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -52,7 +52,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 7bf26f7497..8d7d11c3e8 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 8f2f13adae..db7e6fa7b1 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -71,7 +71,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 747089435d..0293546b04 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -86,7 +86,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 92eeffda01..6efc5735f9 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -75,7 +75,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 08b47c84ef..c1607e52fb 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -56,7 +56,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 b06175958e..4590e38ad3 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -71,7 +71,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 a86f689858..51bd8adcbc 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -75,7 +75,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 0cb67f33fe..8cc55bdbe0 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -71,7 +71,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 ec13a7710a..0dab5d7e54 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -87,7 +87,6 @@ CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set 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 e46eb1cd91..c350c0d8ba 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-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/tinker-s-rk3288_defconfig b/configs/tinker-s-rk3288_defconfig index 3acb2ac5f5..c016a264b2 100644 --- a/configs/tinker-s-rk3288_defconfig +++ b/configs/tinker-s-rk3288_defconfig @@ -83,7 +83,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 997d9a3877..32c3502683 100644 --- a/configs/vyasa-rk3288_defconfig +++ b/configs/vyasa-rk3288_defconfig @@ -69,7 +69,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 Nov 19 08:26:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 893 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 335E93F1EA for ; Tue, 19 Nov 2019 09:26:48 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id z21sf16251322pfr.4 for ; Tue, 19 Nov 2019 00:26:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152007; cv=pass; d=google.com; s=arc-20160816; b=WaBpdDcdChA3JDlZUPysNSd6cZxpsCRdbHGtJ14bziAUi/52r9weu8oKiAFBwVJzYw 0Yfc2cgFpJ6m5mxDMv77CDIauyoDEHgs9siw9yosqYUj93+2ngzXpI6+Yg/csnZ/mUXv tgW3uql6QNEZhVHFXFuX1DXpwpTo2/pAx9fZ9ZnbR8pEyfgByhUN5GpNpWjwCT7CMZXs cWuHZX99v9KOEa6Qk7prQAU6PrTdRDfYw4pUb9Radpko2lONOiviX1aLPmX0hRDEIL9A RtEhioEgXPXhgrkj1XF2QHwm2WBxd7SWQCo4cpWfuvUV9qgm2okYHbjzc+KJEKCwbnV5 pr3Q== 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=M+71e1Q3+kPvUCWoDqqYEkBYnVgnoOuD7nM0GAD5TW0=; b=GIvvt/87txSQhNKlOElDl+GHMzf6v4MYzC/bLUYF6853MkJQjKR+VUR71ICPcIzTNI WjdDGEXY4QbmVNxKzFBcG6bnDnPY/NXgCBiVMRcmd3WZH7VKuH9TzY1aLSpZhivVHKjr LfmVGj8RVTIkIKtGRtSv8DZH9CF8MRpudqOecWHHjQ7YRSAU6eWpKW3z5UCAmd8akrTU 0fi54v6D8NI6OybkdRAhG+pZCqPWrar3NgEN1hXIOMi/BJ/DngGyyGRPFkql/N0u9OcV IL3A4sK/H3jgcG1kgjxLg2Ok+U2flqEhI9P2paI8F6vob/Zwn71u+RkBvKldA+WzF+vN 5s3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IHuGCSht; 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=M+71e1Q3+kPvUCWoDqqYEkBYnVgnoOuD7nM0GAD5TW0=; b=EgNrVAVToHUmSi0e/PPz25W0MO5tMpaRNL686i1/cvgSSdttyGGbwE6ghtPGrvmtPe arZ6IEtL1VvZYXt+XeFte5057QfS0xaBwHbWAkxY5CbS4DMHFRpHOeceSJKk1+VhMvO3 yvGJ/IRjMPgkyx5odB1lJ8RL2ErXsSPr3uToo= 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=M+71e1Q3+kPvUCWoDqqYEkBYnVgnoOuD7nM0GAD5TW0=; b=MUfJPcOR03xfhzjfwYLLnC66vupAEqdOhpGXu+rx3G9jMc8beE8GACcIFpUVzHjgIK TRaTXXdrMktOd6CebQNdhgyh1oNqBPygC+TbIfukVhjxHP77sHNvw+/FbEQCRTkZBrP6 QPlFgIHoHqMY/dqqFWcGBeAwThTJKBcsEnkEswyhdj1gYjCkDNwi5nyHlpeDpxl1V2Y4 i0Wmtganj0ueHkczlPkUT0n+dHWLTlWJt17rVoDXYd8fYMhJMAgYxAibgEbZZ89oKp+x oWbILFyvNjA5ju2smPrjaz9ckaScb7XQPfRB1lfbrKkluG6SFPh2EXkhZ1RmKyrSo2Sg LDxg== X-Gm-Message-State: APjAAAXco8e2a+mxmx6pEoGtluHQ8Cu0GtXbMgX17z4fTTYOMIjKJqa+ IcY6HkYUzhCyZg6v3MblMOucg66Q X-Google-Smtp-Source: APXvYqwPfApSkimUOmCH6WC/aT/O2+IFxkmapuY0iWYrTR78PPC+ZTRi9qYaBZQ4JM7A4g1ONkb2DQ== X-Received: by 2002:a17:902:bf06:: with SMTP id bi6mr34211397plb.327.1574152006869; Tue, 19 Nov 2019 00:26:46 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a616:: with SMTP id u22ls4778993plq.2.gmail; Tue, 19 Nov 2019 00:26:46 -0800 (PST) X-Received: by 2002:a17:902:b948:: with SMTP id h8mr32574487pls.139.1574152006298; Tue, 19 Nov 2019 00:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152006; cv=none; d=google.com; s=arc-20160816; b=Fvu0wsQMQCgkD07eZe9FiE9rC/92Y62jZG5Whs7KW0MLGSy0QwZVts9QMaZIECqDrz fVAnxANQ0jkEvmOMm94pDpxmtmCgk1JikcQWfdbq2cpZXCxQK0IrGz/95n9n3ypM+s30 K2ZjlJz6/QpdqJug/9fP0FqM16mldPT0IwWsixkbbTvExNzNX37XfwK6cIu4TWJq/VkP SqRWXJrZBrb6emz+oEfMAEfLiH9sPa8d6da+2ppizKkDLGtBVI5BOQn9wGWbuSyB8rqT M+FUbqOf+2ncw8xhoXSqSCGbf0m/K97ks8qqhcdwd2PBHm8ru05d1LKCf3v0A13U+k5q cyFw== 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=v7fC425jCnWij0DmsfoXu/aK4Hc4J6xgiLGjTZAuX+4=; b=GNo2Ky9NC3MQFQPkalMPIxMhgMWdqwoSo1HCoqzleQEY5yzaDhbmv8hPBHoeShAkeB DW2ITIqS8pI8iLoTNQcsUNygTRun9HSbpB7nzWAFvnD5vpYBtMJTxUkqlyS9kQnI1JUp /sbz3065TNqmAQC65MU1agep5CTTXuKdFYJ8fIuhXdIcR2k6HPOMR2Cniq4MNpohmsIS gheZ1DvzGoSOsAs6hvd+YsQ4Pjs6XO6JC35lpP7mkkhksocUWMr2D1Lmuni75/ev7MZi Sf4jmTV3lYZcaF6+zobLy7BqtCAtMU6LuBnY2rWJcivliDdNKikrvdRsJ8OHpN1auqcd nDdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IHuGCSht; 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 w12sor24596978plp.38.2019.11.19.00.26.46 for (Google Transport Security); Tue, 19 Nov 2019 00:26:46 -0800 (PST) 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:44d:: with SMTP id 71mr32777239ple.22.1574152005920; Tue, 19 Nov 2019 00:26:45 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:45 -0800 (PST) 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 v2 04/10] gadget: rockchip: Add rk3128 USB_GADGET_PRODUCT_NUM Date: Tue, 19 Nov 2019 13:56:17 +0530 Message-Id: <20191119082623.6165-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=IHuGCSht; 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. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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 Nov 19 08:26:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 894 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A54253F1EA for ; Tue, 19 Nov 2019 09:26:51 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id u197sf15134638pgc.17 for ; Tue, 19 Nov 2019 00:26:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152010; cv=pass; d=google.com; s=arc-20160816; b=qDzF1IRA9jma2xGSA+GMNV5xTNPTR1hWnW+ANcIkCNUQrg+iUJ4yW+xKXp36smmTrF BVpdMWIVTDjmuRSfmEDaeIpVOom9kr8OZh4c2gnsqXYlmq3Go8q71KdyoMXJm/xa+Xkv PTYkutX7k559Mg1GvocELLRdVy1zJBBz+NDergPZI1cLK3Q641lkDlHeJgqnP7sVdAwr 5E4kaKSPxC/Th9kOW5UHeL6sD4tRnE93pEUxf0ClmqvgjfZ3CggDTkDawtujft0p2TJ3 KN6l5nP5UlyVg6N7QzxCQaQd0dcL3s+pw2/vrxsVcERDZUFs6fPyq22QgEOrfj7epG58 b8ZQ== 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=6A1E6KbxT1RwdbS8Zy5zuhvmCBZ2/h+aocLBqXEevhA=; b=BjIVYOoz0WPiaPKV0s+9JKlFv07ypVDafi2M0pTCkQNFrLnhr90q3zGEUlv7r57cdc 9HlU3IM6HlzgCY95YcSARYyo74Md3ARC9InZN0Hmer2IM/zuXu5j7lPPCgOwj2BZGMbv CzrsWi0kaVsQBhCiOtevWisnEdQkcZLo6ilh0IYwnPaA0+GFNl3ZHbgBWPEYgMFygrI4 WwFg2QxMoJLNnJZEHePynfvBql4x6Mr+BdykmpLjvIYoUh5AFFN2TzBN1q5ObQbLFu1d y6XrAz8Hxv3FWmw762YyAoXzFS0bf8oRmtE+WD6K1lNWT2AYL+eiaO8Fn1Ktm5vYLYeC BM8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FhZk+g/t"; 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=6A1E6KbxT1RwdbS8Zy5zuhvmCBZ2/h+aocLBqXEevhA=; b=IxrC9Mv3gAqHszLtVhEQ6Te72vVnbI1218beMWj0tQ9HF8NZaWpdbK08YoGwJOtFdE vZVNt21nV6rD8nwXkaY2BxUEg8YGXOYfeewgcqxqW6EGfakpQi5dU1TM9TGt7VHOPckf toBl+uDnmcz4YYIh6SY/9MJYH8bAqg93x8cpI= 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=6A1E6KbxT1RwdbS8Zy5zuhvmCBZ2/h+aocLBqXEevhA=; b=qdoL4q3K5i92E+q3cmfsYdUheOBtC/MPr7+pmqSS5/ZANmzAXBVItLnCAA1yuiYC21 Uo/pUoqHrcgNNtCtKqmFgsQ0tPfRHmNAw+s8vkDlf4qeUK5vrjQOiFJW3waZyHz3NoFp 0twYFvLxBTtJvZwxV1emt7XCpwb42Edb0Hk/8oBG6/dc0eZdHcNcxewAGMK7SRLT7nrB JGBG1mKeoSOvZ8NiXaYwSEQhYBe5fBGFfOkPQt/yfScH1fRYLcYthMVx4MHK4LS1r8ro zusaTeDXEsKnzdVyhJ9pC3LptJpAkULN41Xucz10rZ6rPjDpcsM2+1Jodn21Ef0tNkye C87g== X-Gm-Message-State: APjAAAV7SjQgxS+6SfY/giTdthH40l8EN/2XNFib2MrJhbs5wjtKKlhB FA6CpxeoqLLBSof/21R2Rzqfzd1V X-Google-Smtp-Source: APXvYqyluXtsICrh7OdqLw108sCJBPNPazzHUd7uVY7OnmKyl3An8bmGFMpanD9a9eVqpbJNqpNlOw== X-Received: by 2002:a17:90b:281:: with SMTP id az1mr4833227pjb.27.1574152010442; Tue, 19 Nov 2019 00:26:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:a10:: with SMTP id 16ls3192877pgk.1.gmail; Tue, 19 Nov 2019 00:26:49 -0800 (PST) X-Received: by 2002:a62:cd87:: with SMTP id o129mr3513613pfg.49.1574152009294; Tue, 19 Nov 2019 00:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152009; cv=none; d=google.com; s=arc-20160816; b=oqst6Gw1/FYofIwaYmfxJTmX8QyaiWgerWnVRqoJw2Py8OJLLvk3VrzmT+8oUPXsTL TgNb+IDbrOOZ2qQdxuYALVY8CCzvDdsOU84osrp7hB13yz+T3wvl2tzh6IOaQ5zh64Qr qYF80RGFoid6dphP4kXiEBsjQz+8LjETtDjZThEzFEx0BL74dQ6Rd30QTB62SqiQ5EyP F7B9EzrSRsyLdi7nDHPZx9i08FcvWdqKaakI3+J1h0lXpdkm2BtR+7UcuSesr96UvvGF iIUB1pEn/YfYiLcrzPpx6c7Mim4lojDpQL3IbNmrF0YiyP0Yy/Ugbxz52TZVOz9Zem+v FTCw== 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=EoBNFaO/xPDAoLmT03miob9ythPT8AuOgmoCwUhBZlM=; b=WXgnsZQtYcasJtKdLV8RNvU6COCxNHS+pviCK/2ruLZRPwTAMGxzCubw4o9Zgsgh3X 5meLc4Iwh9W/dkXtew2605RgLJoQh8kDVodtaHMwnSDlzcvmHbas4pHlH9W9EtXOSWjz fGcR78FdxOvc2lZZDQ3OzJKxWRQC3ZJ/+POQXK7vIdqti+X2BiVqcxmgSqE8PVLYOqNi Rk61/K+pvIX2NLqLPjveRBSljjTHuBvJitK90F+L+YO++WrGWJ708F6cpRd+WkvL+Kg9 7JH8Gsk+t+yG6fH2Nbr9pteSkXvXIoJHvytRF9CT4fClslSWFe9l8mxLdKOhnicAd351 CwYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FhZk+g/t"; 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 94sor24493580plf.67.2019.11.19.00.26.49 for (Google Transport Security); Tue, 19 Nov 2019 00:26:49 -0800 (PST) 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:90b:d88:: with SMTP id bg8mr4803829pjb.78.1574152008919; Tue, 19 Nov 2019 00:26:48 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:48 -0800 (PST) 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 v2 05/10] fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV] Date: Tue, 19 Nov 2019 13:56:18 +0530 Message-Id: <20191119082623.6165-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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="FhZk+g/t"; 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. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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 -- configs/tinker-s-rk3288_defconfig | 2 -- drivers/fastboot/Kconfig | 4 +++- 14 files changed, 3 insertions(+), 27 deletions(-) diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index 79e413145f..4bed28f102 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -35,8 +35,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 cb3c5372aa..bf91c642dd 100644 --- a/configs/evb-rk3128_defconfig +++ b/configs/evb-rk3128_defconfig @@ -23,8 +23,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 8d7d11c3e8..cdf28154f8 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 db7e6fa7b1..833b0b6a6d 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -43,8 +43,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 0293546b04..74b7295e62 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -46,8 +46,6 @@ CONFIG_TPL_SYSCON=y CONFIG_CLK=y CONFIG_SPL_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 6efc5735f9..178029cc47 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -44,8 +44,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 c1607e52fb..6c13c4c080 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -37,8 +37,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 4590e38ad3..488cc54203 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -45,8 +45,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 51bd8adcbc..75de1d68e5 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -47,8 +47,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 8cc55bdbe0..320f34bd04 100644 --- a/configs/popmetal-rk3288_defconfig +++ b/configs/popmetal-rk3288_defconfig @@ -45,8 +45,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 0dab5d7e54..73ca535ff8 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -48,8 +48,6 @@ CONFIG_TPL_SYSCON=y CONFIG_CLK=y CONFIG_SPL_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 c350c0d8ba..56fcbb94d3 100644 --- a/configs/tinker-rk3288_defconfig +++ b/configs/tinker-rk3288_defconfig @@ -47,8 +47,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/tinker-s-rk3288_defconfig b/configs/tinker-s-rk3288_defconfig index c016a264b2..458e1695a2 100644 --- a/configs/tinker-s-rk3288_defconfig +++ b/configs/tinker-s-rk3288_defconfig @@ -52,8 +52,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 Nov 19 08:26:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 895 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BF66C3F1EA for ; Tue, 19 Nov 2019 09:26:53 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id k10sf11546341pgm.7 for ; Tue, 19 Nov 2019 00:26:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152012; cv=pass; d=google.com; s=arc-20160816; b=WrrT0gkN73tI3Jtgv1G7a2bDJNZ/ip6xbYat9+TZxskz1UTduH8MOZF1TGtUK0878q g0gV6cTUk6Xhc2u1TjGGXDDxzwkELp9E7WyRAcLgswJR99FRnXFt/HNIyF7JVkYIWa+6 +eAghRZMBNh6VlGhGtXr2NRiRRxkltk3zl7mlhTYvJNXprOgPnp9Yuuc3zoYwLBgWHK3 odZWOB0q89QFknl4E23pvkDk+OclyaKFEWrv8S1PsPySlCmX2kejwX9FwZ+9tGX6KifO UpVNentusZmZz1H+KxT1gBdYJXtNcAxozY3lgDpUkxz/HlS3GPTU14b7elPH6lwbqF8Y ok+A== 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=8zjePseLYrEiCO9OHi0z/UcGsoYBqZFqGGWWt/QTcUc=; b=sd3q2kjE4ulDTzGzfL3Mm03+h0QKi3RQkq5BuuuKs81wrzxBxqnYyUdzCVU8isLGnz oBScjVe2E9vOHy7ZD43BQvkG7sqQyXvmWiVWUQ20VFsEzHUnS/FY27GV2UrScnAGv1nc NQRueq+FRoQVHCLBZ4nhnCB3Kxsx5F+4UNhIGmm6ohbdQy7CVoZLgstaM3ERsmX1mJ+l zFklG6ixz3+tna+hDdflBA9+iD/Zfk0dy3owuNcrT8x7srHVj2IanddKTeufG0YBhXYG kHs65vu6/0Ga5Tx0zYM/eiA7hLsMWf4l7KcsCbhO48jjBmwFZqArEQyq6SaCL/rY5W0B A4Lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K22EpT7d; 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=8zjePseLYrEiCO9OHi0z/UcGsoYBqZFqGGWWt/QTcUc=; b=BbDobkXFW6mtUyYpxzcJC3a6wsrRv669oSURKyCCVp69lMWxY2RI5/c15NfsFCyM9g AZM790kdOJiMhZ7uTtqNN1uvBwH3sprcfeJEuZLFxwg/be4z37Ua9+NoIW8CDWRCMPtu DBqZO/yHN8+/Ow8W52Z+EcuUS/3aQXSLwZFKo= 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=8zjePseLYrEiCO9OHi0z/UcGsoYBqZFqGGWWt/QTcUc=; b=H8wLNZKvWm9JNU7q6qLsZO+kuy0vt66T0Vkk1zqmkTa3J/AXlBz0X25pUws9JOqHc/ zUkSTdsCu+SIesHBzYnzVRlfdci7jrnmIJCCCaGI+IQ4i/eT6s8a+6uEvJDktxEc4NJ2 wB0et0gnjV19oBXzqeWAVmxS2jtoXDiWZxT4pG8kb+Qm5iFurqavKeqRhzsy5gPWewI2 dF4HC5D5V5+IGS057iS50fVdHXE9rpnsJvec/oeUMRyrGmseHuQCOItLiqnp05HQU1sl EbzE3vNAqbGSA6wJ5aPOyNiqwhn3YVWjZ7NnPwNs+RQ2+fv7YgvhqYdyplV9owtv3G4w IC3Q== X-Gm-Message-State: APjAAAW1fvhSpjbjR0xFrKZkjSOxnbi62wmzLmPO7u7ml1miHLvqLVmz e/WFzmcOVpFkGZj/utzZCh8enm58 X-Google-Smtp-Source: APXvYqwLKeyDJbBO2msqGEfbrdTDkgD1PBq79OgKx8N0MKXug9v+0lG2OGLV92l1T2fDhRd6MXZa2g== X-Received: by 2002:a17:902:6b01:: with SMTP id o1mr18050340plk.24.1574152012547; Tue, 19 Nov 2019 00:26:52 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:322b:: with SMTP id k40ls816156pjb.3.canary-gmail; Tue, 19 Nov 2019 00:26:52 -0800 (PST) X-Received: by 2002:a17:90a:8d0d:: with SMTP id c13mr4690286pjo.68.1574152012052; Tue, 19 Nov 2019 00:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152012; cv=none; d=google.com; s=arc-20160816; b=HXHhhGxo0WZn3i/nRK0xE6HBOeI1qOaYVbHvbHU+G+r0RFYbHzL8CYgDdxJIc11zNQ qw5bhvhqt6sOAw+mB+bSuy7UzdRlZ9L0x0eJk4IbtNqgLrjq0UiFgRkOvn2NKP7xZGnH bUiQqSjgTjmI3GZnrV3knUkaUEbDjs8eNR5gXYC8rlbPGYl2GbU0VnQ45aCOOLUBQ8pF +hJGulFmy0qdBDFkj0dYWfWd4k/TELChMAYUDieyTrmZMEYEni4Adv7+rrO/37ReSQG9 oR6Z/J4lOOBlxMHkCk1uBoVoUeOvYUcPzMW3CRppyAX1zJh6oieNIfEdeqrU5n3O0Qqj oOUg== 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=auXeqGHIPgKLvVG4xdF24akyF6hV7KktTkm9UMWzojA=; b=t8ZMKUq1MJBhj2zb5O6Sdvmp8PecD1+Gg1foO1GyADEc0jBb3vpkBdeQXO/zdTTHIM 5gYm4HtAMohVOmZ9F8BWhROg92Q4nZ/snzmzNInFxgTtfyNxzp0YX8PcWHyUvmn0R+t1 lAOIedz1n50ozbnB5EwG9gi9569BecQHFf6lglswmTJxNDWqMWX1vb6jEAM9c8cVrFIp Z+rj+YxP6Gdb4aQ9Q3sge+lqgfvK76/VnP6nebcdgh5BCC/6kDyMZNRuidaoLAj91d0o KbtBXarjLeGXfVpc/GNcz277XekRsJe/YOYhYQnEoYADMXSo7vPVJAUkXMQpX8+jII80 Oiuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K22EpT7d; 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 s73sor2559723pjc.6.2019.11.19.00.26.52 for (Google Transport Security); Tue, 19 Nov 2019 00:26:52 -0800 (PST) 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:2a44:: with SMTP id d4mr4652002pjg.91.1574152011733; Tue, 19 Nov 2019 00:26:51 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:51 -0800 (PST) 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 v2 06/10] fastboot: rockchip: Fix rk3328 default mmc device Date: Tue, 19 Nov 2019 13:56:19 +0530 Message-Id: <20191119082623.6165-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=K22EpT7d; 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: , Technically the default mmc device for fastboot would use eMMC if the board support for it. Rockchip platform access device 0 for eMMC so, use the same device number for rk3328. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/fastboot/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig index 34864ca613..433ea0dc3b 100644 --- a/drivers/fastboot/Kconfig +++ b/drivers/fastboot/Kconfig @@ -89,7 +89,6 @@ 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 From patchwork Tue Nov 19 08:26:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 896 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BF3733F1EA for ; Tue, 19 Nov 2019 09:26:58 +0100 (CET) Received: by mail-pj1-f69.google.com with SMTP id w8sf1140763pjh.6 for ; Tue, 19 Nov 2019 00:26:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152016; cv=pass; d=google.com; s=arc-20160816; b=aVQgkahZN8iycY9O7ztED9miHff1BjATx8FtyByTse7abEXEW7RioXdrKMLQyXRnnm w+D2gWmZwz+Yy6nPMVjI8et+azCutN7XjQg8gtjox0Sshv9buL4mfxABw13Mhlx1XlBb gvcrGJ23IwuH7LhKjqR9LsjhPM6sbALrL6yNTaUxVSCCUoES2N6baH0h6IxOU/r34lp3 4afLgdy9uvw/HgkAMXqEFzAMR+0+q71KJdlUP3+2pJZI/v87NE9Li1U8hUEdu56aeAtZ OhgEBuiTbQFqVuGQYppzPDWLro/uQnNcNBiBg/IWabtazK+EhtL4ShtC5+cAhfNTvrty HNvA== 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=6E69ZK0oGg3GHIriOvbd0xxf0FmTEb/gNeNPruZcYk4=; b=Zjm436AarkvOu+0lQbyyFCi7Of557Nt7Ee1W4RU+OG/87U986D5L7dAvnCcN2LLziu lSwA6rHIl9kuo8elgFlLg5DKAjtInKre1CesPApY2itlWGVuH/YtK5TUYR91mqqSxRF/ uzAr5sUsDlDr74wg3BiM1Flr8OGkGGtApYWhfVj2axQ+EIv0RzY/9P4N/m7j+24K5sHJ /qfY6aFmr41KFCpsBN1TZYqfjtVQKur5+iPVpWQ8brLDo4sXSWt+Rf3EV4l2O008bbcq 3NsEe6rpTf9+ePiovh+KCfzXXqiTA4CxoUSxw0I9JAH0R/6XuzHyUKxcg7CqOIled8Tk tgZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lZf+Mifb; 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=6E69ZK0oGg3GHIriOvbd0xxf0FmTEb/gNeNPruZcYk4=; b=Ia5kXCdufcBKK/ShRiAqYrYGhqBgoub/ZVEC7h2xaEvpkC9qDmaGENJct1sU19unLS vI3RANkzsBsqo9deDF9h2jAaHnM+mUmxazTyAV6UdTTCpb7xJk1YZ9ruKH53YxwxevSi XEUL4Gm2vYosX8URmj4NQXHdYesdwKtJa/lCI= 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=6E69ZK0oGg3GHIriOvbd0xxf0FmTEb/gNeNPruZcYk4=; b=VEy293ghed3LPyoZ5LeYaJ0VCXvG3TVsTLuhCCWjeMgniITKUmPVgwqnH6x+RPoTp/ ofAZTRWjCC5nUoKQhdDknj+6H0smv6j0NXh4y3lLjiIXewXlVbbMqZ3englXKgrolUit 4EOADIjYr4dmA4FPz4Mc1V8oXVny6MU8kd7LaJByMDqifszc/eQ+1wBPmEv47IW8WmP0 eIP6cn73vjhgbZWb85W0Bi+UJA2Rtd0U9kP+y1NNLLZSP8sJi2uMaUcXiiRwYa/g+F8T EwX6y8HE6cHNhov0Zo9yq0ioB4AfKXdvvEgc6ah+s4e/hr/V3UfyZpNPbnJfuhmi+0rR +VuA== X-Gm-Message-State: APjAAAU0lMAG9KpK5XyV5tYkqPhBZ5Je/w/x4IGCQR9pXVEApIyo+1ff OtXmPu0hgW9UkBC34OtyVshG6K6c X-Google-Smtp-Source: APXvYqwi2YkO2aQPl7Kc7D8qRo8m/Em8yIWoqymj5FN1TU6NaNaXqlIqRnKdkfrHDis0Wq+58hrFuQ== X-Received: by 2002:a63:d544:: with SMTP id v4mr1514762pgi.288.1574152015961; Tue, 19 Nov 2019 00:26:55 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9b8a:: with SMTP id y10ls4767282plp.12.gmail; Tue, 19 Nov 2019 00:26:55 -0800 (PST) X-Received: by 2002:a17:902:b7cb:: with SMTP id v11mr22988plz.176.1574152015380; Tue, 19 Nov 2019 00:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152015; cv=none; d=google.com; s=arc-20160816; b=tC4QDQH54RExnhYpddQdbldRUMFM9JQQ9z4HJ1OTq/FFtTq0cPTC9dPopSZ1rwcxH3 UYmNgo1T4yWvrfdWL4TX8l0gvp5zOklZ/jHMgX1prCp4Ii4f5J7LjDZ70UT0tdOFmM7J E463riKG6MeaVMHMZMm1CfMI+dZAdbWGvrbqnxN2ubW4P9EYFUhd3CpfbNY3bNSFFWKo ZSyg9zljR23Ru80Jq+55M400WKxUJXt01/S67hW2RuSZjJVZo3UzEQS1ueUxR+M437Hv 13WUBXHZ0SeySadqIwK5ZuwcvCGAt5AriPNUADDnIijyrSUHy0VR5pGMoRsypb5DaUzh pWyQ== 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=eBDaPUSSH7ZQeopAizE8LYLSyIIy8bFavY37XD6jPg4=; b=v8pJen8giMCo5cov0CbYy6gqRweuYtAr51u/Q9Err0njFxd4dGlYFXel7EmbzjWUsN KtLY4nHxPWW6NmpUtDlAK1Kkh7yNNv4d3VUHlEaO1p3mOzOI9Vf/XvNEsGw+ktRRUlHO 82jDMr5S8Y0EVkztsQ5CzhxTBEJ3qlIbJvAJah+M9bnCYX2PvvN+t9wuilaar6bEJeBg 0ttDpGQ1zPnVKnsVDxtNPLzoEfyYwFsiGWV68y5tdVe051+Rjf+lHLTGvEtkJF9i10jy dYZ2/ihWwZ0SwXYVY+tcPdkLxUEmfDIhYOuaBxIWnUVtASc/os7TSEiVSgWGarY1kdir MyPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lZf+Mifb; 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 s8sor2537021pjp.20.2019.11.19.00.26.55 for (Google Transport Security); Tue, 19 Nov 2019 00:26:55 -0800 (PST) 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:c789:: with SMTP id gn9mr4574705pjb.99.1574152015032; Tue, 19 Nov 2019 00:26:55 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:54 -0800 (PST) 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 v2 07/10] usb: dwc3: Add phy interface for dwc3_uboot Date: Tue, 19 Nov 2019 13:56:20 +0530 Message-Id: <20191119082623.6165-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=lZf+Mifb; 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 Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Marek Vasut Reviewed-by: Kever Yang --- drivers/usb/dwc3/core.c | 27 +++++++++++++++++++++++++++ drivers/usb/dwc3/core.h | 12 ++++++++++++ include/dwc3-uboot.h | 2 ++ include/linux/usb/phy.h | 19 +++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 include/linux/usb/phy.h diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 23af60c98d..f779562de2 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -613,6 +613,31 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc) dwc3_gadget_run(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) /** @@ -721,6 +746,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 be9672266a..bff53e072b 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 BIT(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 Nov 19 08:26:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 897 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C8BA93F1EA for ; Tue, 19 Nov 2019 09:27:01 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id a14sf16233316pfr.12 for ; Tue, 19 Nov 2019 00:27:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152020; cv=pass; d=google.com; s=arc-20160816; b=GGIbzTXOYm75Ryg4gJfnVSgqWhiuvivjuiCzoY6rpo3sg5FwMrsZiZwXTCMnt/DVv0 z4k6dDnLX5fXB2Q0m9qGdrxXmNyPtL9oP/kkOEw4nCGBbAEwG/HV8GUZEE8Ils4JGUMR kRyBJq2aJD2jUb5Qce6HxSw3O4RjwFSya3PF0qZUWMTM6fFSXyLeFKiIOJhatP0yA9O4 BfGvACsn+Kb4sEfK30av+YhQvWQ5Tyeve/hHuM4YsV2gCnuWpkmxmai9QCRWuZdbwZVt +iJgqi8ihp7RhyLlEAk2hk/JjoVGxffWXUl5i3Ug41uY/ZCtVA9ySUOZBZPlrEFiuZUT 0RDQ== 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=9Q7KY2t6va4BgsnY/lQqSPL/k7WcvL/OtUn95pFuwV0=; b=if4MpbQkFAmlA7ZfSeBS3FkGwMRIclH33Gj59ekn2Jdb01iQPa3J0j6wtbACWG+Im6 vmBQtfvtN/Hlb0uL5WfzLDrM5y7SwQFOvzn/Gse43lAqs33m11dkcQceL6v3ynI+PLsL coSSZe8iYc1CiBqVZYyVctc+q5cvr7EryDSFI5jvpsKEJzD2aSDTRzwDt4HM6/U/cl0D /Yu9QbBp+nP5FhnDIv416nOEZ4+c9VstwQaXr/Cr5MxkaxNSSs5utfcYxl45Fptxbdfh wKFh1dgNju1ISkhqYA20s2e4WxQCRqRoiHp8hPMFoNAGcdHylswDVfwdKIDPW6kgs2Im 8PVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJP3Rub4; 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=9Q7KY2t6va4BgsnY/lQqSPL/k7WcvL/OtUn95pFuwV0=; b=GDx7hc+84mRwTAvfX0wuBAuSw9el9Hpjk+d9cUuWwz68QDRN8p3eHfMyoU6NuMh1k5 Mw8Jg5Z4Bbo/7tC/QaE0KDJWDYspLDbVeDa/HthHZOWxFI0NzbfstTAlxzjkajy1xxij rCdJuCC5ARqJtQAC+AvlGQAtrw37+P+j4MW64= 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=9Q7KY2t6va4BgsnY/lQqSPL/k7WcvL/OtUn95pFuwV0=; b=DNUPa+s0CvS9Q1WJ3miTK4GhsiSjc/eYOoC1hZ51gZj+klCWRzHLlg8Z2QtSpLlKou YoSoDCr+rBNcAJ3pr7ggIYn32OwAacc7/BVwXKEqT/frbeUCqd7GZG/0YAQ6bdnpYpvQ k4Tu3YGUm+zEaL8+bPlpOrZIDLVGhXwKFLyLU5ERacDOXOY1ZWRssjFH0aNCp+c59R13 Ti+CztIu77IzRDKFWM8tM826vwmbMIeBuScp4HdbIaQE4TyNgzewMFDrlR3P6l4PGv7O p9rhgde/PBhOZZj9A41a/6pWXWM9npTd2ar1LzlJZFdSaiQVMCDZ/XJ/RaDMbmkLRksX 8JJA== X-Gm-Message-State: APjAAAVNjx1aCE6dhXeKzfFeQy9WAkuGIvKuz8MWoZdCO5whalwEdwnA VNsggxfy8FnY+cUXgmGnvXf+KkSo X-Google-Smtp-Source: APXvYqwtk1Y5N968F9qa+pn5N7Uz42XHcqRCV6e2tTuUTq0iTgF300GK2jA2A3S1uFmAxUq6x5z4FA== X-Received: by 2002:a17:90a:19d1:: with SMTP id 17mr4766746pjj.52.1574152020614; Tue, 19 Nov 2019 00:27:00 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6c87:: with SMTP id h129ls4646159pgc.3.gmail; Tue, 19 Nov 2019 00:27:00 -0800 (PST) X-Received: by 2002:a63:2f47:: with SMTP id v68mr4330094pgv.239.1574152018271; Tue, 19 Nov 2019 00:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152018; cv=none; d=google.com; s=arc-20160816; b=gtUzo+eP5ThC2nc3P/UaN7hAcG6m5X7ryLSYrE7SMYtviwbAwKien8QSmnStgYMKnQ eA7FF3hTZ0Y8w6tpjfUW7wbmAuA+rIBkJQGRHiZDhOyKmTrc4+GMKpQsgpksjhj+jndz 3omyX4nZE5BLsuuXGFxu7Dc1vNSfk5sVowjwfQIGmrHLwcLtQQvZc99raBgKAlBfpEmc KPKrSQ4lZiJHMkiuCKh/NIoEk2KtThQxkiZIo8dM6OQgjG4aQeracKcTyN3I5t0zZPhY 6UJrKLPBhQHz5eXjU89Fvd+qZupdnI6MckG6tKwNoJU9abhh8NzqvQx3zdIOqV30wsuy Nn8w== 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=WX0Amw+vDSxUXCVgklEC0WvIWpGjUT5UbdggutavXys=; b=r3ipfBuT+QqPn3GY9eL5VyDgJjt6Uk5hqvEFKU4GC7zLP8d9MrKbDQuUFo1jE3vhL1 2XifGX0FAnyVAsZfuFiKcN8hVJPox80IyJL0cVNb4Y/9cVQ1DXRqYdZT43k0vWFfCX/C GAUSO5CQvKutMNSc/7EsiYQgqnRADGL7FjjB+LDCyHYFaZ601LNSEE9YUl2s8WnM0oFc IPySAfvGYv/uv5eGVQ0W7velSX96LMNVbBMXccFgfTp6Rz6Z3Sd98OqjQIGc7/DV4Q0L Tr4RzgL2HSaVWNJo1VFB6Zy8GgDVPqWRV+0Bhu+JyRu+U7LQQ4CArbFVLkjK4ezuQCO+ 3BNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJP3Rub4; 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 w17sor5039722ply.61.2019.11.19.00.26.58 for (Google Transport Security); Tue, 19 Nov 2019 00:26:58 -0800 (PST) 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:9889:: with SMTP id s9mr34438079plp.18.1574152017915; Tue, 19 Nov 2019 00:26:57 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:57 -0800 (PST) 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 v2 08/10] gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM Date: Tue, 19 Nov 2019 13:56:21 +0530 Message-Id: <20191119082623.6165-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=rJP3Rub4; 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 0x330c for rk3399 gadget product number. Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 2da8b40e05..58ca82d4de 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -62,6 +62,7 @@ config USB_GADGET_PRODUCT_NUM default 0x310c if ROCKCHIP_RK3128 default 0x320a if ROCKCHIP_RK3229 || ROCKCHIP_RK3288 default 0x330a if ROCKCHIP_RK3328 + default 0x330c if ROCKCHIP_RK3399 default 0x0 help Product ID of the USB device emulated, reported to the host device. From patchwork Tue Nov 19 08:26:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 898 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4F2563F1EA for ; Tue, 19 Nov 2019 09:27:03 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id u8sf3028306pgl.4 for ; Tue, 19 Nov 2019 00:27:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152022; cv=pass; d=google.com; s=arc-20160816; b=wG32ZGIRJ0E/3My/qjnn+whCJQsb9Wq4sOn/mfS4isMf20O/3vaxDxvYCWbvf6H/JC TSN8n43mmha55jIn8Y9uTyde7q42ml9WaM7Mpk8XMsrNIXr4mnypGfwGq+ne3bwVpqDE mhVyGaJ61HzNK88Wrop5Lm8uh7sSriE1nKmF3j7G+XLTrHPA4MKrqQ58dVKuxIDCfKin w89Jtz+L/TKTioZUqeJq5QEuCPQ/6L+q0474p91AvtvlvD0q6Nd4m6PSh9ieC8UcqSXE 0tjJiw1jNArP5MTvpAK7r2Yzaze66yCNzos7xmBBTMGBHcgTzn3nyJGWjzw9yigUGo9/ iUIg== 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=vygAwL7GtUqia3aM7cWH0XsAA3k+Vy3ppcYZRmaO60E=; b=RwFlEq9srNWgRCAW6K6zKFcwmE22BPCOago6xMLQF9/vnKLUsKrNWQjMz1y/5O2Aq1 62aJsMABpJgAHHrZUzBHh8+GdykDrjIinNwigIIIQQ9PIvs1clkOdem3lCbkh3ma+1pV k6P/tSCC3rvnpcOItCLSgIJh7P3QemfMq9xRmV5BX+j+2sQMelcVJLNVYIFq3a8NaQE1 rjbSMtGjmMbjV9U7CJkblhNnzeFQXm16SwUPSpBdiOQ1PPhvVczMROa5fZMFtcmzcZSw ryImLLOCXX7P50ipZnc54v2ZBkVarQrAuIq5OTpB09gPmY2/hU7ZRsmKn6roy5Yq/Ago +i0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="gYPpV/k9"; 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=vygAwL7GtUqia3aM7cWH0XsAA3k+Vy3ppcYZRmaO60E=; b=S970UI7J9LTjxzMW+2MrsKnxq4zC0fK4xSpxSs43geDJbBp4NN9Xy+BtRjaY/SLLEJ Y9FSmzQTg7zqZUAjPsKJccvLIJcI+LPmp4eTFd1bz6HlqcZqPhK3cPfPgyP4ygY+u5Lz TqQA3T5gm085lfGqPY+0ylpGO5DmX5wqvZbLU= 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=vygAwL7GtUqia3aM7cWH0XsAA3k+Vy3ppcYZRmaO60E=; b=tytIho+8uDoExLQHDdXuIljZ2MWQz8z2q8DsRjjHHgmyDcaN6FTckPA3kA45BWU7kV 6AA62l1F1zGsXOOf0yCpwIADa/ZzlKmPxTncmesACCTfAm+OPeSuTdfWAJ/CklZXYVai HwDBBtv1gEoXhjz2jnV2QLZ1LG5mYliRaWwfhV9AyhDffhQgW2+5pweqhw/kgKWapjb8 FnM5/IicFcbTRUsL8FoM0Yk0E2KU1ZoO6RpBwFunrg0WCMh+TRbc+IFs6r+O3XzcnXDf nEhMpdxizJ7LhHTajuvsV5hvqXIyRRtMkbDMtg2Zd4RbFEmsji4CoJZINoyREcuDukf6 ii2w== X-Gm-Message-State: APjAAAVypi3EZMx8gCsnMRZwkvzXbe9rpHIgIm+qcuXKBtt7xAc8Pp3Y 6hPWHOmWOdIysTnBalJEOx8sh7NC X-Google-Smtp-Source: APXvYqyABZSUKnKXlVYeJgOSyZLXBmcOA1Bvei4MxUbN3lz8AJVYVwHttB0qsluYNCFlTpLqg7jubg== X-Received: by 2002:a17:902:b215:: with SMTP id t21mr33939056plr.332.1574152022041; Tue, 19 Nov 2019 00:27:02 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:1ae6:: with SMTP id p93ls817749pjp.2.canary-gmail; Tue, 19 Nov 2019 00:27:01 -0800 (PST) X-Received: by 2002:a17:902:fe06:: with SMTP id g6mr32984638plj.159.1574152021428; Tue, 19 Nov 2019 00:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152021; cv=none; d=google.com; s=arc-20160816; b=RUSTSLcnqpOf0M00IMA+T1j/yia8f6V/18bS5zQ8jOnc7kmiuQlEPmm1QkvgEZFsLb c4tYT0bb1DycObiOyXeA1b/JCFHTus1plV6QwQ5VyP7B3Y2zbMamPSWiOSIcvdKNWn+7 vyilC2cA9tDyN+mViBJ4s1IQQ/WwClNc8ClFGK6kvF6NlFosf0oeGbu0XPgE3l2E5SGX ClER2hvzCB74fW9/TZMhgKy4lfNs/e0zvidTzC5GKQtkTPsGuL2Esm3gvLHW8SePF3uE qi9xVx2g7RFil7yVPfUG5pflQo+eXXiG72Ncl/Ww4P4DfQApP5/90PCWS+yv1CmJxebP vJGQ== 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=ERUG8BZ0QuZnGE3F6ql5Lg29BeT9X+LCUpVkl19Pg68=; b=RDIfYY2GwsW78VGAvZZpY332LfO3V9De2Xe32cKNcAEaXyrWe724tHmwPlm52PxNh3 ZYMRbzwnjSNHSSkOAkODfTPslK/6gLHXcG+PDdvArc0oaK/lutRJlatIxPvgYoSGE/II siWnjRGMagS/23RahMpYMrlQPjwk3GznNiYRNZUzI/VD0JfVBJFUA9ErBgXlJghzK7Sq 1dDw/V/K/oVUslkj59B5iE46Mx9GV0zvGEB8idC7IVyu7HjO9BY/USwlMDaGy3glUkSj 58IBirabC4j5BZJxGS9EX/w+cQaIJ5UtK/JYk31Qb0hLni9GvswWtpzr/mDZYOvfHYv1 kWtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="gYPpV/k9"; 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 s8sor24589462plq.52.2019.11.19.00.27.01 for (Google Transport Security); Tue, 19 Nov 2019 00:27:01 -0800 (PST) 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:349:: with SMTP id 67mr187750pld.80.1574152021041; Tue, 19 Nov 2019 00:27:01 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:27:00 -0800 (PST) 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 v2 09/10] rockchip: Setup dwc3_device (for non-dm gadgets) Date: Tue, 19 Nov 2019 13:56:22 +0530 Message-Id: <20191119082623.6165-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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="gYPpV/k9"; 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 Tested-by: Levin Du Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- 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 c90eb976d0..542823b8cd 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 = { @@ -117,7 +119,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 Nov 19 08:26:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 899 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 44C803F1EA for ; Tue, 19 Nov 2019 09:27:06 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id a11sf12687648plp.21 for ; Tue, 19 Nov 2019 00:27:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574152025; cv=pass; d=google.com; s=arc-20160816; b=e3ejNAniJ3tQkUvy9A0Y2gm8cwdwrX7yBBGdp35La+RtL/CkvG1C50lm9rLZUGdv3o UgbiVhNeSFxaIk2Ejb6tKbgNJN8Eutu0feYakpht7tugRWDOC8VC30TmykMaSdvTAJmf 0uCzfgLPEFwWbO/RmPKMlrrdfLbrHjmu/FocgMW+a6dHxzXE3Chk5PU1zXa9ACl+CAke NKa8zres8HHnMhlSsrvUvYkzE0V+r82DzRkQBe4hzaTNiGi9sfZn2HxMAFv8cKSeMPSt lxV53XiC4W+ZC1jmbRfBgb5UA2bQIfzuc94N895esW+mDWbTJpxc/wfH7rNmKh8IK7nb BgLA== 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=maOEpzYlHuwA8YfiMEEmcdZ8TGTN/9VOIJEHhwwzvmw=; b=r9Wbc8es+WxIU9SMbKGEm0v4jGzbaxK2gnRhcFN7d1HWorPr0xl258Eg4dC/7qCb6Z 0Lgd2ui2VE2knEpsJMQgf7ve7am98WdkUp8mvNCRGZ8YlNQQJLTNAn9fjqm4VayXF5yj QDYiSjPgZTyhV3iz/pvebNrIP9rbgDP3QhCDVsgBLchlzROjhqRi8efegGF93GMJ3H4V qP+Ad/N7UHDDeb0zSwP8w8WVptB/Sffi8uOPyladkieSiEwe61kO2eP1xEosU/0JB5Nj R/YklkmJyHQMitHGRn5fG0DEhxPH+SCQQrQOMGe0RoJ2EuPg8j7X6ewMo1grynkYP3oZ LYcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=C5gIZVna; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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=maOEpzYlHuwA8YfiMEEmcdZ8TGTN/9VOIJEHhwwzvmw=; b=SXgTDQTu4lc9g5t8YESjCnix9iUaMUZiYz8rVqiDY0l43RvqssfTk5r9AmexyDBHy+ HFNpjZPrXPw6NCShddks04gJ337YyI0Iv4WrAsgM9s374V43L3Q5wOIBn3YDDxQrEfJU O0NGZjZ0S0waj0lL6rtQdS6hIiIIWuqjqs3bw= 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=maOEpzYlHuwA8YfiMEEmcdZ8TGTN/9VOIJEHhwwzvmw=; b=lgIXq9E3lGYxOrdtAWVYyBC/g7Ntl6OqUnAj78dNse6P3StYxLhs5YvpaxEaBMNQO1 FG2RW79LDIYBRIypgI3AHDTkRFvaQ4IwPqBErLCJfT/uT1eTOmNtuEO0a6RPDgFC9/nH NM2wXC4TfB6rygvTrUH1qSAaRdm7NOUW6+w372QW/TQPyw/BSjvHkVKpWreslDk8aWOq cEzb1s6i55REZfmrzJX+E6taG7v1ZG/fiPR77bezG00/bdxzKqs+9/ZcvZ1Z4Abo6YWX s4dQDT8s6rZvCrEmZLnGQ/07jWBEPXzFprM38W4VeBz/87MuLvHQk/+TiYevuDvS5NhN LSig== X-Gm-Message-State: APjAAAVUVQHNp+G3H0Ibqso2+a143WBMsx2Nu+zB+BL+92HNVaLfiEzh cEn7NWl37H6JuMOhLUptk2lYt3GH X-Google-Smtp-Source: APXvYqwXdfzVrnxbEfvNo7kllDTz3mIIcduVsZDjaB7Ced3I/PB99LzcneQwTBgKjHG5vPmg452cHQ== X-Received: by 2002:a17:902:261:: with SMTP id 88mr34430465plc.322.1574152024825; Tue, 19 Nov 2019 00:27:04 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:fa06:: with SMTP id cm6ls32749pjb.2.experimental-gmail; Tue, 19 Nov 2019 00:27:04 -0800 (PST) X-Received: by 2002:a17:90a:fc91:: with SMTP id ci17mr4650641pjb.13.1574152024299; Tue, 19 Nov 2019 00:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574152024; cv=none; d=google.com; s=arc-20160816; b=NnXDnucL6FerVT1EZHvNK69gzqQHyXzA8zzyJueE+RXpke72UBi9GuQZ/6cmgsQqmo Pvp/fq8J+23mbMty9fc6V6mPPqHOHx04creoJOCw1GvbelaNSW4KOZioIylPY76ghrry UqNdHpbbjxMWMdQing8khMVc+jzQpa4dqPnEerLmhe1PqqycG1hdWYoxgv9Niqw3cCUH u5DKs9xDtVjQAhhlovziyrpDCn5O/MmO8yKyV/dFtcngAk0EX1xTGTBazUokYEKG5fxo l8C60N7GrFSsGIeQrF62xO5lCXZq3Sktn1PqFCpltcfgfccctpCF6eR7OGskNo5Bfuex Lwrg== 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=8o7coaIQPe7QB3fuJO1ULMoonw3x0xMnjKhtjDwulfg=; b=PERhCEijFfjChTOJSIbTqXw6bTQHwDR9jw8q8BdENCZeyw+dQmd33sSK+paqoJ0w5g u82IJqRJ+x4shjG2+L1CMX54UpjSvS3DsjuzsugsAFin0Fg/22xvSqYHH01Ya6u3N6xE OQTzQ3b7EVapgSdtEhXkPTc7PZyNXoSoiu9F4w4GWeYKTvhMV9Nio0kKp5qciKdCDPYu LPO8EbEq29u0bcKYA95DV/j2MOfHMV0aTx3colaS1so1liJgc4wd5xBkLL0/+q2IlQfj wpDKiBG33DV6IIGFRDTF6NY/VAQqMXfQcJl9NgvoX3RS2PXs8XGuYYERz/USUfiCefKI ANVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=C5gIZVna; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g7sor2492408pjp.8.2019.11.19.00.27.04 for (Google Transport Security); Tue, 19 Nov 2019 00:27:04 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:30ca:: with SMTP id hi10mr4717512pjb.143.1574152024028; Tue, 19 Nov 2019 00:27:04 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:27:03 -0800 (PST) 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 v2 10/10] rock960: Enable USB Gadget Date: Tue, 19 Nov 2019 13:56:23 +0530 Message-Id: <20191119082623.6165-11-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191119082623.6165-1-jagan@amarulasolutions.com> References: <20191119082623.6165-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=C5gIZVna; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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 DWC3 core, gadget for rock960 board. This would help to use fastboot by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/rock960-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rock960-rk3399_defconfig b/configs/rock960-rk3399_defconfig index 979ca0f93b..d0ad6865cf 100644 --- a/configs/rock960-rk3399_defconfig +++ b/configs/rock960-rk3399_defconfig @@ -57,6 +57,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_USE_TINY_PRINTF=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y